pspulumiyaml.azurenative.containerregistry.psm1
using module @{ ModuleName = "PSPulumiYaml"; ModuleVersion = "0.0.3"; GUID = "909344e0-a08f-45f6-8177-80e36bb2ba58" } function Invoke-AzureNativeFunctionContainerregistryListBuildTaskSourceRepositoryProperties { 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 build task.)')] [string] $buildTaskName, [parameter(mandatory=$False,HelpMessage='The name of the container registry.)')] [string] $registryName ) 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-AzureNativeFunctionContainerregistryListTaskRunDetails { 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 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-AzureNativeFunctionContainerregistryListRunLogSasUrl { 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 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-AzureNativeFunctionContainerregistryGetRegistry { 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 ) 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-AzureNativeFunctionContainerregistryGetWebhookCallbackConfig { param ( [parameter(mandatory=$False,HelpMessage='The name of the webhook.)')] [string] $webhookName, [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 ) 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-AzureNativeFunctionContainerregistryListAgentPoolQueueStatus { 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 agent pool.)')] [string] $agentPoolName, [parameter(mandatory=$False,HelpMessage='The name of the container registry.)')] [string] $registryName ) 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-AzureNativeFunctionContainerregistryGetRegistryBuildSourceUploadUrl { 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 ) 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-AzureNativeFunctionContainerregistryListRegistryBuildSourceUploadUrl { 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 ) 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-AzureNativeFunctionContainerregistryGetWebhook { param ( [parameter(mandatory=$False,HelpMessage='The name of the webhook.)')] [string] $webhookName, [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 ) 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-AzureNativeFunctionContainerregistryGetBuildLogLink { param ( [parameter(mandatory=$False,HelpMessage='The build ID.)')] [string] $buildId, [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 ) 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-AzureNativeFunctionContainerregistryGetConnectedRegistry { 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 connected registry.)')] [string] $connectedRegistryName, [parameter(mandatory=$False,HelpMessage='The name of the container registry.)')] [string] $registryName ) 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-AzureNativeFunctionContainerregistryListWebhookEvents { param ( [parameter(mandatory=$False,HelpMessage='The name of the webhook.)')] [string] $webhookName, [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 ) 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-AzureNativeFunctionContainerregistryGetReplication { param ( [parameter(mandatory=$False,HelpMessage='The name of the replication.)')] [string] $replicationName, [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 ) 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-AzureNativeFunctionContainerregistryGetImportPipeline { param ( [parameter(mandatory=$False,HelpMessage='The name of the import pipeline.)')] [string] $importPipelineName, [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 ) 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-AzureNativeFunctionContainerregistryGetTaskRun { 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 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-AzureNativeFunctionContainerregistryGetAgentPool { 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 agent pool.)')] [string] $agentPoolName, [parameter(mandatory=$False,HelpMessage='The name of the container registry.)')] [string] $registryName ) 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 resource group to which the container registry belongs.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the container registry task.)')] [string] $taskName, [parameter(mandatory=$False,HelpMessage='The name of the container registry.)')] [string] $registryName ) 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-AzureNativeFunctionContainerregistryGetRegistryCredentials { 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 ) 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 export pipeline.)')] [string] $exportPipelineName, [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 ) 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-AzureNativeFunctionContainerregistryGetPipelineRun { 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 pipeline run.)')] [string] $pipelineRunName, [parameter(mandatory=$False,HelpMessage='The name of the container registry.)')] [string] $registryName ) 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-AzureNativeFunctionContainerregistryListBuildStepBuildArguments { param ( [parameter(mandatory=$False,HelpMessage='The name of a build step for a container registry build task.)')] [string] $stepName, [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 build task.)')] [string] $buildTaskName, [parameter(mandatory=$False,HelpMessage='The name of the container registry.)')] [string] $registryName ) 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 resource group to which the container registry belongs.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the container registry.)')] [string] $registryName ) 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-AzureNativeFunctionContainerregistryGetTask { 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 task.)')] [string] $taskName, [parameter(mandatory=$False,HelpMessage='The name of the container registry.)')] [string] $registryName ) 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-AzureNativeFunctionContainerregistryGetToken { param ( [parameter(mandatory=$False,HelpMessage='The name of the token.)')] [string] $tokenName, [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 ) 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-AzureNativeFunctionContainerregistryGetScopeMap { param ( [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=$False,HelpMessage='The name of the container registry.)')] [string] $registryName ) 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 } } 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 container registry.)')] [string] $registryName, [parameter(mandatory=$False,HelpMessage='The name of the private endpoint connection.)')] [string] $privateEndpointConnectionName ) 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 } } class IdentityProperties { [string] $principalId [ArgumentCompletions('SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', 'None')] [object] $type [string] $tenantId [object] $userAssignedIdentities } class UserIdentityProperties { [string] $clientId [string] $principalId } function New-AzureNativeTypeContainerregistryUserIdentityProperties { param ( [parameter(mandatory=$False,HelpMessage='The client id of user assigned identity.)')] [string] $clientId, [parameter(mandatory=$False,HelpMessage='The principal id of user assigned identity.)')] [string] $principalId ) process { return $([UserIdentityProperties]$PSBoundParameters) } } function New-AzureNativeTypeContainerregistryIdentityProperties { param ( [parameter(mandatory=$False,HelpMessage='The principal ID of resource identity.)')] [string] $principalId, [parameter(mandatory=$False,HelpMessage='The identity type.)')] $type, [parameter(mandatory=$False,HelpMessage='The tenant ID of resource.)')] [string] $tenantId, [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 ) process { return $([IdentityProperties]$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 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 { [SetValue[]] $values [string] $updateTriggerToken [Argument[]] $arguments [string] $contextPath [string] $target [string] $file } function New-AzureNativeTypeContainerregistryOverrideTaskStepProperties { param ( [parameter(mandatory=$False,HelpMessage='The collection of overridable values that can be passed when running a Task.)')] $values, [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='Gets or sets the collection of override arguments to be used when executing a build step.)')] $arguments, [parameter(mandatory=$False,HelpMessage='The source context against which run has to be queued.)')] [string] $contextPath, [parameter(mandatory=$False,HelpMessage='The name of the target build stage for the docker build.)')] [string] $target, [parameter(mandatory=$False,HelpMessage='The file against which run has to be queued.)')] [string] $file ) process { return $([OverrideTaskStepProperties]$PSBoundParameters) } } class TaskRunRequest { [OverrideTaskStepProperties] $overrideTaskStepProperties [string] $agentPoolName [string] $type [bool] $isArchiveEnabled [string] $taskId [string] $logTemplate } function New-AzureNativeTypeContainerregistryTaskRunRequest { param ( [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 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='The resource ID of task against which run has to be queued.)')] [string] $taskId, [parameter(mandatory=$False,HelpMessage='The template that describes the repository and tag information for run log artifact.)')] [string] $logTemplate ) process { return $([TaskRunRequest]$PSBoundParameters) } } function New-AzureNativeContainerregistryTaskRun { [Alias('azure_native_containerregistry_taskrun')] param ( [parameter(mandatory=$False,HelpMessage='The name of the task run.)')] [string] $taskRunName, [parameter(mandatory=$False,HelpMessage='The name of the resource group to which the container registry belongs.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Identity for the resource.)')] [IdentityProperties] $identity, [parameter(mandatory=$False,HelpMessage='The location of the resource)')] [string] $location, [parameter(mandatory=$False,HelpMessage='The request (parameters) for the run)')] [TaskRunRequest] $runRequest, [parameter(mandatory=$False,HelpMessage='The name of the container registry.)')] [string] $registryName, [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,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:containerregistry:TaskRun") $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["registryName"] = $registryName $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'taskRunName') { $resource.properties["taskRunName"] = $taskRunName } if($PSBoundParameters.Keys -icontains 'identity') { $resource.properties["identity"] = $identity } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'runRequest') { $resource.properties["runRequest"] = $runRequest } if($PSBoundParameters.Keys -icontains 'forceUpdateTag') { $resource.properties["forceUpdateTag"] = $forceUpdateTag } $global:pulumiresources += $resource return $resource } } class PrivateLinkServiceConnectionState { [string] $description [ArgumentCompletions('Approved', 'Pending', 'Rejected', 'Disconnected')] [string] $status [ArgumentCompletions('None', 'Recreate')] [string] $actionsRequired } 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='The private link service connection status.)')] [string] [ArgumentCompletions('Approved', 'Pending', 'Rejected', 'Disconnected')] $status, [parameter(mandatory=$False,HelpMessage='A message indicating if changes on the service provider require any updates on the consumer.)')] [string] [ArgumentCompletions('None', 'Recreate')] $actionsRequired ) process { return $([PrivateLinkServiceConnectionState]$PSBoundParameters) } } 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) } } function New-AzureNativeContainerregistryPrivateEndpointConnection { [Alias('azure_native_containerregistry_privateendpointconnection')] 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='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 private endpoint connection.)')] [string] $privateEndpointConnectionName, [parameter(mandatory=$False,HelpMessage='The resource of private endpoint.)')] [PrivateEndpoint] $privateEndpoint, [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:containerregistry:PrivateEndpointConnection") $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["registryName"] = $registryName $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'privateLinkServiceConnectionState') { $resource.properties["privateLinkServiceConnectionState"] = $privateLinkServiceConnectionState } if($PSBoundParameters.Keys -icontains 'privateEndpointConnectionName') { $resource.properties["privateEndpointConnectionName"] = $privateEndpointConnectionName } if($PSBoundParameters.Keys -icontains 'privateEndpoint') { $resource.properties["privateEndpoint"] = $privateEndpoint } $global:pulumiresources += $resource return $resource } } function New-AzureNativeContainerregistryWebhook { [Alias('azure_native_containerregistry_webhook')] param ( [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 list of actions that trigger the webhook to post notifications.)')] $actions, [parameter(mandatory=$False,HelpMessage='The name of the webhook.)')] [string] $webhookName, [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] [ArgumentCompletions('enabled', 'disabled')] $status, [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 container registry.)')] [string] $registryName, [parameter(mandatory=$False,HelpMessage='The tags for the webhook.)')] [hashtable] $tags, [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, [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:containerregistry:Webhook") $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["actions"] = $actions $resource.properties["registryName"] = $registryName $resource.properties["resourceGroupName"] = $resourceGroupName $resource.properties["serviceUri"] = $serviceUri if($PSBoundParameters.Keys -icontains 'scope') { $resource.properties["scope"] = $scope } if($PSBoundParameters.Keys -icontains 'webhookName') { $resource.properties["webhookName"] = $webhookName } if($PSBoundParameters.Keys -icontains 'status') { $resource.properties["status"] = $status } if($PSBoundParameters.Keys -icontains 'customHeaders') { $resource.properties["customHeaders"] = $customHeaders } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } $global:pulumiresources += $resource return $resource } } class AuthInfo { [string] $token [string] $scope [string] $refreshToken [int] $expiresIn [ArgumentCompletions('PAT', 'OAuth')] [string] $tokenType } function New-AzureNativeTypeContainerregistryAuthInfo { param ( [parameter(mandatory=$False,HelpMessage='The access token used to access the source control provider.)')] [string] $token, [parameter(mandatory=$False,HelpMessage='The scope of the access token.)')] [string] $scope, [parameter(mandatory=$False,HelpMessage='The refresh token used to refresh the access token.)')] [string] $refreshToken, [parameter(mandatory=$False,HelpMessage='Time in seconds that the token remains valid)')] [int] $expiresIn, [parameter(mandatory=$False,HelpMessage='The type of Auth token.)')] [string] [ArgumentCompletions('PAT', 'OAuth')] $tokenType ) process { return $([AuthInfo]$PSBoundParameters) } } class SourceProperties { [ArgumentCompletions('Github', 'VisualStudioTeamService')] [string] $sourceControlType [string] $repositoryUrl [string] $branch [AuthInfo] $sourceControlAuthProperties } function New-AzureNativeTypeContainerregistrySourceProperties { param ( [parameter(mandatory=$False,HelpMessage='The type of source control service.)')] [string] [ArgumentCompletions('Github', 'VisualStudioTeamService')] $sourceControlType, [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, [parameter(mandatory=$False,HelpMessage='The authorization properties for accessing the source code repository and to set up webhooks for notifications.)')] [AuthInfo] $sourceControlAuthProperties ) process { return $([SourceProperties]$PSBoundParameters) } } class SourceTrigger { [SourceProperties] $sourceRepository [string] $name [string[]] $sourceTriggerEvents [ArgumentCompletions('Disabled', 'Enabled')] [string] $status } function New-AzureNativeTypeContainerregistrySourceTrigger { param ( [parameter(mandatory=$False,HelpMessage='The properties that describes the source(code) for the task.)')] [SourceProperties] $sourceRepository, [parameter(mandatory=$False,HelpMessage='The name of the trigger.)')] [string] $name, [parameter(mandatory=$False,HelpMessage='The source event corresponding to the trigger.)')] $sourceTriggerEvents, [parameter(mandatory=$False,HelpMessage='The current status of trigger.)')] [string] [ArgumentCompletions('Disabled', 'Enabled')] $status ) process { return $([SourceTrigger]$PSBoundParameters) } } class TimerTrigger { [string] $name [ArgumentCompletions('Disabled', 'Enabled')] [string] $status [string] $schedule } function New-AzureNativeTypeContainerregistryTimerTrigger { param ( [parameter(mandatory=$False,HelpMessage='The name of the trigger.)')] [string] $name, [parameter(mandatory=$False,HelpMessage='The current status of trigger.)')] [string] [ArgumentCompletions('Disabled', 'Enabled')] $status, [parameter(mandatory=$False,HelpMessage='The CRON expression for the task schedule)')] [string] $schedule ) process { return $([TimerTrigger]$PSBoundParameters) } } class BaseImageTrigger { [string] $name [ArgumentCompletions('All', 'Runtime')] [string] $baseImageTriggerType [string] $updateTriggerEndpoint [ArgumentCompletions('Disabled', 'Enabled')] [string] $status [ArgumentCompletions('Default', 'Token')] [string] $updateTriggerPayloadType } function New-AzureNativeTypeContainerregistryBaseImageTrigger { param ( [parameter(mandatory=$False,HelpMessage='The name of the trigger.)')] [string] $name, [parameter(mandatory=$False,HelpMessage='The type of the auto trigger for base image dependency updates.)')] [string] [ArgumentCompletions('All', 'Runtime')] $baseImageTriggerType, [parameter(mandatory=$False,HelpMessage='The endpoint URL for receiving update triggers.)')] [string] $updateTriggerEndpoint, [parameter(mandatory=$False,HelpMessage='The current status of trigger.)')] [string] [ArgumentCompletions('Disabled', 'Enabled')] $status, [parameter(mandatory=$False,HelpMessage='Type of Payload body for Base image update triggers.)')] [string] [ArgumentCompletions('Default', 'Token')] $updateTriggerPayloadType ) process { return $([BaseImageTrigger]$PSBoundParameters) } } class TriggerProperties { [SourceTrigger[]] $sourceTriggers [TimerTrigger[]] $timerTriggers [BaseImageTrigger] $baseImageTrigger } function New-AzureNativeTypeContainerregistryTriggerProperties { param ( [parameter(mandatory=$False,HelpMessage='The collection of triggers based on source code repository.)')] $sourceTriggers, [parameter(mandatory=$False,HelpMessage='The collection of timer triggers.)')] $timerTriggers, [parameter(mandatory=$False,HelpMessage='The trigger based on base image dependencies.)')] [BaseImageTrigger] $baseImageTrigger ) process { return $([TriggerProperties]$PSBoundParameters) } } class SourceRegistryCredentials { [ArgumentCompletions('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] [ArgumentCompletions('None', 'Default')] $loginMode ) process { return $([SourceRegistryCredentials]$PSBoundParameters) } } class Credentials { [SourceRegistryCredentials] $sourceRegistry [object] $customRegistries } class SecretObject { [ArgumentCompletions('Opaque', 'Vaultsecret')] [string] $type [string] $value } function New-AzureNativeTypeContainerregistrySecretObject { param ( [parameter(mandatory=$False,HelpMessage='The type of the secret object which determines how the value of the secret object has to be interpreted.)')] [string] [ArgumentCompletions('Opaque', 'Vaultsecret')] $type, [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 ) process { return $([SecretObject]$PSBoundParameters) } } class CustomRegistryCredentials { [SecretObject] $userName [string] $identity [SecretObject] $password } function New-AzureNativeTypeContainerregistryCustomRegistryCredentials { param ( [parameter(mandatory=$False,HelpMessage='The username for logging into the custom registry.)')] [SecretObject] $userName, [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, [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 ) 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 FileTaskStep { [string] $taskFilePath [string] $valuesFilePath [SetValue[]] $values [string] $type [string] $contextPath [string] $contextAccessToken } function New-AzureNativeTypeContainerregistryFileTaskStep { param ( [parameter(mandatory=$False,HelpMessage='The task template/definition file path relative to the source context.)')] [string] $taskFilePath, [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, [parameter(mandatory=$False,HelpMessage='The type of the step. Expected value is ''FileTask''.)')] [string] $type, [parameter(mandatory=$False,HelpMessage='The URL(absolute or relative) of the source context for the task step.)')] [string] $contextPath, [parameter(mandatory=$False,HelpMessage='The token (git PAT or SAS token of storage account blob) associated with the context for a step.)')] [string] $contextAccessToken ) process { return $([FileTaskStep]$PSBoundParameters) } } class PlatformProperties { [ArgumentCompletions('amd64', 'x86', '386', 'arm', 'arm64')] [string] $architecture [ArgumentCompletions('Windows', 'Linux')] [string] $os [ArgumentCompletions('v6', 'v7', 'v8')] [string] $variant } function New-AzureNativeTypeContainerregistryPlatformProperties { param ( [parameter(mandatory=$False,HelpMessage='The OS architecture.)')] [string] [ArgumentCompletions('amd64', 'x86', '386', 'arm', 'arm64')] $architecture, [parameter(mandatory=$False,HelpMessage='The operating system type required for the run.)')] [string] [ArgumentCompletions('Windows', 'Linux')] $os, [parameter(mandatory=$False,HelpMessage='Variant of the CPU.)')] [string] [ArgumentCompletions('v6', 'v7', 'v8')] $variant ) process { return $([PlatformProperties]$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) } } function New-AzureNativeContainerregistryTask { [Alias('azure_native_containerregistry_task')] param ( [parameter(mandatory=$False,HelpMessage='The tags of the resource.)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='The current status of task.)')] [string] [ArgumentCompletions('Disabled', 'Enabled')] $status, [parameter(mandatory=$False,HelpMessage='The properties that describe all triggers for the task.)')] [TriggerProperties] $trigger, [parameter(mandatory=$False,HelpMessage='The template that describes the repository and tag information for run log artifact.)')] [string] $logTemplate, [parameter(mandatory=$False,HelpMessage='The name of the container registry task.)')] [string] $taskName, [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 location of the resource. This cannot be changed after the resource is created.)')] [string] $location, [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 properties of a task step.)')] [FileTaskStep] $step, [parameter(mandatory=$False,HelpMessage='The dedicated agent pool for the task.)')] [string] $agentPoolName, [parameter(mandatory=$False,HelpMessage='The platform properties against which the run has to happen.)')] [PlatformProperties] $platform, [parameter(mandatory=$False,HelpMessage='The machine configuration of the run agent.)')] [AgentProperties] $agentConfiguration, [parameter(mandatory=$False,HelpMessage='Identity for the resource.)')] [IdentityProperties] $identity, [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,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:containerregistry:Task") $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["registryName"] = $registryName $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'status') { $resource.properties["status"] = $status } if($PSBoundParameters.Keys -icontains 'trigger') { $resource.properties["trigger"] = $trigger } if($PSBoundParameters.Keys -icontains 'logTemplate') { $resource.properties["logTemplate"] = $logTemplate } if($PSBoundParameters.Keys -icontains 'taskName') { $resource.properties["taskName"] = $taskName } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'credentials') { $resource.properties["credentials"] = $credentials } if($PSBoundParameters.Keys -icontains 'step') { $resource.properties["step"] = $step } if($PSBoundParameters.Keys -icontains 'agentPoolName') { $resource.properties["agentPoolName"] = $agentPoolName } if($PSBoundParameters.Keys -icontains 'platform') { $resource.properties["platform"] = $platform } if($PSBoundParameters.Keys -icontains 'agentConfiguration') { $resource.properties["agentConfiguration"] = $agentConfiguration } if($PSBoundParameters.Keys -icontains 'identity') { $resource.properties["identity"] = $identity } if($PSBoundParameters.Keys -icontains 'timeout') { $resource.properties["timeout"] = $timeout } if($PSBoundParameters.Keys -icontains 'isSystemTask') { $resource.properties["isSystemTask"] = $isSystemTask } $global:pulumiresources += $resource return $resource } } class LoggingProperties { [ArgumentCompletions('Enabled', 'Disabled')] [string] $auditLogStatus [ArgumentCompletions('Debug', 'Information', 'Warning', 'Error', 'None')] [string] $logLevel } function New-AzureNativeTypeContainerregistryLoggingProperties { param ( [parameter(mandatory=$False,HelpMessage='Indicates whether audit logs are enabled on the connected registry.)')] [string] [ArgumentCompletions('Enabled', 'Disabled')] $auditLogStatus, [parameter(mandatory=$False,HelpMessage='The verbosity of logs persisted on the connected registry.)')] [string] [ArgumentCompletions('Debug', 'Information', 'Warning', 'Error', 'None')] $logLevel ) process { return $([LoggingProperties]$PSBoundParameters) } } class SyncProperties { [string] $syncWindow [string] $messageTtl [string] $tokenId [string] $schedule } function New-AzureNativeTypeContainerregistrySyncProperties { param ( [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 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 resource ID of the ACR token used to authenticate the connected registry to its parent during sync.)')] [string] $tokenId, [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 logging properties of the connected registry.)')] [LoggingProperties] $logging, [parameter(mandatory=$False,HelpMessage='The parent of the connected registry.)')] [ParentProperties] $parent, [parameter(mandatory=$False,HelpMessage='The mode of the connected registry resource that indicates the permissions of the registry.)')] [string] [ArgumentCompletions('Registry', 'Mirror')] $mode, [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 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, [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:containerregistry:ConnectedRegistry") $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["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 } } function New-AzureNativeContainerregistryAgentPool { [Alias('azure_native_containerregistry_agentpool')] param ( [parameter(mandatory=$False,HelpMessage='The count of agent machine)')] [int] $count, [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 OS of agent machine)')] [string] [ArgumentCompletions('Windows', 'Linux')] $os, [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 Virtual Network Subnet Resource Id of the agent machine)')] [string] $virtualNetworkSubnetResourceId, [parameter(mandatory=$False,HelpMessage='The Tier of agent machine)')] [string] $tier, [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, [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:containerregistry:AgentPool") $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["registryName"] = $registryName $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'count') { $resource.properties["count"] = $count } if($PSBoundParameters.Keys -icontains 'agentPoolName') { $resource.properties["agentPoolName"] = $agentPoolName } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'os') { $resource.properties["os"] = $os } if($PSBoundParameters.Keys -icontains 'virtualNetworkSubnetResourceId') { $resource.properties["virtualNetworkSubnetResourceId"] = $virtualNetworkSubnetResourceId } if($PSBoundParameters.Keys -icontains 'tier') { $resource.properties["tier"] = $tier } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } $global:pulumiresources += $resource return $resource } } class ExportPipelineTargetProperties { [string] $uri [string] $type [string] $keyVaultUri } function New-AzureNativeTypeContainerregistryExportPipelineTargetProperties { param ( [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, [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 ) process { return $([ExportPipelineTargetProperties]$PSBoundParameters) } } function New-AzureNativeContainerregistryExportPipeline { [Alias('azure_native_containerregistry_exportpipeline')] param ( [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 identity of the export pipeline.)')] [IdentityProperties] $identity, [parameter(mandatory=$False,HelpMessage='The location of the export pipeline.)')] [string] $location, [parameter(mandatory=$False,HelpMessage='The name of the container registry.)')] [string] $registryName, [parameter(mandatory=$False,HelpMessage='The target properties of the export pipeline.)')] [ExportPipelineTargetProperties] $target, [parameter(mandatory=$False,HelpMessage='The name of the export pipeline.)')] [string] $exportPipelineName, [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:containerregistry:ExportPipeline") $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["registryName"] = $registryName $resource.properties["resourceGroupName"] = $resourceGroupName $resource.properties["target"] = $target if($PSBoundParameters.Keys -icontains 'options') { $resource.properties["options"] = $options } if($PSBoundParameters.Keys -icontains 'identity') { $resource.properties["identity"] = $identity } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'exportPipelineName') { $resource.properties["exportPipelineName"] = $exportPipelineName } $global:pulumiresources += $resource return $resource } } 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) } } class Sku { [ArgumentCompletions('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] [ArgumentCompletions('Classic', 'Basic', 'Standard', 'Premium')] $name ) process { return $([Sku]$PSBoundParameters) } } class RetentionPolicy { [ArgumentCompletions('enabled', 'disabled')] [string] $status [int] $days } function New-AzureNativeTypeContainerregistryRetentionPolicy { param ( [parameter(mandatory=$False,HelpMessage='The value that indicates whether the policy is enabled or not.)')] [string] [ArgumentCompletions('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 QuarantinePolicy { [ArgumentCompletions('enabled', 'disabled')] [string] $status } function New-AzureNativeTypeContainerregistryQuarantinePolicy { param ( [parameter(mandatory=$False,HelpMessage='The value that indicates whether the policy is enabled or not.)')] [string] [ArgumentCompletions('enabled', 'disabled')] $status ) process { return $([QuarantinePolicy]$PSBoundParameters) } } class TrustPolicy { [ArgumentCompletions('Notary')] [string] $type [ArgumentCompletions('enabled', 'disabled')] [string] $status } function New-AzureNativeTypeContainerregistryTrustPolicy { param ( [parameter(mandatory=$False,HelpMessage='The type of trust policy.)')] [string] [ArgumentCompletions('Notary')] $type, [parameter(mandatory=$False,HelpMessage='The value that indicates whether the policy is enabled or not.)')] [string] [ArgumentCompletions('enabled', 'disabled')] $status ) process { return $([TrustPolicy]$PSBoundParameters) } } class Policies { [RetentionPolicy] $retentionPolicy [QuarantinePolicy] $quarantinePolicy [TrustPolicy] $trustPolicy } function New-AzureNativeTypeContainerregistryPolicies { param ( [parameter(mandatory=$False,HelpMessage='The retention policy for a container registry.)')] [RetentionPolicy] $retentionPolicy, [parameter(mandatory=$False,HelpMessage='The quarantine policy for a container registry.)')] [QuarantinePolicy] $quarantinePolicy, [parameter(mandatory=$False,HelpMessage='The content trust policy for a container registry.)')] [TrustPolicy] $trustPolicy ) process { return $([Policies]$PSBoundParameters) } } class IPRule { [string] $iPAddressOrRange [ArgumentCompletions('Allow')] [string] $action } function New-AzureNativeTypeContainerregistryIPRule { param ( [parameter(mandatory=$False,HelpMessage='Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.)')] [string] $iPAddressOrRange, [parameter(mandatory=$False,HelpMessage='The action of IP ACL rule.)')] [string] [ArgumentCompletions('Allow')] $action ) process { return $([IPRule]$PSBoundParameters) } } class VirtualNetworkRule { [string] $virtualNetworkResourceId [ArgumentCompletions('Allow')] [string] $action } function New-AzureNativeTypeContainerregistryVirtualNetworkRule { param ( [parameter(mandatory=$False,HelpMessage='Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}.)')] [string] $virtualNetworkResourceId, [parameter(mandatory=$False,HelpMessage='The action of virtual network rule.)')] [string] [ArgumentCompletions('Allow')] $action ) process { return $([VirtualNetworkRule]$PSBoundParameters) } } class NetworkRuleSet { [IPRule[]] $ipRules [ArgumentCompletions('Allow', 'Deny')] [string] $defaultAction [VirtualNetworkRule[]] $virtualNetworkRules } function New-AzureNativeTypeContainerregistryNetworkRuleSet { param ( [parameter(mandatory=$False,HelpMessage='The IP ACL rules.)')] $ipRules, [parameter(mandatory=$False,HelpMessage='The default action of allow or deny when no other rules match.)')] [string] [ArgumentCompletions('Allow', 'Deny')] $defaultAction, [parameter(mandatory=$False,HelpMessage='The virtual network rules.)')] $virtualNetworkRules ) process { return $([NetworkRuleSet]$PSBoundParameters) } } function New-AzureNativeContainerregistryRegistry { [Alias('azure_native_containerregistry_registry')] param ( [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=$False,HelpMessage='The name of the container registry.)')] [string] $registryName, [parameter(mandatory=$False,HelpMessage='The SKU of the container registry.)')] [Sku] $sku, [parameter(mandatory=$False,HelpMessage='The name of the resource group to which the container registry belongs.)')] [string] $resourceGroupName, [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 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,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:containerregistry:Registry") $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 $resource.properties["sku"] = $sku if($PSBoundParameters.Keys -icontains 'storageAccount') { $resource.properties["storageAccount"] = $storageAccount } if($PSBoundParameters.Keys -icontains 'adminUserEnabled') { $resource.properties["adminUserEnabled"] = $adminUserEnabled } if($PSBoundParameters.Keys -icontains 'registryName') { $resource.properties["registryName"] = $registryName } 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 'location') { $resource.properties["location"] = $location } $global:pulumiresources += $resource return $resource } } function New-AzureNativeContainerregistryScopeMap { [Alias('azure_native_containerregistry_scopemap')] 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 name of the scope map.)')] [string] $scopeMapName, [parameter(mandatory=$False,HelpMessage='The user friendly description of the scope map.)')] [string] $description, [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,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:containerregistry:ScopeMap") $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["actions"] = $actions $resource.properties["registryName"] = $registryName $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'scopeMapName') { $resource.properties["scopeMapName"] = $scopeMapName } if($PSBoundParameters.Keys -icontains 'description') { $resource.properties["description"] = $description } $global:pulumiresources += $resource return $resource } } class PipelineRunSourceProperties { [ArgumentCompletions('AzureStorageBlob')] [string] $type [string] $name } function New-AzureNativeTypeContainerregistryPipelineRunSourceProperties { param ( [parameter(mandatory=$False,HelpMessage='The type of the source.)')] [string] [ArgumentCompletions('AzureStorageBlob')] $type, [parameter(mandatory=$False,HelpMessage='The name of the source.)')] [string] $name ) process { return $([PipelineRunSourceProperties]$PSBoundParameters) } } class PipelineRunTargetProperties { [ArgumentCompletions('AzureStorageBlob')] [string] $type [string] $name } function New-AzureNativeTypeContainerregistryPipelineRunTargetProperties { param ( [parameter(mandatory=$False,HelpMessage='The type of the target.)')] [string] [ArgumentCompletions('AzureStorageBlob')] $type, [parameter(mandatory=$False,HelpMessage='The name of the target.)')] [string] $name ) process { return $([PipelineRunTargetProperties]$PSBoundParameters) } } class PipelineRunRequest { [string] $catalogDigest [PipelineRunSourceProperties] $source [string[]] $artifacts [string] $pipelineResourceId [PipelineRunTargetProperties] $target } function New-AzureNativeTypeContainerregistryPipelineRunRequest { param ( [parameter(mandatory=$False,HelpMessage='The digest of the tar used to transfer the artifacts.)')] [string] $catalogDigest, [parameter(mandatory=$False,HelpMessage='The source properties of the pipeline run.)')] [PipelineRunSourceProperties] $source, [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 resource ID of the pipeline to run.)')] [string] $pipelineResourceId, [parameter(mandatory=$False,HelpMessage='The target properties of the pipeline run.)')] [PipelineRunTargetProperties] $target ) process { return $([PipelineRunRequest]$PSBoundParameters) } } function New-AzureNativeContainerregistryPipelineRun { [Alias('azure_native_containerregistry_pipelinerun')] 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 pipeline run.)')] [string] $pipelineRunName, [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=$False,HelpMessage='The name of the container registry.)')] [string] $registryName, [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:containerregistry:PipelineRun") $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["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 TokenCertificate { [ArgumentCompletions('certificate1', 'certificate2')] [string] $name [string] $expiry [string] $encodedPemCertificate [string] $thumbprint } function New-AzureNativeTypeContainerregistryTokenCertificate { param ( [parameter(mandatory=$False,HelpMessage=')')] [string] [ArgumentCompletions('certificate1', 'certificate2')] $name, [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, [parameter(mandatory=$False,HelpMessage='The thumbprint of the certificate.)')] [string] $thumbprint ) process { return $([TokenCertificate]$PSBoundParameters) } } class TokenPassword { [string] $expiry [ArgumentCompletions('password1', 'password2')] [string] $name [string] $creationTime } function New-AzureNativeTypeContainerregistryTokenPassword { param ( [parameter(mandatory=$False,HelpMessage='The expiry datetime of the password.)')] [string] $expiry, [parameter(mandatory=$False,HelpMessage='The password name "password1" or "password2")')] [string] [ArgumentCompletions('password1', 'password2')] $name, [parameter(mandatory=$False,HelpMessage='The creation datetime of the password.)')] [string] $creationTime ) process { return $([TokenPassword]$PSBoundParameters) } } class TokenCredentialsProperties { [TokenCertificate[]] $certificates [TokenPassword[]] $passwords } function New-AzureNativeTypeContainerregistryTokenCredentialsProperties { param ( [parameter(mandatory=$False,HelpMessage=')')] $certificates, [parameter(mandatory=$False,HelpMessage=')')] $passwords ) process { return $([TokenCredentialsProperties]$PSBoundParameters) } } function New-AzureNativeContainerregistryToken { [Alias('azure_native_containerregistry_token')] 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 token example enabled or disabled.)')] [string] [ArgumentCompletions('enabled', 'disabled')] $status, [parameter(mandatory=$False,HelpMessage='The credentials that can be used for authenticating the token.)')] [TokenCredentialsProperties] $credentials, [parameter(mandatory=$False,HelpMessage='The name of the token.)')] [string] $tokenName, [parameter(mandatory=$False,HelpMessage='The name of the container registry.)')] [string] $registryName, [parameter(mandatory=$False,HelpMessage='The resource ID of the scope map to which the token will be associated with.)')] [string] $scopeMapId, [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:containerregistry:Token") $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["registryName"] = $registryName $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'status') { $resource.properties["status"] = $status } if($PSBoundParameters.Keys -icontains 'credentials') { $resource.properties["credentials"] = $credentials } if($PSBoundParameters.Keys -icontains 'tokenName') { $resource.properties["tokenName"] = $tokenName } if($PSBoundParameters.Keys -icontains 'scopeMapId') { $resource.properties["scopeMapId"] = $scopeMapId } $global:pulumiresources += $resource return $resource } } function New-AzureNativeContainerregistryReplication { [Alias('azure_native_containerregistry_replication')] param ( [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 resource group to which the container registry belongs.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the replication.)')] [string] $replicationName, [parameter(mandatory=$False,HelpMessage='The name of the container registry.)')] [string] $registryName, [parameter(mandatory=$False,HelpMessage='The tags of the resource.)')] [hashtable] $tags, [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:containerregistry:Replication") $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["registryName"] = $registryName $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'replicationName') { $resource.properties["replicationName"] = $replicationName } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } $global:pulumiresources += $resource return $resource } } class ImportPipelineSourceProperties { [string] $uri [ArgumentCompletions('AzureStorageBlobContainer')] [string] $type [string] $keyVaultUri } function New-AzureNativeTypeContainerregistryImportPipelineSourceProperties { param ( [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, [parameter(mandatory=$False,HelpMessage='The type of source for the import pipeline.)')] [string] [ArgumentCompletions('AzureStorageBlobContainer')] $type, [parameter(mandatory=$False,HelpMessage='They key vault secret uri to obtain the source storage SAS token.)')] [string] $keyVaultUri ) process { return $([ImportPipelineSourceProperties]$PSBoundParameters) } } class PipelineSourceTriggerProperties { [ArgumentCompletions('Disabled', 'Enabled')] [string] $status } function New-AzureNativeTypeContainerregistryPipelineSourceTriggerProperties { param ( [parameter(mandatory=$False,HelpMessage='The current status of the source trigger.)')] [string] [ArgumentCompletions('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) } } function New-AzureNativeContainerregistryImportPipeline { [Alias('azure_native_containerregistry_importpipeline')] param ( [parameter(mandatory=$False,HelpMessage='The list of all options configured for the pipeline.)')] $options, [parameter(mandatory=$False,HelpMessage='The name of the container registry.)')] [string] $registryName, [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 source properties of the import pipeline.)')] [ImportPipelineSourceProperties] $source, [parameter(mandatory=$False,HelpMessage='The identity of the import pipeline.)')] [IdentityProperties] $identity, [parameter(mandatory=$False,HelpMessage='The name of the import pipeline.)')] [string] $importPipelineName, [parameter(mandatory=$False,HelpMessage='The properties that describe the trigger of the import pipeline.)')] [PipelineTriggerProperties] $trigger, [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:containerregistry:ImportPipeline") $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["registryName"] = $registryName $resource.properties["resourceGroupName"] = $resourceGroupName $resource.properties["source"] = $source if($PSBoundParameters.Keys -icontains 'options') { $resource.properties["options"] = $options } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'identity') { $resource.properties["identity"] = $identity } if($PSBoundParameters.Keys -icontains 'importPipelineName') { $resource.properties["importPipelineName"] = $importPipelineName } if($PSBoundParameters.Keys -icontains 'trigger') { $resource.properties["trigger"] = $trigger } $global:pulumiresources += $resource return $resource } } |