From d38ddec6448d1ea7e6862aabe06dab05b2e531be Mon Sep 17 00:00:00 2001 From: "azure-pipelines[bot]" <36771401+azure-pipelines[bot]@users.noreply.github.com> Date: Thu, 7 Nov 2024 12:59:45 +0800 Subject: [PATCH] Migrate ContainerInstance from generation to main (#26614) * Move ContainerInstance to main * Add change log and suppress breaking change * Update Add-AzContainerInstanceOutput.Recording.json --------- Co-authored-by: azure-powershell-bot <65331932+azure-powershell-bot@users.noreply.github.com> Co-authored-by: Vincent Dai <23257217+vidai-msft@users.noreply.github.com> --- .../Az.ContainerInstance.format.ps1xml | 660 ++++- .../Az.ContainerInstance.psd1 | 2 +- .../ContainerInstance.Autorest/README.md | 11 +- .../containerGroupProfiles-revisions.json | 52 + .../containerGroupProfiles.json | 85 + .../containerGroups-containers.json | 2 +- .../containerGroups.json | 2 +- .../virtualNetworks-subnets.json | 2 +- .../build-module.ps1 | 17 +- ...ontainerInstanceCommand_ExecuteExpanded.cs | 4 +- .../custom/New-AzContainerGroup.ps1 | 47 +- ...inerGroupImageRegistryCredentialObject.ps1 | 4 +- .../custom/New-AzContainerGroupPortObject.ps1 | 4 +- .../New-AzContainerGroupVolumeObject.ps1 | 10 +- ...ainerInstanceEnvironmentVariableObject.ps1 | 4 +- ...ew-AzContainerInstanceHttpHeaderObject.ps1 | 4 +- ...zContainerInstanceInitDefinitionObject.ps1 | 8 +- ...New-AzContainerInstanceNoDefaultObject.ps1 | 196 ++ .../custom/New-AzContainerInstanceObject.ps1 | 21 +- .../New-AzContainerInstancePortObject.ps1 | 4 +- ...w-AzContainerInstanceVolumeMountObject.ps1 | 4 +- .../SpecialHandlerToRemoveDefaultValue.cs | 2 +- ...zContainerInstanceContainerGroupProfile.md | 131 + ...erInstanceContainerGroupProfileRevision.md | 13 + .../examples/New-AzContainerGroup.md | 12 +- ...ainerGroupImageRegistryCredentialObject.md | 3 +- .../New-AzContainerGroupVolumeObject.md | 3 +- ...zContainerInstanceContainerGroupProfile.md | 62 + ...tainerInstanceEnvironmentVariableObject.md | 3 +- .../New-AzContainerInstanceNoDefaultObject.md | 41 + ...zContainerInstanceContainerGroupProfile.md | 19 + ...zContainerInstanceContainerGroupProfile.md | 29 + .../exports/Add-AzContainerInstanceOutput.ps1 | 9 +- .../exports/Get-AzContainerGroup.ps1 | 17 +- .../Get-AzContainerInstanceCachedImage.ps1 | 10 +- .../Get-AzContainerInstanceCapability.ps1 | 10 +- ...GroupOutboundNetworkDependencyEndpoint.ps1 | 13 +- ...ContainerInstanceContainerGroupProfile.ps1 | 241 ++ ...rInstanceContainerGroupProfileRevision.ps1 | 191 ++ .../exports/Get-AzContainerInstanceLog.ps1 | 5 +- .../exports/Get-AzContainerInstanceUsage.ps1 | 10 +- .../exports/New-AzContainerGroup.ps1 | 96 +- ...inerGroupImageRegistryCredentialObject.ps1 | 7 +- .../New-AzContainerGroupPortObject.ps1 | 4 +- .../New-AzContainerGroupVolumeObject.ps1 | 11 +- ...ContainerInstanceContainerGroupProfile.ps1 | 508 ++++ ...ainerInstanceEnvironmentVariableObject.ps1 | 7 +- ...ew-AzContainerInstanceHttpHeaderObject.ps1 | 4 +- ...zContainerInstanceInitDefinitionObject.ps1 | 8 +- ...New-AzContainerInstanceNoDefaultObject.ps1 | 365 +++ .../exports/New-AzContainerInstanceObject.ps1 | 24 +- .../New-AzContainerInstancePortObject.ps1 | 4 +- ...w-AzContainerInstanceVolumeMountObject.ps1 | 4 +- .../exports/ProxyCmdletDefinitions.ps1 | 2490 ++++++++++++++--- .../exports/Remove-AzContainerGroup.ps1 | 17 +- ...ContainerInstanceContainerGroupProfile.ps1 | 226 ++ ...erInstanceSubnetServiceAssociationLink.ps1 | 13 +- .../exports/Restart-AzContainerGroup.ps1 | 13 +- .../exports/Start-AzContainerGroup.ps1 | 13 +- .../exports/Stop-AzContainerGroup.ps1 | 13 +- .../exports/Update-AzContainerGroup.ps1 | 19 +- ...ContainerInstanceContainerGroupProfile.ps1 | 248 ++ .../generated/api/ContainerInstance.cs | 1916 +++++++++++-- .../AzureFileVolume.PowerShell.cs | 36 +- .../AzureFileVolume.TypeConverter.cs | 6 +- .../AzureFileVolume.cs | 6 +- .../AzureFileVolume.json.cs | 8 +- .../CachedImages.PowerShell.cs | 28 +- .../CachedImages.TypeConverter.cs | 6 +- .../CachedImages.cs | 6 +- .../CachedImages.json.cs | 8 +- .../CachedImagesListResult.PowerShell.cs | 28 +- .../CachedImagesListResult.TypeConverter.cs | 6 +- .../CachedImagesListResult.cs | 16 +- .../CachedImagesListResult.json.cs | 10 +- .../Capabilities.PowerShell.cs | 56 +- .../Capabilities.TypeConverter.cs | 6 +- .../Capabilities.cs | 36 +- .../Capabilities.json.cs | 10 +- .../CapabilitiesAutoGenerated.PowerShell.cs | 32 +- ...CapabilitiesAutoGenerated.TypeConverter.cs | 6 +- .../CapabilitiesAutoGenerated.cs | 12 +- .../CapabilitiesAutoGenerated.json.cs | 8 +- .../CapabilitiesListResult.PowerShell.cs | 28 +- .../CapabilitiesListResult.TypeConverter.cs | 6 +- .../CapabilitiesListResult.cs | 16 +- .../CapabilitiesListResult.json.cs | 10 +- .../CloudError.PowerShell.cs | 40 +- .../CloudError.TypeConverter.cs | 6 +- .../CloudError.cs | 28 +- .../CloudError.json.cs | 10 +- .../CloudErrorBody.PowerShell.cs | 36 +- .../CloudErrorBody.TypeConverter.cs | 6 +- .../CloudErrorBody.cs | 16 +- .../CloudErrorBody.json.cs | 10 +- ...onfidentialComputeProperties.PowerShell.cs | 24 +- ...identialComputeProperties.TypeConverter.cs | 6 +- .../ConfidentialComputeProperties.cs | 6 +- .../ConfidentialComputeProperties.json.cs | 8 +- .../ConfigMap.PowerShell.cs | 164 ++ .../ConfigMap.TypeConverter.cs | 146 + .../Models/Api20240501Preview/ConfigMap.cs | 51 + .../Api20240501Preview/ConfigMap.json.cs | 108 + .../ConfigMapKeyValuePairs.PowerShell.cs | 162 ++ .../ConfigMapKeyValuePairs.TypeConverter.cs | 147 + .../ConfigMapKeyValuePairs.cs | 35 + .../ConfigMapKeyValuePairs.dictionary.cs | 75 + .../ConfigMapKeyValuePairs.json.cs | 109 + .../Container.PowerShell.cs | 352 ++- .../Container.TypeConverter.cs | 6 +- .../Container.cs | 367 ++- .../Container.json.cs | 10 +- .../ContainerAttachResponse.PowerShell.cs | 28 +- .../ContainerAttachResponse.TypeConverter.cs | 6 +- .../ContainerAttachResponse.cs | 6 +- .../ContainerAttachResponse.json.cs | 8 +- .../ContainerExec.PowerShell.cs | 24 +- .../ContainerExec.TypeConverter.cs | 6 +- .../ContainerExec.cs | 6 +- .../ContainerExec.json.cs | 8 +- .../ContainerExecRequest.PowerShell.cs | 36 +- .../ContainerExecRequest.TypeConverter.cs | 6 +- .../ContainerExecRequest.cs | 18 +- .../ContainerExecRequest.json.cs | 10 +- ...ainerExecRequestTerminalSize.PowerShell.cs | 28 +- ...erExecRequestTerminalSize.TypeConverter.cs | 6 +- .../ContainerExecRequestTerminalSize.cs | 6 +- .../ContainerExecRequestTerminalSize.json.cs | 8 +- .../ContainerExecResponse.PowerShell.cs | 28 +- .../ContainerExecResponse.TypeConverter.cs | 6 +- .../ContainerExecResponse.cs | 6 +- .../ContainerExecResponse.json.cs | 8 +- .../ContainerGroup.PowerShell.cs | 280 +- .../ContainerGroup.TypeConverter.cs | 6 +- .../ContainerGroup.cs | 182 +- .../ContainerGroup.json.cs | 12 +- .../ContainerGroupDiagnostics.PowerShell.cs | 44 +- ...ContainerGroupDiagnostics.TypeConverter.cs | 6 +- .../ContainerGroupDiagnostics.cs | 30 +- .../ContainerGroupDiagnostics.json.cs | 10 +- .../ContainerGroupIdentity.PowerShell.cs | 36 +- .../ContainerGroupIdentity.TypeConverter.cs | 6 +- .../ContainerGroupIdentity.cs | 20 +- .../ContainerGroupIdentity.json.cs | 10 +- ...entityUserAssignedIdentities.PowerShell.cs | 20 +- ...ityUserAssignedIdentities.TypeConverter.cs | 6 +- ...inerGroupIdentityUserAssignedIdentities.cs | 8 +- ...entityUserAssignedIdentities.dictionary.cs | 26 +- ...roupIdentityUserAssignedIdentities.json.cs | 12 +- .../ContainerGroupListResult.PowerShell.cs | 28 +- .../ContainerGroupListResult.TypeConverter.cs | 6 +- .../ContainerGroupListResult.cs | 16 +- .../ContainerGroupListResult.json.cs | 10 +- .../ContainerGroupProfile.PowerShell.cs | 462 +++ .../ContainerGroupProfile.TypeConverter.cs | 147 + .../ContainerGroupProfile.cs | 248 ++ .../ContainerGroupProfile.json.cs | 110 + ...tainerGroupProfileListResult.PowerShell.cs | 176 ++ ...nerGroupProfileListResult.TypeConverter.cs | 148 + .../ContainerGroupProfileListResult.cs | 70 + .../ContainerGroupProfileListResult.json.cs | 120 + .../ContainerGroupProfilePatch.PowerShell.cs | 166 ++ ...ontainerGroupProfilePatch.TypeConverter.cs | 147 + .../ContainerGroupProfilePatch.cs | 51 + .../ContainerGroupProfilePatch.json.cs | 108 + ...ntainerGroupProfilePatchTags.PowerShell.cs | 162 ++ ...inerGroupProfilePatchTags.TypeConverter.cs | 148 + .../ContainerGroupProfilePatchTags.cs | 35 + ...ntainerGroupProfilePatchTags.dictionary.cs | 75 + .../ContainerGroupProfilePatchTags.json.cs | 109 + ...tainerGroupProfileProperties.PowerShell.cs | 414 +++ ...nerGroupProfileProperties.TypeConverter.cs | 148 + .../ContainerGroupProfileProperties.cs | 487 ++++ .../ContainerGroupProfileProperties.json.cs | 108 + ...ofilePropertiesAutoGenerated.PowerShell.cs | 409 +++ ...lePropertiesAutoGenerated.TypeConverter.cs | 151 + ...inerGroupProfilePropertiesAutoGenerated.cs | 535 ++++ ...roupProfilePropertiesAutoGenerated.json.cs | 180 ++ ...upProfileReferenceDefinition.PowerShell.cs | 177 ++ ...rofileReferenceDefinition.TypeConverter.cs | 151 + ...ontainerGroupProfileReferenceDefinition.cs | 76 + ...nerGroupProfileReferenceDefinition.json.cs | 112 + .../ContainerGroupProperties.PowerShell.cs | 256 +- .../ContainerGroupProperties.TypeConverter.cs | 6 +- .../ContainerGroupProperties.cs | 304 +- .../ContainerGroupProperties.json.cs | 12 +- ...GroupPropertiesAutoGenerated.PowerShell.cs | 232 +- ...upPropertiesAutoGenerated.TypeConverter.cs | 6 +- .../ContainerGroupPropertiesAutoGenerated.cs | 317 ++- ...tainerGroupPropertiesAutoGenerated.json.cs | 41 +- ...rGroupPropertiesInstanceView.PowerShell.cs | 28 +- ...oupPropertiesInstanceView.TypeConverter.cs | 6 +- .../ContainerGroupPropertiesInstanceView.cs | 20 +- ...ntainerGroupPropertiesInstanceView.json.cs | 10 +- .../ContainerGroupSubnetId.PowerShell.cs | 28 +- .../ContainerGroupSubnetId.TypeConverter.cs | 6 +- .../ContainerGroupSubnetId.cs | 6 +- .../ContainerGroupSubnetId.json.cs | 8 +- .../ContainerHttpGet.PowerShell.cs | 36 +- .../ContainerHttpGet.TypeConverter.cs | 6 +- .../ContainerHttpGet.cs | 16 +- .../ContainerHttpGet.json.cs | 10 +- .../ContainerPort.PowerShell.cs | 28 +- .../ContainerPort.TypeConverter.cs | 6 +- .../ContainerPort.cs | 6 +- .../ContainerPort.json.cs | 8 +- .../ContainerProbe.PowerShell.cs | 68 +- .../ContainerProbe.TypeConverter.cs | 6 +- .../ContainerProbe.cs | 38 +- .../ContainerProbe.json.cs | 12 +- .../ContainerProperties.PowerShell.cs | 344 ++- .../ContainerProperties.TypeConverter.cs | 6 +- .../ContainerProperties.cs | 391 ++- .../ContainerProperties.json.cs | 26 +- ...tainerPropertiesInstanceView.PowerShell.cs | 76 +- ...nerPropertiesInstanceView.TypeConverter.cs | 6 +- .../ContainerPropertiesInstanceView.cs | 76 +- .../ContainerPropertiesInstanceView.json.cs | 14 +- .../ContainerState.PowerShell.cs | 40 +- .../ContainerState.TypeConverter.cs | 6 +- .../ContainerState.cs | 16 +- .../ContainerState.json.cs | 8 +- .../DeploymentExtensionSpec.PowerShell.cs | 44 +- .../DeploymentExtensionSpec.TypeConverter.cs | 6 +- .../DeploymentExtensionSpec.cs | 22 +- .../DeploymentExtensionSpec.json.cs | 10 +- ...ymentExtensionSpecProperties.PowerShell.cs | 36 +- ...ntExtensionSpecProperties.TypeConverter.cs | 6 +- .../DeploymentExtensionSpecProperties.cs | 6 +- .../DeploymentExtensionSpecProperties.json.cs | 8 +- .../DnsConfiguration.PowerShell.cs | 32 +- .../DnsConfiguration.TypeConverter.cs | 6 +- .../DnsConfiguration.cs | 6 +- .../DnsConfiguration.json.cs | 8 +- .../EncryptionProperties.PowerShell.cs | 36 +- .../EncryptionProperties.TypeConverter.cs | 6 +- .../EncryptionProperties.cs | 6 +- .../EncryptionProperties.json.cs | 8 +- .../EnvironmentVariable.PowerShell.cs | 32 +- .../EnvironmentVariable.TypeConverter.cs | 6 +- .../EnvironmentVariable.cs | 6 +- .../EnvironmentVariable.json.cs | 8 +- .../Event.PowerShell.cs | 44 +- .../Event.TypeConverter.cs | 6 +- .../Event.cs | 18 +- .../Event.json.cs | 8 +- .../GitRepoVolume.PowerShell.cs | 32 +- .../GitRepoVolume.TypeConverter.cs | 6 +- .../GitRepoVolume.cs | 6 +- .../GitRepoVolume.json.cs | 8 +- .../GpuResource.PowerShell.cs | 28 +- .../GpuResource.TypeConverter.cs | 6 +- .../GpuResource.cs | 6 +- .../GpuResource.json.cs | 8 +- .../HttpHeader.PowerShell.cs | 28 +- .../HttpHeader.TypeConverter.cs | 6 +- .../HttpHeader.cs | 6 +- .../HttpHeader.json.cs | 8 +- .../IPAddress.PowerShell.cs | 44 +- .../IPAddress.TypeConverter.cs | 6 +- .../IPAddress.cs | 18 +- .../IPAddress.json.cs | 10 +- .../ImageRegistryCredential.PowerShell.cs | 40 +- .../ImageRegistryCredential.TypeConverter.cs | 6 +- .../ImageRegistryCredential.cs | 6 +- .../ImageRegistryCredential.json.cs | 8 +- .../InitContainerDefinition.PowerShell.cs | 176 +- .../InitContainerDefinition.TypeConverter.cs | 6 +- .../InitContainerDefinition.cs | 214 +- .../InitContainerDefinition.json.cs | 10 +- ...ontainerPropertiesDefinition.PowerShell.cs | 168 +- ...ainerPropertiesDefinition.TypeConverter.cs | 6 +- .../InitContainerPropertiesDefinition.cs | 217 +- .../InitContainerPropertiesDefinition.json.cs | 16 +- ...ertiesDefinitionInstanceView.PowerShell.cs | 76 +- ...iesDefinitionInstanceView.TypeConverter.cs | 6 +- ...ntainerPropertiesDefinitionInstanceView.cs | 76 +- ...erPropertiesDefinitionInstanceView.json.cs | 14 +- .../LogAnalytics.PowerShell.cs | 40 +- .../LogAnalytics.TypeConverter.cs | 6 +- .../LogAnalytics.cs | 16 +- .../LogAnalytics.json.cs | 10 +- .../LogAnalyticsMetadata.PowerShell.cs | 20 +- .../LogAnalyticsMetadata.TypeConverter.cs | 6 +- .../LogAnalyticsMetadata.cs | 6 +- .../LogAnalyticsMetadata.dictionary.cs | 4 +- .../LogAnalyticsMetadata.json.cs | 8 +- .../Logs.PowerShell.cs | 24 +- .../Logs.TypeConverter.cs | 6 +- .../Logs.cs | 6 +- .../Logs.json.cs | 8 +- .../Operation.PowerShell.cs | 52 +- .../Operation.TypeConverter.cs | 6 +- .../Operation.cs | 22 +- .../Operation.json.cs | 10 +- .../OperationDisplay.PowerShell.cs | 36 +- .../OperationDisplay.TypeConverter.cs | 6 +- .../OperationDisplay.cs | 6 +- .../OperationDisplay.json.cs | 8 +- .../OperationListResult.PowerShell.cs | 28 +- .../OperationListResult.TypeConverter.cs | 6 +- .../OperationListResult.cs | 16 +- .../OperationListResult.json.cs | 10 +- .../Port.PowerShell.cs | 28 +- .../Port.TypeConverter.cs | 6 +- .../Port.cs | 6 +- .../Port.json.cs | 8 +- .../Resource.PowerShell.cs | 44 +- .../Resource.TypeConverter.cs | 6 +- .../Resource.cs | 22 +- .../Resource.json.cs | 10 +- .../ResourceLimits.PowerShell.cs | 40 +- .../ResourceLimits.TypeConverter.cs | 6 +- .../ResourceLimits.cs | 18 +- .../ResourceLimits.json.cs | 10 +- .../ResourceRequests.PowerShell.cs | 40 +- .../ResourceRequests.TypeConverter.cs | 6 +- .../ResourceRequests.cs | 18 +- .../ResourceRequests.json.cs | 10 +- .../ResourceRequirements.PowerShell.cs | 68 +- .../ResourceRequirements.TypeConverter.cs | 6 +- .../ResourceRequirements.cs | 46 +- .../ResourceRequirements.json.cs | 12 +- .../ResourceTags.PowerShell.cs | 20 +- .../ResourceTags.TypeConverter.cs | 6 +- .../ResourceTags.cs | 6 +- .../ResourceTags.dictionary.cs | 4 +- .../ResourceTags.json.cs | 8 +- .../SecretVolume.PowerShell.cs | 20 +- .../SecretVolume.TypeConverter.cs | 6 +- .../SecretVolume.cs | 6 +- .../SecretVolume.dictionary.cs | 4 +- .../SecretVolume.json.cs | 8 +- ...ontextCapabilitiesDefinition.PowerShell.cs | 177 ++ ...extCapabilitiesDefinition.TypeConverter.cs | 150 + .../SecurityContextCapabilitiesDefinition.cs | 68 + ...urityContextCapabilitiesDefinition.json.cs | 127 + .../SecurityContextDefinition.PowerShell.cs | 222 ++ ...SecurityContextDefinition.TypeConverter.cs | 147 + .../SecurityContextDefinition.cs | 165 ++ .../SecurityContextDefinition.json.cs | 118 + ...StandbyPoolProfileDefinition.PowerShell.cs | 174 ++ ...ndbyPoolProfileDefinition.TypeConverter.cs | 147 + .../StandbyPoolProfileDefinition.cs | 85 + .../StandbyPoolProfileDefinition.json.cs | 110 + .../Usage.PowerShell.cs | 48 +- .../Usage.TypeConverter.cs | 6 +- .../Usage.cs | 30 +- .../Usage.json.cs | 10 +- .../UsageListResult.PowerShell.cs | 24 +- .../UsageListResult.TypeConverter.cs | 6 +- .../UsageListResult.cs | 18 +- .../UsageListResult.json.cs | 10 +- .../UsageName.PowerShell.cs | 28 +- .../UsageName.TypeConverter.cs | 6 +- .../UsageName.cs | 10 +- .../UsageName.json.cs | 8 +- .../UserAssignedIdentities.PowerShell.cs | 28 +- .../UserAssignedIdentities.TypeConverter.cs | 6 +- .../UserAssignedIdentities.cs | 10 +- .../UserAssignedIdentities.json.cs | 8 +- .../Volume.PowerShell.cs | 68 +- .../Volume.TypeConverter.cs | 6 +- .../Volume.cs | 56 +- .../Volume.json.cs | 16 +- .../VolumeEmptyDir.PowerShell.cs | 20 +- .../VolumeEmptyDir.TypeConverter.cs | 6 +- .../VolumeEmptyDir.cs | 6 +- .../VolumeEmptyDir.dictionary.cs | 4 +- .../VolumeEmptyDir.json.cs | 8 +- .../VolumeMount.PowerShell.cs | 32 +- .../VolumeMount.TypeConverter.cs | 6 +- .../VolumeMount.cs | 6 +- .../VolumeMount.json.cs | 8 +- .../ContainerInstanceIdentity.PowerShell.cs | 16 + .../api/Models/ContainerInstanceIdentity.cs | 67 +- .../Models/ContainerInstanceIdentity.json.cs | 4 + .../AddAzContainerInstanceOutput_Attach.cs | 39 +- .../cmdlets/GetAzContainerGroup_Get.cs | 39 +- .../GetAzContainerGroup_GetViaIdentity.cs | 24 +- .../cmdlets/GetAzContainerGroup_List.cs | 31 +- .../cmdlets/GetAzContainerGroup_List1.cs | 37 +- .../GetAzContainerInstanceCachedImage_List.cs | 37 +- .../GetAzContainerInstanceCapability_List.cs | 37 +- ...upOutboundNetworkDependencyEndpoint_Get.cs | 27 +- ...etworkDependencyEndpoint_GetViaIdentity.cs | 12 +- ...tanceContainerGroupProfileRevision_List.cs | 463 +++ ...tainerInstanceContainerGroupProfile_Get.cs | 442 +++ ...ainerInstanceContainerGroupProfile_Get1.cs | 456 +++ ...nceContainerGroupProfile_GetViaIdentity.cs | 420 +++ ...ceContainerGroupProfile_GetViaIdentity1.cs | 424 +++ ...ainerInstanceContainerGroupProfile_List.cs | 435 +++ ...inerInstanceContainerGroupProfile_List1.cs | 449 +++ .../cmdlets/GetAzContainerInstanceLog_List.cs | 37 +- .../GetAzContainerInstanceOperation_List.cs | 22 +- .../GetAzContainerInstanceUsage_List.cs | 37 +- ...ontainerInstanceCommand_ExecuteExpanded.cs | 41 +- .../NewAzContainerGroup_CreateExpanded.cs | 142 +- ...nceContainerGroupProfile_CreateExpanded.cs | 800 ++++++ .../cmdlets/RemoveAzContainerGroup_Delete.cs | 39 +- ...emoveAzContainerGroup_DeleteViaIdentity.cs | 24 +- ...nerInstanceContainerGroupProfile_Delete.cs | 480 ++++ ...ContainerGroupProfile_DeleteViaIdentity.cs | 462 +++ ...anceSubnetServiceAssociationLink_Delete.cs | 27 +- ...erviceAssociationLink_DeleteViaIdentity.cs | 12 +- .../RestartAzContainerGroup_Restart.cs | 27 +- ...tartAzContainerGroup_RestartViaIdentity.cs | 12 +- .../cmdlets/StartAzContainerGroup_Start.cs | 27 +- .../StartAzContainerGroup_StartViaIdentity.cs | 12 +- .../cmdlets/StopAzContainerGroup_Stop.cs | 27 +- .../StopAzContainerGroup_StopViaIdentity.cs | 12 +- .../UpdateAzContainerGroup_UpdateExpanded.cs | 45 +- ...ontainerGroup_UpdateViaIdentityExpanded.cs | 30 +- ...inerInstanceContainerGroupProfile_Patch.cs | 451 +++ ...anceContainerGroupProfile_PatchExpanded.cs | 453 +++ ...eContainerGroupProfile_PatchViaIdentity.cs | 433 +++ ...erGroupProfile_PatchViaIdentityExpanded.cs | 435 +++ .../help/Add-AzContainerInstanceOutput.md | 7 +- .../help/Az.ContainerInstance.md | 21 + .../help/Get-AzContainerGroup.md | 7 +- .../Get-AzContainerInstanceCachedImage.md | 8 +- .../help/Get-AzContainerInstanceCapability.md | 8 +- ...rGroupOutboundNetworkDependencyEndpoint.md | 5 +- ...zContainerInstanceContainerGroupProfile.md | 300 ++ ...erInstanceContainerGroupProfileRevision.md | 118 + .../help/Get-AzContainerInstanceLog.md | 5 +- .../help/Get-AzContainerInstanceUsage.md | 8 +- .../help/New-AzContainerGroup.md | 110 +- ...ainerGroupImageRegistryCredentialObject.md | 5 +- .../help/New-AzContainerGroupPortObject.md | 2 +- .../help/New-AzContainerGroupVolumeObject.md | 9 +- ...zContainerInstanceContainerGroupProfile.md | 625 +++++ ...tainerInstanceEnvironmentVariableObject.md | 5 +- ...New-AzContainerInstanceHttpHeaderObject.md | 2 +- ...AzContainerInstanceInitDefinitionObject.md | 6 +- .../New-AzContainerInstanceNoDefaultObject.md | 623 +++++ .../help/New-AzContainerInstanceObject.md | 55 +- .../help/New-AzContainerInstancePortObject.md | 2 +- ...ew-AzContainerInstanceVolumeMountObject.md | 2 +- .../help/Remove-AzContainerGroup.md | 7 +- ...zContainerInstanceContainerGroupProfile.md | 189 ++ ...nerInstanceSubnetServiceAssociationLink.md | 5 +- .../help/Restart-AzContainerGroup.md | 5 +- .../help/Start-AzContainerGroup.md | 5 +- .../help/Stop-AzContainerGroup.md | 5 +- .../help/Update-AzContainerGroup.md | 7 +- ...zContainerInstanceContainerGroupProfile.md | 236 ++ .../Get-AzContainerInstanceOperation.ps1 | 4 +- .../Invoke-AzContainerInstanceCommand.ps1 | 9 +- .../internal/New-AzContainerGroup.ps1 | 103 +- .../internal/ProxyCmdletDefinitions.ps1 | 116 +- ...d-AzContainerInstanceOutput.Recording.json | 28 +- .../test/Get-AzContainerGroup.Recording.json | 141 +- .../test/Get-AzContainerGroup.Tests.ps1 | 2 +- ...ntainerGroupConfidentialSku.Recording.json | 74 +- ...ntainerGroupRegularPriority.Recording.json | 74 +- ...zContainerGroupSpotPriority.Recording.json | 74 +- ...ontainerInstanceCachedImage.Recording.json | 22 +- ...ContainerInstanceCapability.Recording.json | 26 +- ...stanceContainerGroupProfile.Recording.json | 126 + ...nerInstanceContainerGroupProfile.Tests.ps1 | 28 + ...nceContainerGroupProfileRevision.Tests.ps1 | 21 + .../Get-AzContainerInstanceLog.Recording.json | 56 +- ...et-AzContainerInstanceUsage.Recording.json | 28 +- .../test/New-AzContainerGroup.Recording.json | 87 +- ...ntainerGroupConfidentialSku.Recording.json | 221 +- ...ntainerGroupRegularPriority.Recording.json | 87 +- ...erGroupReuseFromStandbyPool.Recording.json | 129 + ...ntainerGroupReuseFromStandbyPool.Tests.ps1 | 33 + ...zContainerGroupSpotPriority.Recording.json | 87 +- ...stanceContainerGroupProfile.Recording.json | 154 + ...nerInstanceContainerGroupProfile.Tests.ps1 | 96 + ...ContainerInstanceNoDefaultObject.Tests.ps1 | 21 + .../Remove-AzContainerGroup.Recording.json | 92 +- ...ntainerGroupConfidentialSku.Recording.json | 92 +- ...ntainerGroupRegularPriority.Recording.json | 92 +- ...zContainerGroupSpotPriority.Recording.json | 92 +- ...stanceContainerGroupProfile.Recording.json | 383 +++ ...nerInstanceContainerGroupProfile.Tests.ps1 | 44 + .../Restart-AzContainerGroup.Recording.json | 78 +- ...ntainerGroupConfidentialSku.Recording.json | 78 +- ...ntainerGroupRegularPriority.Recording.json | 78 +- ...zContainerGroupSpotPriority.Recording.json | 78 +- .../Start-AzContainerGroup.Recording.json | 74 +- ...ntainerGroupConfidentialSku.Recording.json | 74 +- ...ntainerGroupRegularPriority.Recording.json | 74 +- ...zContainerGroupSpotPriority.Recording.json | 74 +- .../test/Stop-AzContainerGroup.Recording.json | 74 +- ...ntainerGroupRegularPriority.Recording.json | 74 +- ...ContainerGroupSpotContainer.Recording.json | 74 +- ...tainerGroupiConfidentialSku.Recording.json | 74 +- .../Update-AzContainerGroup.Recording.json | 72 +- ...ntainerGroupConfidentialSku.Recording.json | 72 +- ...ntainerGroupRegularPriority.Recording.json | 72 +- ...zContainerGroupSpotPriority.Recording.json | 72 +- ...nerInstanceContainerGroupProfile.Tests.ps1 | 33 + .../ContainerInstance.Autorest/test/env.json | 54 +- .../ContainerInstance.Autorest/test/utils.ps1 | 74 +- .../Az.ContainerInstance.psd1 | 20 +- .../ContainerInstance/ChangeLog.md | 5 + .../help/Add-AzContainerInstanceOutput.md | 24 +- .../help/Az.ContainerInstance.md | 21 + .../help/Get-AzContainerGroup.md | 30 +- .../Get-AzContainerInstanceCachedImage.md | 25 +- .../help/Get-AzContainerInstanceCapability.md | 25 +- ...rGroupOutboundNetworkDependencyEndpoint.md | 24 +- ...zContainerInstanceContainerGroupProfile.md | 316 +++ ...erInstanceContainerGroupProfileRevision.md | 133 + .../help/Get-AzContainerInstanceLog.md | 22 +- .../help/Get-AzContainerInstanceUsage.md | 25 +- .../help/Invoke-AzContainerInstanceCommand.md | 17 +- .../help/New-AzContainerGroup.md | 120 +- ...ainerGroupImageRegistryCredentialObject.md | 19 +- .../help/New-AzContainerGroupPortObject.md | 19 +- .../help/New-AzContainerGroupVolumeObject.md | 23 +- ...zContainerInstanceContainerGroupProfile.md | 639 +++++ ...tainerInstanceEnvironmentVariableObject.md | 19 +- ...New-AzContainerInstanceHttpHeaderObject.md | 19 +- ...AzContainerInstanceInitDefinitionObject.md | 23 +- .../New-AzContainerInstanceNoDefaultObject.md | 637 +++++ .../help/New-AzContainerInstanceObject.md | 71 +- .../help/New-AzContainerInstancePortObject.md | 19 +- ...ew-AzContainerInstanceVolumeMountObject.md | 19 +- .../help/Remove-AzContainerGroup.md | 26 +- ...zContainerInstanceContainerGroupProfile.md | 205 ++ ...nerInstanceSubnetServiceAssociationLink.md | 24 +- .../help/Restart-AzContainerGroup.md | 24 +- .../help/Start-AzContainerGroup.md | 24 +- .../help/Stop-AzContainerGroup.md | 24 +- .../help/Update-AzContainerGroup.md | 26 +- ...zContainerInstanceContainerGroupProfile.md | 250 ++ .../BreakingChangeIssues.csv | 5 + 532 files changed, 34615 insertions(+), 6229 deletions(-) create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/UX/Microsoft.ContainerInstance/containerGroupProfiles-revisions.json create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/UX/Microsoft.ContainerInstance/containerGroupProfiles.json create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerInstanceNoDefaultObject.ps1 create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/examples/Get-AzContainerInstanceContainerGroupProfile.md create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/examples/Get-AzContainerInstanceContainerGroupProfileRevision.md create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/examples/New-AzContainerInstanceContainerGroupProfile.md create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/examples/New-AzContainerInstanceNoDefaultObject.md create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/examples/Remove-AzContainerInstanceContainerGroupProfile.md create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/examples/Update-AzContainerInstanceContainerGroupProfile.md create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/exports/Get-AzContainerInstanceContainerGroupProfile.ps1 create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/exports/Get-AzContainerInstanceContainerGroupProfileRevision.ps1 create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/exports/New-AzContainerInstanceContainerGroupProfile.ps1 create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/exports/New-AzContainerInstanceNoDefaultObject.ps1 create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/exports/Remove-AzContainerInstanceContainerGroupProfile.ps1 create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/exports/Update-AzContainerInstanceContainerGroupProfile.ps1 rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/AzureFileVolume.PowerShell.cs (85%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/AzureFileVolume.TypeConverter.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/AzureFileVolume.cs (98%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/AzureFileVolume.json.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/CachedImages.PowerShell.cs (89%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/CachedImages.TypeConverter.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/CachedImages.cs (96%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/CachedImages.json.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/CachedImagesListResult.PowerShell.cs (86%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/CachedImagesListResult.TypeConverter.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/CachedImagesListResult.cs (88%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/CachedImagesListResult.json.cs (94%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/Capabilities.PowerShell.cs (81%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/Capabilities.TypeConverter.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/Capabilities.cs (87%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/Capabilities.json.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/CapabilitiesAutoGenerated.PowerShell.cs (88%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/CapabilitiesAutoGenerated.TypeConverter.cs (98%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/CapabilitiesAutoGenerated.cs (93%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/CapabilitiesAutoGenerated.json.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/CapabilitiesListResult.PowerShell.cs (86%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/CapabilitiesListResult.TypeConverter.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/CapabilitiesListResult.cs (88%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/CapabilitiesListResult.json.cs (94%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/CloudError.PowerShell.cs (81%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/CloudError.TypeConverter.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/CloudError.cs (83%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/CloudError.json.cs (96%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/CloudErrorBody.PowerShell.cs (83%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/CloudErrorBody.TypeConverter.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/CloudErrorBody.cs (93%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/CloudErrorBody.json.cs (95%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ConfidentialComputeProperties.PowerShell.cs (91%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ConfidentialComputeProperties.TypeConverter.cs (98%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ConfidentialComputeProperties.cs (94%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ConfidentialComputeProperties.json.cs (97%) create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ConfigMap.PowerShell.cs create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ConfigMap.TypeConverter.cs create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ConfigMap.cs create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ConfigMap.json.cs create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ConfigMapKeyValuePairs.PowerShell.cs create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ConfigMapKeyValuePairs.TypeConverter.cs create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ConfigMapKeyValuePairs.cs create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ConfigMapKeyValuePairs.dictionary.cs create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ConfigMapKeyValuePairs.json.cs rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/Container.PowerShell.cs (61%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/Container.TypeConverter.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/Container.cs (67%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/Container.json.cs (96%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerAttachResponse.PowerShell.cs (89%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerAttachResponse.TypeConverter.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerAttachResponse.cs (96%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerAttachResponse.json.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerExec.PowerShell.cs (91%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerExec.TypeConverter.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerExec.cs (95%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerExec.json.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerExecRequest.PowerShell.cs (85%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerExecRequest.TypeConverter.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerExecRequest.cs (85%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerExecRequest.json.cs (96%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerExecRequestTerminalSize.PowerShell.cs (89%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerExecRequestTerminalSize.TypeConverter.cs (98%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerExecRequestTerminalSize.cs (95%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerExecRequestTerminalSize.json.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerExecResponse.PowerShell.cs (89%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerExecResponse.TypeConverter.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerExecResponse.cs (96%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerExecResponse.json.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerGroup.PowerShell.cs (62%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerGroup.TypeConverter.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerGroup.cs (67%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerGroup.json.cs (95%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerGroupDiagnostics.PowerShell.cs (83%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerGroupDiagnostics.TypeConverter.cs (98%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerGroupDiagnostics.cs (83%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerGroupDiagnostics.json.cs (96%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerGroupIdentity.PowerShell.cs (85%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerGroupIdentity.TypeConverter.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerGroupIdentity.cs (92%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerGroupIdentity.json.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerGroupIdentityUserAssignedIdentities.PowerShell.cs (93%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerGroupIdentityUserAssignedIdentities.TypeConverter.cs (98%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerGroupIdentityUserAssignedIdentities.cs (87%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerGroupIdentityUserAssignedIdentities.dictionary.cs (82%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerGroupIdentityUserAssignedIdentities.json.cs (94%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerGroupListResult.PowerShell.cs (86%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerGroupListResult.TypeConverter.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerGroupListResult.cs (88%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerGroupListResult.json.cs (95%) create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfile.PowerShell.cs create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfile.TypeConverter.cs create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfile.cs create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfile.json.cs create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfileListResult.PowerShell.cs create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfileListResult.TypeConverter.cs create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfileListResult.cs create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfileListResult.json.cs create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfilePatch.PowerShell.cs create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfilePatch.TypeConverter.cs create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfilePatch.cs create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfilePatch.json.cs create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfilePatchTags.PowerShell.cs create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfilePatchTags.TypeConverter.cs create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfilePatchTags.cs create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfilePatchTags.dictionary.cs create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfilePatchTags.json.cs create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfileProperties.PowerShell.cs create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfileProperties.TypeConverter.cs create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfileProperties.cs create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfileProperties.json.cs create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfilePropertiesAutoGenerated.PowerShell.cs create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfilePropertiesAutoGenerated.TypeConverter.cs create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfilePropertiesAutoGenerated.cs create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfilePropertiesAutoGenerated.json.cs create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfileReferenceDefinition.PowerShell.cs create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfileReferenceDefinition.TypeConverter.cs create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfileReferenceDefinition.cs create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfileReferenceDefinition.json.cs rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerGroupProperties.PowerShell.cs (62%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerGroupProperties.TypeConverter.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerGroupProperties.cs (70%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerGroupProperties.json.cs (95%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerGroupPropertiesAutoGenerated.PowerShell.cs (62%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerGroupPropertiesAutoGenerated.TypeConverter.cs (98%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerGroupPropertiesAutoGenerated.cs (69%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerGroupPropertiesAutoGenerated.json.cs (83%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerGroupPropertiesInstanceView.PowerShell.cs (86%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerGroupPropertiesInstanceView.TypeConverter.cs (98%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerGroupPropertiesInstanceView.cs (85%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerGroupPropertiesInstanceView.json.cs (95%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerGroupSubnetId.PowerShell.cs (88%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerGroupSubnetId.TypeConverter.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerGroupSubnetId.cs (95%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerGroupSubnetId.json.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerHttpGet.PowerShell.cs (84%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerHttpGet.TypeConverter.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerHttpGet.cs (92%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerHttpGet.json.cs (95%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerPort.PowerShell.cs (89%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerPort.TypeConverter.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerPort.cs (96%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerPort.json.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerProbe.PowerShell.cs (78%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerProbe.TypeConverter.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerProbe.cs (86%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerProbe.json.cs (96%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerProperties.PowerShell.cs (62%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerProperties.TypeConverter.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerProperties.cs (67%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerProperties.json.cs (86%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerPropertiesInstanceView.PowerShell.cs (79%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerPropertiesInstanceView.TypeConverter.cs (98%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerPropertiesInstanceView.cs (82%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerPropertiesInstanceView.json.cs (94%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerState.PowerShell.cs (85%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerState.TypeConverter.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerState.cs (94%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ContainerState.json.cs (98%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/DeploymentExtensionSpec.PowerShell.cs (82%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/DeploymentExtensionSpec.TypeConverter.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/DeploymentExtensionSpec.cs (86%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/DeploymentExtensionSpec.json.cs (96%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/DeploymentExtensionSpecProperties.PowerShell.cs (87%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/DeploymentExtensionSpecProperties.TypeConverter.cs (98%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/DeploymentExtensionSpecProperties.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/DeploymentExtensionSpecProperties.json.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/DnsConfiguration.PowerShell.cs (87%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/DnsConfiguration.TypeConverter.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/DnsConfiguration.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/DnsConfiguration.json.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/EncryptionProperties.PowerShell.cs (86%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/EncryptionProperties.TypeConverter.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/EncryptionProperties.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/EncryptionProperties.json.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/EnvironmentVariable.PowerShell.cs (87%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/EnvironmentVariable.TypeConverter.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/EnvironmentVariable.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/EnvironmentVariable.json.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/Event.PowerShell.cs (84%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/Event.TypeConverter.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/Event.cs (93%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/Event.json.cs (98%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/GitRepoVolume.PowerShell.cs (86%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/GitRepoVolume.TypeConverter.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/GitRepoVolume.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/GitRepoVolume.json.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/GpuResource.PowerShell.cs (89%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/GpuResource.TypeConverter.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/GpuResource.cs (96%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/GpuResource.json.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/HttpHeader.PowerShell.cs (88%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/HttpHeader.TypeConverter.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/HttpHeader.cs (96%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/HttpHeader.json.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/IPAddress.PowerShell.cs (82%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/IPAddress.TypeConverter.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/IPAddress.cs (96%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/IPAddress.json.cs (96%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ImageRegistryCredential.PowerShell.cs (85%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ImageRegistryCredential.TypeConverter.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ImageRegistryCredential.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ImageRegistryCredential.json.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/InitContainerDefinition.PowerShell.cs (57%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/InitContainerDefinition.TypeConverter.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/InitContainerDefinition.cs (60%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/InitContainerDefinition.json.cs (96%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/InitContainerPropertiesDefinition.PowerShell.cs (57%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/InitContainerPropertiesDefinition.TypeConverter.cs (98%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/InitContainerPropertiesDefinition.cs (60%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/InitContainerPropertiesDefinition.json.cs (89%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/InitContainerPropertiesDefinitionInstanceView.PowerShell.cs (80%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/InitContainerPropertiesDefinitionInstanceView.TypeConverter.cs (98%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/InitContainerPropertiesDefinitionInstanceView.cs (82%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/InitContainerPropertiesDefinitionInstanceView.json.cs (94%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/LogAnalytics.PowerShell.cs (84%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/LogAnalytics.TypeConverter.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/LogAnalytics.cs (92%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/LogAnalytics.json.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/LogAnalyticsMetadata.PowerShell.cs (93%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/LogAnalyticsMetadata.TypeConverter.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/LogAnalyticsMetadata.cs (90%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/LogAnalyticsMetadata.dictionary.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/LogAnalyticsMetadata.json.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/Logs.PowerShell.cs (90%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/Logs.TypeConverter.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/Logs.cs (95%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/Logs.json.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/Operation.PowerShell.cs (82%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/Operation.TypeConverter.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/Operation.cs (89%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/Operation.json.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/OperationDisplay.PowerShell.cs (86%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/OperationDisplay.TypeConverter.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/OperationDisplay.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/OperationDisplay.json.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/OperationListResult.PowerShell.cs (86%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/OperationListResult.TypeConverter.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/OperationListResult.cs (88%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/OperationListResult.json.cs (95%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/Port.PowerShell.cs (89%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/Port.TypeConverter.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/Port.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/Port.json.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/Resource.PowerShell.cs (82%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/Resource.TypeConverter.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/Resource.cs (91%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/Resource.json.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ResourceLimits.PowerShell.cs (84%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ResourceLimits.TypeConverter.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ResourceLimits.cs (88%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ResourceLimits.json.cs (96%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ResourceRequests.PowerShell.cs (83%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ResourceRequests.TypeConverter.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ResourceRequests.cs (88%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ResourceRequests.json.cs (96%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ResourceRequirements.PowerShell.cs (78%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ResourceRequirements.TypeConverter.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ResourceRequirements.cs (81%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ResourceRequirements.json.cs (95%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ResourceTags.PowerShell.cs (93%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ResourceTags.TypeConverter.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ResourceTags.cs (91%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ResourceTags.dictionary.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/ResourceTags.json.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/SecretVolume.PowerShell.cs (93%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/SecretVolume.TypeConverter.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/SecretVolume.cs (91%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/SecretVolume.dictionary.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/SecretVolume.json.cs (97%) create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/SecurityContextCapabilitiesDefinition.PowerShell.cs create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/SecurityContextCapabilitiesDefinition.TypeConverter.cs create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/SecurityContextCapabilitiesDefinition.cs create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/SecurityContextCapabilitiesDefinition.json.cs create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/SecurityContextDefinition.PowerShell.cs create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/SecurityContextDefinition.TypeConverter.cs create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/SecurityContextDefinition.cs create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/SecurityContextDefinition.json.cs create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/StandbyPoolProfileDefinition.PowerShell.cs create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/StandbyPoolProfileDefinition.TypeConverter.cs create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/StandbyPoolProfileDefinition.cs create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/StandbyPoolProfileDefinition.json.cs rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/Usage.PowerShell.cs (81%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/Usage.TypeConverter.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/Usage.cs (86%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/Usage.json.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/UsageListResult.PowerShell.cs (87%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/UsageListResult.TypeConverter.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/UsageListResult.cs (81%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/UsageListResult.json.cs (95%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/UsageName.PowerShell.cs (88%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/UsageName.TypeConverter.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/UsageName.cs (93%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/UsageName.json.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/UserAssignedIdentities.PowerShell.cs (89%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/UserAssignedIdentities.TypeConverter.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/UserAssignedIdentities.cs (94%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/UserAssignedIdentities.json.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/Volume.PowerShell.cs (76%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/Volume.TypeConverter.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/Volume.cs (82%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/Volume.json.cs (95%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/VolumeEmptyDir.PowerShell.cs (93%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/VolumeEmptyDir.TypeConverter.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/VolumeEmptyDir.cs (91%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/VolumeEmptyDir.dictionary.cs (98%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/VolumeEmptyDir.json.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/VolumeMount.PowerShell.cs (87%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/VolumeMount.TypeConverter.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/VolumeMount.cs (97%) rename src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/{Api20221001Preview => Api20240501Preview}/VolumeMount.json.cs (97%) create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerInstanceContainerGroupProfileRevision_List.cs create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerInstanceContainerGroupProfile_Get.cs create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerInstanceContainerGroupProfile_Get1.cs create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerInstanceContainerGroupProfile_GetViaIdentity.cs create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerInstanceContainerGroupProfile_GetViaIdentity1.cs create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerInstanceContainerGroupProfile_List.cs create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerInstanceContainerGroupProfile_List1.cs create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/NewAzContainerInstanceContainerGroupProfile_CreateExpanded.cs create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/RemoveAzContainerInstanceContainerGroupProfile_Delete.cs create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/RemoveAzContainerInstanceContainerGroupProfile_DeleteViaIdentity.cs create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/UpdateAzContainerInstanceContainerGroupProfile_Patch.cs create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/UpdateAzContainerInstanceContainerGroupProfile_PatchExpanded.cs create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/UpdateAzContainerInstanceContainerGroupProfile_PatchViaIdentity.cs create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/UpdateAzContainerInstanceContainerGroupProfile_PatchViaIdentityExpanded.cs create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/help/Get-AzContainerInstanceContainerGroupProfile.md create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/help/Get-AzContainerInstanceContainerGroupProfileRevision.md create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/help/New-AzContainerInstanceContainerGroupProfile.md create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/help/New-AzContainerInstanceNoDefaultObject.md create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/help/Remove-AzContainerInstanceContainerGroupProfile.md create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/help/Update-AzContainerInstanceContainerGroupProfile.md create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/test/Get-AzContainerInstanceContainerGroupProfile.Recording.json create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/test/Get-AzContainerInstanceContainerGroupProfile.Tests.ps1 create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/test/Get-AzContainerInstanceContainerGroupProfileRevision.Tests.ps1 create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/test/New-AzContainerGroupReuseFromStandbyPool.Recording.json create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/test/New-AzContainerGroupReuseFromStandbyPool.Tests.ps1 create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/test/New-AzContainerInstanceContainerGroupProfile.Recording.json create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/test/New-AzContainerInstanceContainerGroupProfile.Tests.ps1 create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/test/New-AzContainerInstanceNoDefaultObject.Tests.ps1 create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/test/Remove-AzContainerInstanceContainerGroupProfile.Recording.json create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/test/Remove-AzContainerInstanceContainerGroupProfile.Tests.ps1 create mode 100644 src/ContainerInstance/ContainerInstance.Autorest/test/Update-AzContainerInstanceContainerGroupProfile.Tests.ps1 create mode 100644 src/ContainerInstance/ContainerInstance/help/Get-AzContainerInstanceContainerGroupProfile.md create mode 100644 src/ContainerInstance/ContainerInstance/help/Get-AzContainerInstanceContainerGroupProfileRevision.md create mode 100644 src/ContainerInstance/ContainerInstance/help/New-AzContainerInstanceContainerGroupProfile.md create mode 100644 src/ContainerInstance/ContainerInstance/help/New-AzContainerInstanceNoDefaultObject.md create mode 100644 src/ContainerInstance/ContainerInstance/help/Remove-AzContainerInstanceContainerGroupProfile.md create mode 100644 src/ContainerInstance/ContainerInstance/help/Update-AzContainerInstanceContainerGroupProfile.md create mode 100644 tools/StaticAnalysis/Exceptions/Az.ContainerInstance/BreakingChangeIssues.csv diff --git a/src/ContainerInstance/ContainerInstance.Autorest/Az.ContainerInstance.format.ps1xml b/src/ContainerInstance/ContainerInstance.Autorest/Az.ContainerInstance.format.ps1xml index bfa8cc8c72cc..6e26000f2249 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/Az.ContainerInstance.format.ps1xml +++ b/src/ContainerInstance/ContainerInstance.Autorest/Az.ContainerInstance.format.ps1xml @@ -11,6 +11,9 @@ + + + @@ -20,6 +23,9 @@ + + + @@ -36,6 +42,9 @@ ContainerGroupName + + ContainerGroupProfileName + ContainerName @@ -45,6 +54,9 @@ ResourceGroupName + + RevisionNumber + SubnetName @@ -60,9 +72,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.GpuResource + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.GpuResource - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.GpuResource + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.GpuResource @@ -88,9 +100,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ResourceRequests + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ResourceRequests - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ResourceRequests + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ResourceRequests @@ -116,9 +128,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ResourceLimits + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ResourceLimits - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ResourceLimits + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ResourceLimits @@ -144,9 +156,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerHttpGet + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerHttpGet - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerHttpGet + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerHttpGet @@ -178,9 +190,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerProbe + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerProbe - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerProbe + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerProbe @@ -224,9 +236,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerProperties + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerProperties - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerProperties + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerProperties @@ -252,9 +264,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.EnvironmentVariable + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.EnvironmentVariable - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.EnvironmentVariable + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.EnvironmentVariable @@ -286,9 +298,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerPort + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerPort - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerPort + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerPort @@ -314,9 +326,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.Port + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Port - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.Port + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Port @@ -342,9 +354,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ImageRegistryCredential + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ImageRegistryCredential - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ImageRegistryCredential + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ImageRegistryCredential @@ -388,9 +400,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.InitContainerPropertiesDefinition + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.InitContainerPropertiesDefinition - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.InitContainerPropertiesDefinition + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.InitContainerPropertiesDefinition @@ -416,9 +428,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.InitContainerDefinition + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.InitContainerDefinition - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.InitContainerDefinition + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.InitContainerDefinition @@ -438,9 +450,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.AzureFileVolume + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.AzureFileVolume - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.AzureFileVolume + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.AzureFileVolume @@ -478,9 +490,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.GitRepoVolume + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.GitRepoVolume - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.GitRepoVolume + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.GitRepoVolume @@ -512,9 +524,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.Volume + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Volume - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.Volume + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Volume @@ -534,9 +546,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.CachedImages + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.CachedImages - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.CachedImages + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.CachedImages @@ -562,9 +574,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.CachedImagesListResult + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.CachedImagesListResult - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.CachedImagesListResult + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.CachedImagesListResult @@ -584,9 +596,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.Capabilities + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Capabilities - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.Capabilities + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Capabilities @@ -630,9 +642,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.CapabilitiesAutoGenerated + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.CapabilitiesAutoGenerated - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.CapabilitiesAutoGenerated + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.CapabilitiesAutoGenerated @@ -664,9 +676,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.CapabilitiesListResult + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.CapabilitiesListResult - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.CapabilitiesListResult + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.CapabilitiesListResult @@ -686,9 +698,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.CloudErrorBody + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.CloudErrorBody - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.CloudErrorBody + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.CloudErrorBody @@ -720,9 +732,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ConfidentialComputeProperties + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ConfidentialComputeProperties - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ConfidentialComputeProperties + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ConfidentialComputeProperties @@ -742,9 +754,31 @@ - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.Container + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ConfigMapKeyValuePairs + + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ConfigMapKeyValuePairs + + + + + + + + + + + + Item + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Container - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.Container + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Container @@ -764,9 +798,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerAttachResponse + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerAttachResponse - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerAttachResponse + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerAttachResponse @@ -792,9 +826,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerExec + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerExec - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerExec + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerExec @@ -814,9 +848,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerExecRequest + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerExecRequest - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerExecRequest + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerExecRequest @@ -836,9 +870,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerExecRequestTerminalSize + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerExecRequestTerminalSize - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerExecRequestTerminalSize + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerExecRequestTerminalSize @@ -864,9 +898,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerExecResponse + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerExecResponse - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerExecResponse + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerExecResponse @@ -892,9 +926,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroup + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroup - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroup + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroup @@ -949,6 +983,9 @@ + + + @@ -973,6 +1010,12 @@ + + + + + + @@ -982,6 +1025,12 @@ + + + + + + @@ -1043,6 +1092,9 @@ InstanceViewState + + IsCreatedFromStandbyPool + Location @@ -1067,6 +1119,12 @@ Priority + + ProfileId + + + ProfileRevision + ProvisioningState @@ -1076,6 +1134,12 @@ Sku + + StandbyPoolProfileFailContainerGroupCreateOnReuseFailure + + + StandbyPoolProfileId + Zone @@ -1088,9 +1152,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroupIdentity + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupIdentity - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroupIdentity + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupIdentity @@ -1116,9 +1180,185 @@ - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroupListResult + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupListResult + + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupListResult + + + + + + + + + + + + NextLink + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupProfile + + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupProfile + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ConfidentialComputePropertyCcePolicy + + + EncryptionPropertyIdentity + + + EncryptionPropertyKeyName + + + EncryptionPropertyKeyVersion + + + EncryptionPropertyVaultBaseUrl + + + IPAddressAutoGeneratedDomainNameLabelScope + + + IPAddressDnsNameLabel + + + IPAddressFqdn + + + IPAddressIP + + + IPAddressType + + + Location + + + LogAnalyticLogType + + + LogAnalyticWorkspaceId + + + LogAnalyticWorkspaceKey + + + LogAnalyticWorkspaceResourceId + + + Name + + + OSType + + + Priority + + + RestartPolicy + + + Revision + + + Sku + + + Zone + + + ResourceGroupName + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupProfileListResult - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroupListResult + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupProfileListResult @@ -1138,12 +1378,105 @@ - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroupPropertiesAutoGenerated + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupProfilePatchTags + + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupProfilePatchTags + + + + + + + + + + + + Item + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupProfilePropertiesAutoGenerated - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroupPropertiesAutoGenerated + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupProfilePropertiesAutoGenerated + + + + + + + + + + + + + + + + + + + + + OSType + + + Priority + + + RestartPolicy + + + Revision + + + Sku + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupProfileReferenceDefinition + + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupProfileReferenceDefinition + + + + + + + + + + + + Revision + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupPropertiesAutoGenerated + + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupPropertiesAutoGenerated + + + + + + @@ -1163,6 +1496,9 @@ + + IsCreatedFromStandbyPool + OSType @@ -1184,9 +1520,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroupPropertiesInstanceView + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupPropertiesInstanceView - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroupPropertiesInstanceView + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupPropertiesInstanceView @@ -1206,9 +1542,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroupSubnetId + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupSubnetId - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroupSubnetId + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupSubnetId @@ -1228,9 +1564,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerPropertiesInstanceView + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerPropertiesInstanceView - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerPropertiesInstanceView + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerPropertiesInstanceView @@ -1250,9 +1586,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerState + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerState - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerState + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerState @@ -1296,9 +1632,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.DeploymentExtensionSpec + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.DeploymentExtensionSpec - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.DeploymentExtensionSpec + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.DeploymentExtensionSpec @@ -1318,9 +1654,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.DeploymentExtensionSpecProperties + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.DeploymentExtensionSpecProperties - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.DeploymentExtensionSpecProperties + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.DeploymentExtensionSpecProperties @@ -1346,9 +1682,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.DnsConfiguration + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.DnsConfiguration - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.DnsConfiguration + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.DnsConfiguration @@ -1380,9 +1716,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.EncryptionProperties + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.EncryptionProperties - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.EncryptionProperties + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.EncryptionProperties @@ -1420,9 +1756,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.Event + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Event - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.Event + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Event @@ -1466,9 +1802,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.HttpHeader + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.HttpHeader - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.HttpHeader + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.HttpHeader @@ -1494,9 +1830,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.InitContainerPropertiesDefinitionInstanceView + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.InitContainerPropertiesDefinitionInstanceView - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.InitContainerPropertiesDefinitionInstanceView + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.InitContainerPropertiesDefinitionInstanceView @@ -1516,9 +1852,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IPAddress + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPAddress - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IPAddress + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPAddress @@ -1556,9 +1892,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.LogAnalytics + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.LogAnalytics - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.LogAnalytics + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.LogAnalytics @@ -1596,9 +1932,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.LogAnalyticsMetadata + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.LogAnalyticsMetadata - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.LogAnalyticsMetadata + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.LogAnalyticsMetadata @@ -1618,9 +1954,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.Logs + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Logs - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.Logs + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Logs @@ -1640,9 +1976,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.Operation + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Operation - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.Operation + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Operation @@ -1668,9 +2004,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.OperationDisplay + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.OperationDisplay - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.OperationDisplay + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.OperationDisplay @@ -1708,9 +2044,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.OperationListResult + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.OperationListResult - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.OperationListResult + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.OperationListResult @@ -1730,9 +2066,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.Resource + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Resource - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.Resource + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Resource @@ -1764,9 +2100,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ResourceTags + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ResourceTags - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ResourceTags + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ResourceTags @@ -1786,9 +2122,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.SecretVolume + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.SecretVolume - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.SecretVolume + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.SecretVolume @@ -1808,9 +2144,105 @@ - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.Usage + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.SecurityContextCapabilitiesDefinition + + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.SecurityContextCapabilitiesDefinition + + + + + + + + + + + + + + + Add + + + Drop + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.SecurityContextDefinition + + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.SecurityContextDefinition + + + + + + + + + + + + + + + + + + + + + + + + AllowPrivilegeEscalation + + + Privileged + + + RunAsGroup + + + RunAsUser + + + SeccompProfile + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.StandbyPoolProfileDefinition + + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.StandbyPoolProfileDefinition + + + + + + + + + + + + FailContainerGroupCreateOnReuseFailure + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Usage - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.Usage + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Usage @@ -1842,9 +2274,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.UsageName + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.UsageName - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.UsageName + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.UsageName @@ -1870,9 +2302,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.UserAssignedIdentities + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.UserAssignedIdentities - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.UserAssignedIdentities + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.UserAssignedIdentities @@ -1898,9 +2330,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.VolumeMount + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.VolumeMount - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.VolumeMount + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.VolumeMount diff --git a/src/ContainerInstance/ContainerInstance.Autorest/Az.ContainerInstance.psd1 b/src/ContainerInstance/ContainerInstance.Autorest/Az.ContainerInstance.psd1 index 99df6b957fb6..092527c574b7 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/Az.ContainerInstance.psd1 +++ b/src/ContainerInstance/ContainerInstance.Autorest/Az.ContainerInstance.psd1 @@ -11,7 +11,7 @@ DotNetFrameworkVersion = '4.7.2' RequiredAssemblies = './bin/Az.ContainerInstance.private.dll' FormatsToProcess = './Az.ContainerInstance.format.ps1xml' - FunctionsToExport = 'Add-AzContainerInstanceOutput', 'Get-AzContainerGroup', 'Get-AzContainerInstanceCachedImage', 'Get-AzContainerInstanceCapability', 'Get-AzContainerInstanceContainerGroupOutboundNetworkDependencyEndpoint', 'Get-AzContainerInstanceLog', 'Get-AzContainerInstanceUsage', 'Invoke-AzContainerInstanceCommand', 'New-AzContainerGroup', 'New-AzContainerGroupImageRegistryCredentialObject', 'New-AzContainerGroupPortObject', 'New-AzContainerGroupVolumeObject', 'New-AzContainerInstanceEnvironmentVariableObject', 'New-AzContainerInstanceHttpHeaderObject', 'New-AzContainerInstanceInitDefinitionObject', 'New-AzContainerInstanceObject', 'New-AzContainerInstancePortObject', 'New-AzContainerInstanceVolumeMountObject', 'Remove-AzContainerGroup', 'Remove-AzContainerInstanceSubnetServiceAssociationLink', 'Restart-AzContainerGroup', 'Start-AzContainerGroup', 'Stop-AzContainerGroup', 'Update-AzContainerGroup', '*' + FunctionsToExport = 'Add-AzContainerInstanceOutput', 'Get-AzContainerGroup', 'Get-AzContainerInstanceCachedImage', 'Get-AzContainerInstanceCapability', 'Get-AzContainerInstanceContainerGroupOutboundNetworkDependencyEndpoint', 'Get-AzContainerInstanceContainerGroupProfile', 'Get-AzContainerInstanceContainerGroupProfileRevision', 'Get-AzContainerInstanceLog', 'Get-AzContainerInstanceUsage', 'Invoke-AzContainerInstanceCommand', 'New-AzContainerGroup', 'New-AzContainerGroupImageRegistryCredentialObject', 'New-AzContainerGroupPortObject', 'New-AzContainerGroupVolumeObject', 'New-AzContainerInstanceContainerGroupProfile', 'New-AzContainerInstanceEnvironmentVariableObject', 'New-AzContainerInstanceHttpHeaderObject', 'New-AzContainerInstanceInitDefinitionObject', 'New-AzContainerInstanceNoDefaultObject', 'New-AzContainerInstanceObject', 'New-AzContainerInstancePortObject', 'New-AzContainerInstanceVolumeMountObject', 'Remove-AzContainerGroup', 'Remove-AzContainerInstanceContainerGroupProfile', 'Remove-AzContainerInstanceSubnetServiceAssociationLink', 'Restart-AzContainerGroup', 'Start-AzContainerGroup', 'Stop-AzContainerGroup', 'Update-AzContainerGroup', 'Update-AzContainerInstanceContainerGroupProfile', '*' AliasesToExport = 'Get-AzContainerGroupOutboundNetworkDependencyEndpoint', '*' PrivateData = @{ PSData = @{ diff --git a/src/ContainerInstance/ContainerInstance.Autorest/README.md b/src/ContainerInstance/ContainerInstance.Autorest/README.md index 663ae042effd..dc25ee8232c7 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/README.md +++ b/src/ContainerInstance/ContainerInstance.Autorest/README.md @@ -27,13 +27,13 @@ For information on how to develop for `Az.ContainerInstance`, see [how-to.md](ho > see https://aka.ms/autorest ``` yaml -commit: 81562c6c057a510ddde50ff40720d254bd5f6dbf +commit: 400510ae981419169f35012c3a217b268e779b2b require: # readme.azure.noprofile.md is the common configuration file - $(this-folder)/../../readme.azure.noprofile.md input-file: # You need to specify your swagger files here. - - $(repo)/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2022-10-01-preview/containerInstance.json + - $(repo)/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json # If the swagger has not been put in the repo, you may uncomment the following line and refer to it locally # - (this-folder)/relative-path-to-your-swagger @@ -95,13 +95,6 @@ directive: parameter-name: ImageRegistryCredentials set: parameter-name: ImageRegistryCredential - # Sets OSType equal Linux by default - - where: - parameter-name: OSType - set: - default: - description: Sets OSType equal Linux by default. - script: '"Linux"' # 1. Set IPAddressPort equals $Container.Port # 2. Set Location mandatory - where: diff --git a/src/ContainerInstance/ContainerInstance.Autorest/UX/Microsoft.ContainerInstance/containerGroupProfiles-revisions.json b/src/ContainerInstance/ContainerInstance.Autorest/UX/Microsoft.ContainerInstance/containerGroupProfiles-revisions.json new file mode 100644 index 000000000000..f94c48c894b8 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/UX/Microsoft.ContainerInstance/containerGroupProfiles-revisions.json @@ -0,0 +1,52 @@ +{ + "resourceType": "containerGroupProfiles/revisions", + "apiVersion": "2024-05-01-preview", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.containerinstance" + }, + "commands": [ + { + "name": "Get-AzContainerInstanceContainerGroupProfile", + "description": "Gets the properties of the specified container group profile in the specified subscription and resource group.\nThe operation returns the properties of container group profile including containers, image registry credentials, restart policy, IP address type, OS type, volumes, current revision number, etc.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}/revisions/{revisionNumber}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.containerinstance/get-azcontainerinstancecontainergroupprofile" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "-RevisionNumber ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Gets the properties of the specified revision of the container group profile in the given subscription and resource group. The operation returns the properties of container group profile including containers, image registry credentials, restart policy, IP address type, OS type, volumes, current revision number, etc.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.containerGroupProfileName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-RevisionNumber", + "value": "[Path.revisionNumber]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/ContainerInstance/ContainerInstance.Autorest/UX/Microsoft.ContainerInstance/containerGroupProfiles.json b/src/ContainerInstance/ContainerInstance.Autorest/UX/Microsoft.ContainerInstance/containerGroupProfiles.json new file mode 100644 index 000000000000..b238f8bc3db9 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/UX/Microsoft.ContainerInstance/containerGroupProfiles.json @@ -0,0 +1,85 @@ +{ + "resourceType": "containerGroupProfiles", + "apiVersion": "2024-05-01-preview", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.containerinstance" + }, + "commands": [ + { + "name": "Get-AzContainerInstanceContainerGroupProfile", + "description": "Gets the properties of the specified container group profile in the specified subscription and resource group.\nThe operation returns the properties of container group profile including containers, image registry credentials, restart policy, IP address type, OS type, volumes, current revision number, etc.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.containerinstance/get-azcontainerinstancecontainergroupprofile" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Gets the properties of the specified container group profile in the specified subscription and resource group. The operation returns the properties of container group profile including containers, image registry credentials, restart policy, IP address type, OS type, volumes, current revision number, etc.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.containerGroupProfileName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Remove-AzContainerInstanceContainerGroupProfile", + "description": "Delete the specified container group profile in the specified subscription and resource group.\nThe operation does not delete other resources provided by the user, such as volumes.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.containerinstance/remove-azcontainerinstancecontainergroupprofile" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Delete the specified container group profile in the specified subscription and resource group. The operation does not delete other resources provided by the user, such as volumes.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.containerGroupProfileName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/ContainerInstance/ContainerInstance.Autorest/UX/Microsoft.ContainerInstance/containerGroups-containers.json b/src/ContainerInstance/ContainerInstance.Autorest/UX/Microsoft.ContainerInstance/containerGroups-containers.json index a3d61cf00ba1..8a574e03514e 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/UX/Microsoft.ContainerInstance/containerGroups-containers.json +++ b/src/ContainerInstance/ContainerInstance.Autorest/UX/Microsoft.ContainerInstance/containerGroups-containers.json @@ -1,6 +1,6 @@ { "resourceType": "containerGroups/containers", - "apiVersion": "2022-10-01-preview", + "apiVersion": "2024-05-01-preview", "learnMore": { "url": "https://learn.microsoft.com/powershell/module/az.containerinstance" }, diff --git a/src/ContainerInstance/ContainerInstance.Autorest/UX/Microsoft.ContainerInstance/containerGroups.json b/src/ContainerInstance/ContainerInstance.Autorest/UX/Microsoft.ContainerInstance/containerGroups.json index dabdf19effab..bb18e66c6cfe 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/UX/Microsoft.ContainerInstance/containerGroups.json +++ b/src/ContainerInstance/ContainerInstance.Autorest/UX/Microsoft.ContainerInstance/containerGroups.json @@ -1,6 +1,6 @@ { "resourceType": "containerGroups", - "apiVersion": "2022-10-01-preview", + "apiVersion": "2024-05-01-preview", "learnMore": { "url": "https://learn.microsoft.com/powershell/module/az.containerinstance" }, diff --git a/src/ContainerInstance/ContainerInstance.Autorest/UX/Microsoft.Network/virtualNetworks-subnets.json b/src/ContainerInstance/ContainerInstance.Autorest/UX/Microsoft.Network/virtualNetworks-subnets.json index 5ecd24e49c02..151b71c974e9 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/UX/Microsoft.Network/virtualNetworks-subnets.json +++ b/src/ContainerInstance/ContainerInstance.Autorest/UX/Microsoft.Network/virtualNetworks-subnets.json @@ -1,6 +1,6 @@ { "resourceType": "virtualNetworks/subnets", - "apiVersion": "2022-10-01-preview", + "apiVersion": "2024-05-01-preview", "learnMore": { "url": "https://learn.microsoft.com/powershell/module/az.containerinstance" }, diff --git a/src/ContainerInstance/ContainerInstance.Autorest/build-module.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/build-module.ps1 index 3034b7c666b2..1129ff38c418 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/build-module.ps1 +++ b/src/ContainerInstance/ContainerInstance.Autorest/build-module.ps1 @@ -12,7 +12,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code # is regenerated. # ---------------------------------------------------------------------------------- -param([switch]$Isolated, [switch]$Run, [switch]$Test, [switch]$Docs, [switch]$Pack, [switch]$Code, [switch]$Release, [switch]$Debugger, [switch]$NoDocs) +param([switch]$Isolated, [switch]$Run, [switch]$Test, [switch]$Docs, [switch]$Pack, [switch]$Code, [switch]$Release, [switch]$Debugger, [switch]$NoDocs, [Switch]$DisableAfterBuildTasks) $ErrorActionPreference = 'Stop' if($PSEdition -ne 'Core') { @@ -67,6 +67,8 @@ if(-not $Isolated -and -not $Debugger) { $binFolder = Join-Path $PSScriptRoot 'bin' $objFolder = Join-Path $PSScriptRoot 'obj' +$isAzure = [System.Convert]::ToBoolean('true') + if(-not $Debugger) { Write-Host -ForegroundColor Green 'Cleaning build folders...' $null = Remove-Item -Recurse -ErrorAction SilentlyContinue -Path $binFolder, $objFolder @@ -143,7 +145,7 @@ if($NoDocs) { $null = Get-ChildItem -Path $docsFolder -Recurse -Exclude 'README.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue } $null = New-Item -ItemType Directory -Force -Path $docsFolder - $addComplexInterfaceInfo = ![System.Convert]::ToBoolean('true') + $addComplexInterfaceInfo = !$isAzure Export-ProxyCmdlet -ModuleName $moduleName -ModulePath $modulePaths -ExportsFolder $exportsFolder -InternalFolder $internalFolder -ModuleDescription $moduleDescription -DocsFolder $docsFolder -ExamplesFolder $examplesFolder -ModuleGuid $guid -AddComplexInterfaceInfo:$addComplexInterfaceInfo } @@ -169,4 +171,13 @@ if (Test-Path (Join-Path $PSScriptRoot 'generate-portal-ux.ps1')) . (Join-Path $PSScriptRoot 'generate-portal-ux.ps1') } -Write-Host -ForegroundColor Green '-------------Done-------------' +if (-not $DisableAfterBuildTasks){ + $afterBuildTasksPath = Join-Path $PSScriptRoot '' + $afterBuildTasksArgs = ConvertFrom-Json 'true' -AsHashtable + if(Test-Path -Path $afterBuildTasksPath -PathType leaf){ + Write-Host -ForegroundColor Green 'Running after build tasks...' + . $afterBuildTasksPath @afterBuildTasksArgs + } +} + +Write-Host -ForegroundColor Green '-------------Done-------------' \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/custom/InvokeAzContainerInstanceCommand_ExecuteExpanded.cs b/src/ContainerInstance/ContainerInstance.Autorest/custom/InvokeAzContainerInstanceCommand_ExecuteExpanded.cs index 4a2a6cbedc25..071931a4d0c8 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/custom/InvokeAzContainerInstanceCommand_ExecuteExpanded.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/custom/InvokeAzContainerInstanceCommand_ExecuteExpanded.cs @@ -28,11 +28,11 @@ public partial class InvokeAzContainerInstanceCommand_ExecuteExpanded : global:: /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow) + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow) { var containerExecResponse = response.ConfigureAwait(false).GetAwaiter().GetResult(); socket = new System.Net.WebSockets.ClientWebSocket(); diff --git a/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerGroup.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerGroup.ps1 index 920810d3ce00..8a88c89cbeb8 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerGroup.ps1 +++ b/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerGroup.ps1 @@ -23,7 +23,7 @@ Create or update container groups with specified configurations. https://learn.microsoft.com/powershell/module/az.containerinstance/new-azcontainergroup #> function New-AzContainerGroup { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -47,10 +47,10 @@ param( # The subscription ID forms part of the URI for every service call. ${SubscriptionId}, - [Parameter(Mandatory)] + [Parameter()] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainer[]] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainer[]] # The containers within the container group. # To construct, see NOTES section for CONTAINER properties and create a hash table. ${Container}, @@ -58,11 +58,22 @@ param( [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes])] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo(Description='Sets OSType equal Linux by default.', Script='"Linux"')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes] # The operating system type required by the containers in the container group. ${OSType}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.String] + # The container group profile reference id.This will be an ARM resource id in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}'. + ${ContainerGroupProfileId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.Int32] + # The container group profile reference revision. + ${ContainerGroupProfileRevision}, + [Parameter()] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] @@ -115,7 +126,7 @@ param( [Parameter()] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IPort[]] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPort[]] # The list of ports exposed on the container group. # To construct, see NOTES section for IPADDRESSPORT properties and create a hash table. ${IPAddressPort}, @@ -138,7 +149,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentityUserAssignedIdentities]))] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentityUserAssignedIdentities]))] [System.Collections.Hashtable] # The list of user identities associated with the container group. # The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. @@ -147,7 +158,7 @@ param( [Parameter()] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IImageRegistryCredential[]] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredential[]] # The image registry credentials by which the container group is created from. # To construct, see NOTES section for IMAGEREGISTRYCREDENTIAL properties and create a hash table. ${ImageRegistryCredential}, @@ -155,7 +166,7 @@ param( [Parameter()] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinition[]] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinition[]] # The init containers for a container group. # To construct, see NOTES section for INITCONTAINER properties and create a hash table. ${InitContainer}, @@ -175,7 +186,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsMetadata]))] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsMetadata]))] [System.Collections.Hashtable] # Metadata for log analytics. ${LogAnalyticMetadata}, @@ -213,17 +224,29 @@ param( # The SKU for a container group. ${Sku}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.Management.Automation.SwitchParameter] + # The flag to determine whether ACI should fail the create request if the container group can not be obtained from standby pool. + ${StandbyPoolProfileFailContainerGroupCreateOnReuseFailure}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.String] + # The standby pool profile reference id.This will be an ARM resource id in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyContainerGroupPools/{standbyPoolName}'. + ${StandbyPoolProfileId}, + [Parameter()] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupSubnetId[]] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupSubnetId[]] # The subnet resource IDs for a container group. # To construct, see NOTES section for SUBNETID properties and create a hash table. ${SubnetId}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceTags]))] [System.Collections.Hashtable] # The resource tags. ${Tag}, @@ -231,7 +254,7 @@ param( [Parameter()] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolume[]] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolume[]] # The list of volumes that can be mounted by containers in this container group. # To construct, see NOTES section for VOLUME properties and create a hash table. ${Volume}, diff --git a/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerGroupImageRegistryCredentialObject.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerGroupImageRegistryCredentialObject.ps1 index c844a700e3a1..d8ac8bf594a1 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerGroupImageRegistryCredentialObject.ps1 +++ b/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerGroupImageRegistryCredentialObject.ps1 @@ -22,7 +22,7 @@ Create a in-memory object for ImageRegistryCredential https://learn.microsoft.com/powershell/module/az.ContainerInstance/new-AzContainerGroupImageRegistryCredentialObject #> function New-AzContainerGroupImageRegistryCredentialObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ImageRegistryCredential')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ImageRegistryCredential')] [CmdletBinding(PositionalBinding=$false)] Param( @@ -41,7 +41,7 @@ function New-AzContainerGroupImageRegistryCredentialObject { ) process { - $Object = [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ImageRegistryCredential]::New() + $Object = [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ImageRegistryCredential]::New() if ($PSBoundParameters.ContainsKey('Password')) { $psTxt = . "$PSScriptRoot/../utils/Unprotect-SecureString.ps1" $PSBoundParameters['Password'] } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerGroupPortObject.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerGroupPortObject.ps1 index 99176f3cb2f9..392c8973474a 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerGroupPortObject.ps1 +++ b/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerGroupPortObject.ps1 @@ -22,7 +22,7 @@ Create a in-memory object for Port https://learn.microsoft.com/powershell/module/az.ContainerInstance/new-AzContainerGroupPortObject #> function New-AzContainerGroupPortObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.Port')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Port')] [CmdletBinding(PositionalBinding=$false)] Param( @@ -36,7 +36,7 @@ function New-AzContainerGroupPortObject { ) process { - $Object = [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.Port]::New() + $Object = [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Port]::New() $Object.Port1 = $Port $Object.Protocol = $Protocol diff --git a/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerGroupVolumeObject.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerGroupVolumeObject.ps1 index ac634b84bf23..9a3f23dff228 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerGroupVolumeObject.ps1 +++ b/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerGroupVolumeObject.ps1 @@ -21,12 +21,12 @@ Create an in-memory object for Volume. Create an in-memory object for Volume. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.Volume +Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Volume .Link https://learn.microsoft.com/powershell/module/az.ContainerInstance/new-AzContainerGroupVolumeObject #> function New-AzContainerGroupVolumeObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.Volume')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Volume')] [CmdletBinding(PositionalBinding=$false)] Param( @@ -43,7 +43,7 @@ function New-AzContainerGroupVolumeObject { [string] $AzureFileStorageAccountName, [Parameter(HelpMessage="The empty directory volume.")] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeEmptyDir] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeEmptyDir] $EmptyDir, [Parameter(HelpMessage="Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name.")] [string] @@ -58,12 +58,12 @@ function New-AzContainerGroupVolumeObject { [string] $Name, [Parameter(HelpMessage="The secret volume.")] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ISecretVolume] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecretVolume] $Secret ) process { - $Object = [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.Volume]::New() + $Object = [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Volume]::New() if ($PSBoundParameters.ContainsKey('AzureFileReadOnly')) { $Object.AzureFileReadOnly = $AzureFileReadOnly diff --git a/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerInstanceEnvironmentVariableObject.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerInstanceEnvironmentVariableObject.ps1 index 31c35702e1c8..85c9cacccc75 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerInstanceEnvironmentVariableObject.ps1 +++ b/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerInstanceEnvironmentVariableObject.ps1 @@ -22,7 +22,7 @@ Create a in-memory object for EnvironmentVariable https://learn.microsoft.com/powershell/module/az.ContainerInstance/new-AzContainerInstanceEnvironmentVariableObject #> function New-AzContainerInstanceEnvironmentVariableObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.EnvironmentVariable')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.EnvironmentVariable')] [CmdletBinding(PositionalBinding=$false)] Param( @@ -38,7 +38,7 @@ function New-AzContainerInstanceEnvironmentVariableObject { ) process { - $Object = [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.EnvironmentVariable]::New() + $Object = [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.EnvironmentVariable]::New() if ($PSBoundParameters.ContainsKey('SecureValue')) { $psTxt = . "$PSScriptRoot/../utils/Unprotect-SecureString.ps1" $PSBoundParameters['SecureValue'] } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerInstanceHttpHeaderObject.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerInstanceHttpHeaderObject.ps1 index f26153c95ff8..23571598db83 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerInstanceHttpHeaderObject.ps1 +++ b/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerInstanceHttpHeaderObject.ps1 @@ -22,7 +22,7 @@ Create a in-memory object for HttpHeader https://learn.microsoft.com/powershell/module/az.ContainerInstance/New-AzContainerInstanceHttpHeaderObject #> function New-AzContainerInstanceHttpHeaderObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.HttpHeader')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.HttpHeader')] [CmdletBinding(PositionalBinding=$false)] Param( @@ -35,7 +35,7 @@ function New-AzContainerInstanceHttpHeaderObject { ) process { - $Object = [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.HttpHeader]::New() + $Object = [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.HttpHeader]::New() $Object.Name = $Name $Object.Value = $Value diff --git a/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerInstanceInitDefinitionObject.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerInstanceInitDefinitionObject.ps1 index ef61e4855a8b..931c28de1704 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerInstanceInitDefinitionObject.ps1 +++ b/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerInstanceInitDefinitionObject.ps1 @@ -22,7 +22,7 @@ Create a in-memory object for InitContainerDefinition https://learn.microsoft.com/powershell/module/az.ContainerInstance/new-AzContainerInstanceInitDefinitionObject #> function New-AzContainerInstanceInitDefinitionObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.InitContainerDefinition')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.InitContainerDefinition')] [CmdletBinding(PositionalBinding=$false)] Param( @@ -30,7 +30,7 @@ function New-AzContainerInstanceInitDefinitionObject { [string[]] $Command, [Parameter(HelpMessage="The environment variables to set in the init container.")] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEnvironmentVariable[]] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariable[]] $EnvironmentVariable, [Parameter(HelpMessage="The image of the init container.")] [string] @@ -39,12 +39,12 @@ function New-AzContainerInstanceInitDefinitionObject { [string] $Name, [Parameter(HelpMessage="The volume mounts available to the init container.")] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeMount[]] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMount[]] $VolumeMount ) process { - $Object = [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.InitContainerDefinition]::New() + $Object = [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.InitContainerDefinition]::New() $Object.Command = $Command $Object.EnvironmentVariable = $EnvironmentVariable diff --git a/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerInstanceNoDefaultObject.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerInstanceNoDefaultObject.ps1 new file mode 100644 index 000000000000..2ff0d6ed017d --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerInstanceNoDefaultObject.ps1 @@ -0,0 +1,196 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the \"License\"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an \"AS IS\" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create a in-memory object for Container with no default values +.Description +Create a in-memory object for Container with no default values +.Link +https://learn.microsoft.com/powershell/module/az.ContainerInstance/New-AzContainerInstanceNoDefaultObject +#> +function New-AzContainerInstanceNoDefaultObject { + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Container')] + [CmdletBinding(PositionalBinding=$false)] + Param( + + [Parameter(HelpMessage="The commands to execute within the container instance in exec form.")] + [string[]] + $Command, + [Parameter(HelpMessage="The key value pairs dictionary in the config map to set in the container instance.")] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfigMapKeyValuePairs] + $ConfigMapKeyValuePair, + [Parameter(HelpMessage="The environment variables to set in the container instance.")] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariable[]] + $EnvironmentVariable, + [Parameter(HelpMessage="The name of the image used to create the container instance.")] + [string] + $Image, + [Parameter(HelpMessage="The CPU limit of this container instance.")] + [double] + $LimitCpu, + [Parameter(HelpMessage="The memory limit in GB of this container instance.")] + [double] + $LimitMemoryInGb, + [Parameter(HelpMessage="The count of the GPU resource.")] + [int] + $LimitsGpuCount, + [Parameter(HelpMessage="The SKU of the GPU resource.")] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku])] + [string] + $LimitsGpuSku, + [Parameter(HelpMessage="The commands to execute within the container.")] + [string[]] + $LivenessProbeExecCommand, + [Parameter(HelpMessage="The failure threshold.")] + [int] + $LivenessProbeFailureThreshold, + [Parameter(HelpMessage="The HTTP headers for liveness probe.")] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader[]] + $LivenessProbeHttpGetHttpHeader, + [Parameter(HelpMessage="The path to probe.")] + [string] + $LivenessProbeHttpGetPath, + [Parameter(HelpMessage="The port number to probe.")] + [int] + $LivenessProbeHttpGetPort, + [Parameter(HelpMessage="The scheme.")] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme])] + [string] + $LivenessProbeHttpGetScheme, + [Parameter(HelpMessage="The initial delay seconds.")] + [int] + $LivenessProbeInitialDelaySecond, + [Parameter(HelpMessage="The period seconds.")] + [int] + $LivenessProbePeriodSecond, + [Parameter(HelpMessage="The success threshold.")] + [int] + $LivenessProbeSuccessThreshold, + [Parameter(HelpMessage="The timeout seconds.")] + [int] + $LivenessProbeTimeoutSecond, + [Parameter(Mandatory, HelpMessage="The user-provided name of the container instance.")] + [string] + $Name, + [Parameter(HelpMessage="The exposed ports on the container instance.")] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPort[]] + $Port, + [Parameter(HelpMessage="The commands to execute within the container.")] + [string[]] + $ReadinessProbeExecCommand, + [Parameter(HelpMessage="The failure threshold.")] + [int] + $ReadinessProbeFailureThreshold, + [Parameter(HelpMessage="The HTTP headers for readiness probe.")] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader[]] + $ReadinessProbeHttpGetHttpHeader, + [Parameter(HelpMessage="The path to probe.")] + [string] + $ReadinessProbeHttpGetPath, + [Parameter(HelpMessage="The port number to probe.")] + [int] + $ReadinessProbeHttpGetPort, + [Parameter(HelpMessage="The scheme.")] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme])] + [string] + $ReadinessProbeHttpGetScheme, + [Parameter(HelpMessage="The initial delay seconds.")] + [int] + $ReadinessProbeInitialDelaySecond, + [Parameter(HelpMessage="The period seconds.")] + [int] + $ReadinessProbePeriodSecond, + [Parameter(HelpMessage="The success threshold.")] + [int] + $ReadinessProbeSuccessThreshold, + [Parameter(HelpMessage="The timeout seconds.")] + [int] + $ReadinessProbeTimeoutSecond, + [Parameter(HelpMessage="The CPU request of this container instance.")] + [double] + $RequestCpu, + [Parameter(HelpMessage="The memory request in GB of this container instance.")] + [double] + $RequestMemoryInGb, + [Parameter(HelpMessage="The count of the GPU resource.")] + [int] + $RequestsGpuCount, + [Parameter(HelpMessage="The SKU of the GPU resource.")] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku])] + [string] + $RequestsGpuSku, + [Parameter(HelpMessage="The volume mounts available to the container instance.")] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMount[]] + $VolumeMount + ) + + process { + $Object = [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Container]::New() + + $Object.Command = $Command + $Object.ConfigMapKeyValuePair = $ConfigMapKeyValuePair + $Object.EnvironmentVariable = $EnvironmentVariable + if($PSBoundParameters.ContainsKey("Image")) { + + $Object.Image = $Image + } + $Object.LimitCpu = $LimitCpu + $Object.LimitMemoryInGb = $LimitMemoryInGb + $Object.LimitsGpuCount = $LimitsGpuCount + $Object.LimitsGpuSku = $LimitsGpuSku + $Object.LivenessProbeExecCommand = $LivenessProbeExecCommand + $Object.LivenessProbeFailureThreshold = $LivenessProbeFailureThreshold + $Object.LivenessProbeHttpGetHttpHeader = $LivenessProbeHttpGetHttpHeader + $Object.LivenessProbeHttpGetPath = $LivenessProbeHttpGetPath + $Object.LivenessProbeHttpGetPort = $LivenessProbeHttpGetPort + $Object.LivenessProbeHttpGetScheme = $LivenessProbeHttpGetScheme + $Object.LivenessProbeInitialDelaySecond = $LivenessProbeInitialDelaySecond + $Object.LivenessProbePeriodSecond = $LivenessProbePeriodSecond + $Object.LivenessProbeSuccessThreshold = $LivenessProbeSuccessThreshold + $Object.LivenessProbeTimeoutSecond = $LivenessProbeTimeoutSecond + $Object.Name = $Name + $Object.Port = $Port + $Object.ReadinessProbeExecCommand = $ReadinessProbeExecCommand + $Object.ReadinessProbeFailureThreshold = $ReadinessProbeFailureThreshold + $Object.ReadinessProbeHttpGetHttpHeader = $ReadinessProbeHttpGetHttpHeader + $Object.ReadinessProbeHttpGetPath = $ReadinessProbeHttpGetPath + $Object.ReadinessProbeHttpGetPort = $ReadinessProbeHttpGetPort + $Object.ReadinessProbeHttpGetScheme = $ReadinessProbeHttpGetScheme + $Object.ReadinessProbeInitialDelaySecond = $ReadinessProbeInitialDelaySecond + $Object.ReadinessProbePeriodSecond = $ReadinessProbePeriodSecond + $Object.ReadinessProbeSuccessThreshold = $ReadinessProbeSuccessThreshold + $Object.ReadinessProbeTimeoutSecond = $ReadinessProbeTimeoutSecond + if($PSBoundParameters.ContainsKey("RequestCpu")) { + + $Object.RequestCpu = $RequestCpu + } + if($PSBoundParameters.ContainsKey("RequestMemoryInGb")) { + + $Object.RequestMemoryInGb = $RequestMemoryInGb + } + if($PSBoundParameters.ContainsKey("RequestsGpuCount")) { + + $Object.RequestsGpuCount = $RequestsGpuCount + } + if($PSBoundParameters.ContainsKey("RequestsGpuSku")) { + + $Object.RequestsGpuSku = $RequestsGpuSku + } + $Object.VolumeMount = $VolumeMount + return $Object + } +} + diff --git a/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerInstanceObject.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerInstanceObject.ps1 index e9317b98fa62..d94458cc6a2f 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerInstanceObject.ps1 +++ b/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerInstanceObject.ps1 @@ -22,15 +22,18 @@ Create a in-memory object for Container https://learn.microsoft.com/powershell/module/az.ContainerInstance/new-AzContainerInstanceObject #> function New-AzContainerInstanceObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.Container')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Container')] [CmdletBinding(PositionalBinding=$false)] Param( [Parameter(HelpMessage="The commands to execute within the container instance in exec form.")] [string[]] $Command, + [Parameter(HelpMessage="The key value pairs dictionary in the config map to set in the container instance.")] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfigMapKeyValuePairs] + $ConfigMapKeyValuePair, [Parameter(HelpMessage="The environment variables to set in the container instance.")] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEnvironmentVariable[]] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariable[]] $EnvironmentVariable, [Parameter(Mandatory, HelpMessage="The name of the image used to create the container instance.")] [string] @@ -55,7 +58,7 @@ function New-AzContainerInstanceObject { [int] $LivenessProbeFailureThreshold, [Parameter(HelpMessage="The HTTP headers for liveness probe.")] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IHttpHeader[]] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader[]] $LivenessProbeHttpGetHttpHeader, [Parameter(HelpMessage="The path to probe.")] [string] @@ -83,7 +86,7 @@ function New-AzContainerInstanceObject { [string] $Name, [Parameter(HelpMessage="The exposed ports on the container instance.")] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPort[]] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPort[]] $Port, [Parameter(HelpMessage="The commands to execute within the container.")] [string[]] @@ -92,7 +95,7 @@ function New-AzContainerInstanceObject { [int] $ReadinessProbeFailureThreshold, [Parameter(HelpMessage="The HTTP headers for readiness probe.")] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IHttpHeader[]] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader[]] $ReadinessProbeHttpGetHttpHeader, [Parameter(HelpMessage="The path to probe.")] [string] @@ -130,14 +133,15 @@ function New-AzContainerInstanceObject { [string] $RequestsGpuSku, [Parameter(HelpMessage="The volume mounts available to the container instance.")] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeMount[]] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMount[]] $VolumeMount ) process { - $Object = [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.Container]::New() + $Object = [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Container]::New() $Object.Command = $Command + $Object.ConfigMapKeyValuePair = $ConfigMapKeyValuePair $Object.EnvironmentVariable = $EnvironmentVariable $Object.Image = $Image $Object.LimitCpu = $LimitCpu @@ -185,5 +189,4 @@ function New-AzContainerInstanceObject { $Object.VolumeMount = $VolumeMount return $Object } -} - +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerInstancePortObject.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerInstancePortObject.ps1 index 6c1e6d2471cf..725d62a2433d 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerInstancePortObject.ps1 +++ b/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerInstancePortObject.ps1 @@ -22,7 +22,7 @@ Create a in-memory object for ContainerPort https://learn.microsoft.com/powershell/module/az.ContainerInstance/new-AzContainerInstancePortObject #> function New-AzContainerInstancePortObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerPort')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerPort')] [CmdletBinding(PositionalBinding=$false)] Param( @@ -36,7 +36,7 @@ function New-AzContainerInstancePortObject { ) process { - $Object = [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerPort]::New() + $Object = [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerPort]::New() $Object.Port = $Port $Object.Protocol = $Protocol diff --git a/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerInstanceVolumeMountObject.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerInstanceVolumeMountObject.ps1 index fa7e9542019a..3d7aaaf53358 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerInstanceVolumeMountObject.ps1 +++ b/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerInstanceVolumeMountObject.ps1 @@ -22,7 +22,7 @@ Create a in-memory object for VolumeMount https://learn.microsoft.com/powershell/module/az.ContainerInstance/new-AzContainerInstanceVolumeMountObject #> function New-AzContainerInstanceVolumeMountObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.VolumeMount')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.VolumeMount')] [CmdletBinding(PositionalBinding=$false)] Param( @@ -38,7 +38,7 @@ function New-AzContainerInstanceVolumeMountObject { ) process { - $Object = [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.VolumeMount]::New() + $Object = [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.VolumeMount]::New() $Object.MountPath = $MountPath $Object.Name = $Name diff --git a/src/ContainerInstance/ContainerInstance.Autorest/custom/SpecialHandlerToRemoveDefaultValue.cs b/src/ContainerInstance/ContainerInstance.Autorest/custom/SpecialHandlerToRemoveDefaultValue.cs index b23b0dae92cb..f2c5e35d18ea 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/custom/SpecialHandlerToRemoveDefaultValue.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/custom/SpecialHandlerToRemoveDefaultValue.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; /// The GPU resource. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/examples/Get-AzContainerInstanceContainerGroupProfile.md b/src/ContainerInstance/ContainerInstance.Autorest/examples/Get-AzContainerInstanceContainerGroupProfile.md new file mode 100644 index 000000000000..460239af70cc --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/examples/Get-AzContainerInstanceContainerGroupProfile.md @@ -0,0 +1,131 @@ +### Example 1: List all container group profiles in the current subscription +```powershell +Get-AzContainerInstanceContainerGroupProfile +``` + +```output +Location Name Zone ResourceGroupName +-------- ---- ---- ----------------- +eastus test-cgp1 test-rg +eastus test-cgp2 test-rg +``` + +This command gets all container group profiles in the current subscription. + +### Example 2: Get container group profiles in a resource group +```powershell +Get-AzContainerInstanceContainerGroupProfile -ResourceGroupName test-rg +``` + +```output +Location Name Zone ResourceGroupName +-------- ---- ---- ----------------- +eastus test-cgp1 test-rg +eastus test-cgp2 test-rg +``` + +The command gets the container group profiles in the resource group `test-rg`. + +### Example 3: Get a specific container group profile +```powershell +Get-AzContainerInstanceContainerGroupProfile -Name test-cgp1 -ResourceGroupName test-rg | Format-List +``` + +```output +ConfidentialComputeProperty : {} +ConfidentialComputePropertyCcePolicy : +Container : {test-container} +Diagnostic : {} +DiagnosticLogAnalytic : {} +EncryptionProperty : {} +EncryptionPropertyIdentity : +EncryptionPropertyKeyName : +EncryptionPropertyKeyVersion : +EncryptionPropertyVaultBaseUrl : +Extension : +IPAddress : { + "type": "Public" + } +IPAddressAutoGeneratedDomainNameLabelScope : +IPAddressDnsNameLabel : +IPAddressFqdn : +IPAddressIP : +IPAddressPort : +IPAddressType : Public +Id : /subscriptions/00000000-0000-0000-0000-000000000000 + 0/resourceGroups/test-rg/providers/Microsoft.Contai + nerInstance/containerGroupProfiles/test-cgp1 +ImageRegistryCredentials : +InitContainer : {} +Location : eastus +LogAnalyticLogType : +LogAnalyticMetadata : { + } +LogAnalyticWorkspaceId : +LogAnalyticWorkspaceKey : +LogAnalyticWorkspaceResourceId : +Name : test-cgp1 +NetworkProfileId : +OSType : Linux +ResourceGroupName : test-rg +RestartPolicy : Never +Revision : 1 +Sku : Standard +Tag : {} +Type : Microsoft.ContainerInstance/containerGroupProfiles +Volume : +``` + +The command gets the specified container group profile. + +### Example 4: Get a specific revision of a container group profile in a resource group +```powershell +Get-AzContainerInstanceContainerGroupProfile -Name test-cgp -ResourceGroupName test-rg -RevisionNumber 1 | Format-List +``` + +```output +ConfidentialComputeProperty : {} +ConfidentialComputePropertyCcePolicy : +Container : {test-container} +Diagnostic : {} +DiagnosticLogAnalytic : {} +EncryptionProperty : {} +EncryptionPropertyIdentity : +EncryptionPropertyKeyName : +EncryptionPropertyKeyVersion : +EncryptionPropertyVaultBaseUrl : +Extension : +IPAddress : { + "type": "Public" + } +IPAddressAutoGeneratedDomainNameLabelScope : +IPAddressDnsNameLabel : +IPAddressFqdn : +IPAddressIP : +IPAddressPort : +IPAddressType : Public +Id : /subscriptions/00000000-0000-0000-0000-000000000000 + 0/resourceGroups/test-rg/providers/Microsoft.Contai + nerInstance/containerGroupProfiles/test-cgp1 +ImageRegistryCredentials : +InitContainer : {} +Location : eastus +LogAnalyticLogType : +LogAnalyticMetadata : { + } +LogAnalyticWorkspaceId : +LogAnalyticWorkspaceKey : +LogAnalyticWorkspaceResourceId : +Name : test-cgp +NetworkProfileId : +OSType : Linux +ResourceGroupName : test-rg +RestartPolicy : Never +Revision : 1 +Sku : Standard +Tag : {} +Type : Microsoft.ContainerInstance/containerGroupProfiles +Volume : +``` + +The command gets the first revision of the container group profile `test-cgp` in the resource group `test-rg`. \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/examples/Get-AzContainerInstanceContainerGroupProfileRevision.md b/src/ContainerInstance/ContainerInstance.Autorest/examples/Get-AzContainerInstanceContainerGroupProfileRevision.md new file mode 100644 index 000000000000..ac7b84e358fb --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/examples/Get-AzContainerInstanceContainerGroupProfileRevision.md @@ -0,0 +1,13 @@ +### Example 1: List all revisions of a container group profile present in a resource group in the current subscription +```powershell +Get-AzContainerInstanceContainerGroupProfileRevision -ContainerGroupProfileName test-cgp -ResourceGroupName test-rg +``` + +```output +Location Name Zone ResourceGroupName Revision +-------- ---- ---- ----------------- -------- +eastus test-cgp test-rg 1 +eastus test-cgp test-rg 2 +``` + +This command gets all revisions of `test-cgp` container group profile present in `test-rg` in the current subscription. \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/examples/New-AzContainerGroup.md b/src/ContainerInstance/ContainerInstance.Autorest/examples/New-AzContainerGroup.md index 3e1740f392ed..c4cbd49ecf5a 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/examples/New-AzContainerGroup.md +++ b/src/ContainerInstance/ContainerInstance.Autorest/examples/New-AzContainerGroup.md @@ -16,8 +16,9 @@ This commands creates a container group with a container instance, whose image i ### Example 2: Create container group and runs a custom script inside the container. ```powershell +$pwd = ConvertTo-SecureString -String "****" -AsPlainText -Force $env1 = New-AzContainerInstanceEnvironmentVariableObject -Name "env1" -Value "value1" -$env2 = New-AzContainerInstanceEnvironmentVariableObject -Name "env2" -SecureValue (ConvertTo-SecureString -String "value2" -AsPlainText -Force) +$env2 = New-AzContainerInstanceEnvironmentVariableObject -Name "env2" -SecureValue $pwd $container = New-AzContainerInstanceObject -Name test-container -Image alpine -Command "/bin/sh -c myscript.sh" -EnvironmentVariable @($env1, $env2) $containerGroup = New-AzContainerGroup -ResourceGroupName test-rg -Name test-cg -Location eastus -Container $container -OsType Linux ``` @@ -46,8 +47,9 @@ This commands creates a container group which prints out 'hello' and stops. ### Example 4: Create a container group with a container instance using image nginx in Azure Container Registry ```powershell +$pwd = ConvertTo-SecureString -String "****" -AsPlainText -Force $container = New-AzContainerInstanceObject -Name test-container -Image myacr.azurecr.io/nginx:latest -$imageRegistryCredential = New-AzContainerGroupImageRegistryCredentialObject -Server "myacr.azurecr.io" -Username "username" -Password (ConvertTo-SecureString "PlainTextPassword" -AsPlainText -Force) +$imageRegistryCredential = New-AzContainerGroupImageRegistryCredentialObject -Server "myacr.azurecr.io" -Username "username" -Password $pwd $containerGroup = New-AzContainerGroup -ResourceGroupName test-rg -Name test-cg -Location eastus -Container $container -ImageRegistryCredential $imageRegistryCredential ``` @@ -61,8 +63,9 @@ This commands creates a container group with a container instance, whose image i ### Example 5: Create a container group with a container instance using image nginx in custom container image Registry ```powershell +$pwd = ConvertTo-SecureString -String "****" -AsPlainText -Force $container = New-AzContainerInstanceObject -Name test-container -Image myserver.com/nginx:latest -$imageRegistryCredential = New-AzContainerGroupImageRegistryCredentialObject -Server "myserver.com" -Username "username" -Password (ConvertTo-SecureString "PlainTextPassword" -AsPlainText -Force) +$imageRegistryCredential = New-AzContainerGroupImageRegistryCredentialObject -Server "myserver.com" -Username "username" -Password $pwd $containerGroup = New-AzContainerGroup -ResourceGroupName test-rg -Name test-cg -Location eastus -Container $container -ImageRegistryCredential $imageRegistryCredential ``` @@ -76,7 +79,8 @@ This commands creates a container group with a container instance, whose image i ### Example 6: Create a container group that mounts Azure File volume ```powershell -$volume = New-AzContainerGroupVolumeObject -Name "myvolume" -AzureFileShareName "myshare" -AzureFileStorageAccountName "username" -AzureFileStorageAccountKey (ConvertTo-SecureString "PlainTextPassword" -AsPlainText -Force) +$pwd = ConvertTo-SecureString -String "****" -AsPlainText -Force +$volume = New-AzContainerGroupVolumeObject -Name "myvolume" -AzureFileShareName "myshare" -AzureFileStorageAccountName "username" -AzureFileStorageAccountKey $pwd $mount = New-AzContainerInstanceVolumeMountObject -MountPath "/aci/logs" -Name "myvolume" $container = New-AzContainerInstanceObject -Name test-container -Image alpine -VolumeMount $mount $containerGroup = New-AzContainerGroup -ResourceGroupName test-rg -Name test-cg -Location eastus -Container $container -Volume $volume diff --git a/src/ContainerInstance/ContainerInstance.Autorest/examples/New-AzContainerGroupImageRegistryCredentialObject.md b/src/ContainerInstance/ContainerInstance.Autorest/examples/New-AzContainerGroupImageRegistryCredentialObject.md index 6c0112f36f54..560867ded8d5 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/examples/New-AzContainerGroupImageRegistryCredentialObject.md +++ b/src/ContainerInstance/ContainerInstance.Autorest/examples/New-AzContainerGroupImageRegistryCredentialObject.md @@ -1,6 +1,7 @@ ### Example 1: Set up an image registry credential to create a container group ```powershell -New-AzContainerGroupImageRegistryCredentialObject -Server "myserver.com" -Username "username" -Password (ConvertTo-SecureString "******" -AsPlainText -Force) +$pwd = ConvertTo-SecureString -String "****" -AsPlainText -Force +New-AzContainerGroupImageRegistryCredentialObject -Server "myserver.com" -Username "username" -Password $pwd ``` ```output diff --git a/src/ContainerInstance/ContainerInstance.Autorest/examples/New-AzContainerGroupVolumeObject.md b/src/ContainerInstance/ContainerInstance.Autorest/examples/New-AzContainerGroupVolumeObject.md index 942f8ed6b97e..3a4fef561140 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/examples/New-AzContainerGroupVolumeObject.md +++ b/src/ContainerInstance/ContainerInstance.Autorest/examples/New-AzContainerGroupVolumeObject.md @@ -1,6 +1,7 @@ ### Example 1: Create a Azure File volume ```powershell -New-AzContainerGroupVolumeObject -Name "myvolume" -AzureFileShareName "myshare" -AzureFileStorageAccountName "username" -AzureFileStorageAccountKey (ConvertTo-SecureString "******" -AsPlainText -Force) +$pwd = ConvertTo-SecureString -String "****" -AsPlainText -Force +New-AzContainerGroupVolumeObject -Name "myvolume" -AzureFileShareName "myshare" -AzureFileStorageAccountName "username" -AzureFileStorageAccountKey $pwd ``` ```output diff --git a/src/ContainerInstance/ContainerInstance.Autorest/examples/New-AzContainerInstanceContainerGroupProfile.md b/src/ContainerInstance/ContainerInstance.Autorest/examples/New-AzContainerInstanceContainerGroupProfile.md new file mode 100644 index 000000000000..33f6d5e8c09e --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/examples/New-AzContainerInstanceContainerGroupProfile.md @@ -0,0 +1,62 @@ +### Example 1: Create a container group profile with a container instance and request a public IP address with opening ports +```powershell +$port1 = New-AzContainerInstancePortObject -Port 8000 -Protocol TCP +$port2 = New-AzContainerInstancePortObject -Port 8001 -Protocol TCP +$container = New-AzContainerInstanceObject -Name test-container -Image nginx -RequestCpu 1 -RequestMemoryInGb 1.5 -Port @($port1, $port2) +$containerGroupProfile = New-AzContainerInstanceContainerGroupProfile -ResourceGroupName test-rg -Name test-cgp -Location eastus -Container $container -OsType Linux -RestartPolicy "Never" -IpAddressType Public +``` + +```output +Location Name Zone ResourceGroupName +-------- ---- ---- ----------------- +eastus test-cgp test-rg +``` + +This commands creates a container group profile with a container instance, whose image is latest nginx, and requests a public IP address with opening port 8000 and 8001. + +### Example 2: Create container group profile and runs a custom script inside the container. +```powershell +$pwd = ConvertTo-SecureString -String "****" -AsPlainText -Force +$env1 = New-AzContainerInstanceEnvironmentVariableObject -Name "env1" -Value "value1" +$env2 = New-AzContainerInstanceEnvironmentVariableObject -Name "env2" -SecureValue $pwd +$container = New-AzContainerInstanceObject -Name test-container -Image alpine -Command "/bin/sh -c myscript.sh" -EnvironmentVariable @($env1, $env2) -RequestCpu 1 -RequestMemoryInGb 1.5 +$containerGroupProfile = New-AzContainerInstanceContainerGroupProfile -ResourceGroupName test-rg -Name test-cgp -Location eastus -Container $container -OsType Linux +``` + +```output +Location Name Zone ResourceGroupName +-------- ---- ---- ----------------- +eastus test-cgp test-rg +``` + +This commands creates a container group profile and runs a custom script inside the container. + +### Example 3: Create a container group profile with a container instance using image nginx in Azure Container Registry +```powershell +$pwd = ConvertTo-SecureString -String "****" -AsPlainText -Force +$container = New-AzContainerInstanceObject -Name test-container -Image myacr.azurecr.io/nginx:latest -RequestCpu 1 -RequestMemoryInGb 1.5 +$imageRegistryCredential = New-AzContainerGroupImageRegistryCredentialObject -Server "myacr.azurecr.io" -Username "username" -Password $pwd +$containerGroupProfile = New-AzContainerInstanceContainerGroupProfile -ResourceGroupName test-rg -Name test-cgp -Location eastus -Container $container -ImageRegistryCredential $imageRegistryCredential -OsType Linux +``` + +```output +Location Name Zone ResourceGroupName +-------- ---- ---- ----------------- +eastus test-cgp test-rg +``` + +This commands creates a container group profile with a container instance, whose image is nginx in Azure Container Registry. + +### Example 4: Create a container group profile with Spot priority and a container instance using nginx image +```powershell +$container = New-AzContainerInstanceObject -Name test-container -Image nginx -RequestCpu 1 -RequestMemoryInGb 1.5 +$containerGroupProfile = New-AzContainerInstanceContainerGroupProfile -ResourceGroupName test-rg -Name test-cgp -Location eastus -Container $container -OsType Linux -RestartPolicy Never -Priority Spot +``` + +```output +Location Name Zone ResourceGroupName +-------- ---- ---- ----------------- +eastus test-cgp test-rg +``` + +This commands creates a container group profile with spot priority and a container instance, whose image is nginx. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/examples/New-AzContainerInstanceEnvironmentVariableObject.md b/src/ContainerInstance/ContainerInstance.Autorest/examples/New-AzContainerInstanceEnvironmentVariableObject.md index 484ee282ae5f..57d29bed16cb 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/examples/New-AzContainerInstanceEnvironmentVariableObject.md +++ b/src/ContainerInstance/ContainerInstance.Autorest/examples/New-AzContainerInstanceEnvironmentVariableObject.md @@ -13,7 +13,8 @@ This command creates an environment variable within a container instance. ### Example 2: Create a secure environment variable within a container instance ```powershell -New-AzContainerInstanceEnvironmentVariableObject -Name "env2" -SecureValue (ConvertTo-SecureString -String "******" -AsPlainText -Force) +$pwd = ConvertTo-SecureString -String "****" -AsPlainText -Force +New-AzContainerInstanceEnvironmentVariableObject -Name "env2" -SecureValue $pwd ``` ```output diff --git a/src/ContainerInstance/ContainerInstance.Autorest/examples/New-AzContainerInstanceNoDefaultObject.md b/src/ContainerInstance/ContainerInstance.Autorest/examples/New-AzContainerInstanceNoDefaultObject.md new file mode 100644 index 000000000000..aa65f7ef5503 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/examples/New-AzContainerInstanceNoDefaultObject.md @@ -0,0 +1,41 @@ +## EXAMPLES + +### Example 1: Create a container instance using image alphine with request cpu 1.0 and request memory 1.5Gb +```powershell +New-AzContainerInstanceNoDefaultObject -Name "test-container" -Image alpine -RequestCpu 1 -RequestMemoryInGb 1.5 +``` + +```output +Name +---- +test-container +``` + +Create a container instance using image alphine with request cpu 1.0 and request memory 1.5Gb + +### Example 2: Create a container instance using image alphine with limit cpu 2.0 and limit memory 2.5Gb +```powershell +New-AzContainerInstanceNoDefaultObject -Image alpine -Name "test-container" -LimitCpu 2 -LimitMemoryInGb 2.5 +``` + +```output +Name +---- +test-container +``` + +Create a container instance using image alphine with limit cpu 2.0 and limit memory 2.5Gb + +### Example 3: Create a container group with a container instance +```powershell +$container = New-AzContainerInstanceNoDefaultObject -Name test-container -Image alpine +New-AzContainerGroup -ResourceGroupName testrg-rg -Name test-cg -Location eastus -Container $container +``` + +```output +Location Name Zone ResourceGroupName +-------- ---- ---- ----------------- +eastus test-cg test-rg +``` + +Create a container group with a container instance \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/examples/Remove-AzContainerInstanceContainerGroupProfile.md b/src/ContainerInstance/ContainerInstance.Autorest/examples/Remove-AzContainerInstanceContainerGroupProfile.md new file mode 100644 index 000000000000..a21ad9da26b4 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/examples/Remove-AzContainerInstanceContainerGroupProfile.md @@ -0,0 +1,19 @@ +### Example 1: Remove a container group profile +```powershell +Remove-AzContainerInstanceContainerGroupProfile -Name test-cgp -ResourceGroupName test-rg +``` + +```output +``` + +This command removes the specified container group profile. + +### Example 2: Removes a container group profile by piping +```powershell +Get-AzContainerInstanceContainerGroupProfile -Name test-cgp -ResourceGroupName test-rg | Remove-AzContainerInstanceContainerGroupProfile +``` + +```output +``` + +This command removes a container group profile by piping. \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/examples/Update-AzContainerInstanceContainerGroupProfile.md b/src/ContainerInstance/ContainerInstance.Autorest/examples/Update-AzContainerInstanceContainerGroupProfile.md new file mode 100644 index 000000000000..71f85a24f602 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/examples/Update-AzContainerInstanceContainerGroupProfile.md @@ -0,0 +1,29 @@ +### Example 1: Update a container group profile +```powershell +$container = Update-AzContainerInstanceContainerGroupProfile -Name test-cgp -ResourceGroupName test-rg -Tag @{"k"="v"} +$container.Tag | Format-List +``` + +```output +Keys : {k} +Values : {v} +AdditionalProperties : {[k, v]} +Count : 1 +``` + +This command updates a container group profile. + +### Example 2: Update a container group profile using piping +```powershell +$container = Get-AzContainerInstanceContainerGroupProfile -Name test-cgp -ResourceGroupName test-rg | Update-AzContainerInstanceContainerGroupProfile -Tag @{"k"="v"} +$container.Tag | Format-List +``` + +```output +Keys : {k} +Values : {v} +AdditionalProperties : {[k, v]} +Count : 1 +``` + +This command updates a container group profile using pipeing. \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/exports/Add-AzContainerInstanceOutput.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/exports/Add-AzContainerInstanceOutput.ps1 index ac3c8fa2e5fa..6ae7b4099ced 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/exports/Add-AzContainerInstanceOutput.ps1 +++ b/src/ContainerInstance/ContainerInstance.Autorest/exports/Add-AzContainerInstanceOutput.ps1 @@ -24,12 +24,12 @@ $response = Add-AzContainerInstanceOutput -GroupName test-cg -Name test-containe $response .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerAttachResponse +Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerAttachResponse .Link https://learn.microsoft.com/powershell/module/az.containerinstance/add-azcontainerinstanceoutput #> function Add-AzContainerInstanceOutput { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerAttachResponse])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerAttachResponse])] [CmdletBinding(DefaultParameterSetName='Attach', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -50,14 +50,15 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # Subscription credentials which uniquely identify Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter()] diff --git a/src/ContainerInstance/ContainerInstance.Autorest/exports/Get-AzContainerGroup.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/exports/Get-AzContainerGroup.ps1 index cf72576c845e..d8f02e70560f 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/exports/Get-AzContainerGroup.ps1 +++ b/src/ContainerInstance/ContainerInstance.Autorest/exports/Get-AzContainerGroup.ps1 @@ -33,7 +33,7 @@ Update-AzContainerGroup -Name test-cg1 -ResourceGroupName test-rg -Tag @{"test"= .Inputs Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup +Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup .Notes COMPLEX PARAMETER PROPERTIES @@ -41,18 +41,20 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ContainerGroupName ]: The name of the container group. + [ContainerGroupProfileName ]: The name of the container group profile. [ContainerName ]: The name of the container instance. [Id ]: Resource identity path - [Location ]: The identifier for the physical azure location. - [ResourceGroupName ]: The name of the resource group. + [Location ]: The name of the Azure region. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [RevisionNumber ]: The revision number of the container group profile. [SubnetName ]: The name of the subnet. - [SubscriptionId ]: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkName ]: The name of the virtual network. .Link https://learn.microsoft.com/powershell/module/az.containerinstance/get-azcontainergroup #> function Get-AzContainerGroup { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -67,6 +69,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Get')] @@ -75,8 +78,8 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] - # Subscription credentials which uniquely identify Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/ContainerInstance/ContainerInstance.Autorest/exports/Get-AzContainerInstanceCachedImage.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/exports/Get-AzContainerInstanceCachedImage.ps1 index 0b04f8f898ca..dc8e7a21c424 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/exports/Get-AzContainerInstanceCachedImage.ps1 +++ b/src/ContainerInstance/ContainerInstance.Autorest/exports/Get-AzContainerInstanceCachedImage.ps1 @@ -23,26 +23,26 @@ Get the list of cached images on specific OS type for a subscription in a region Get-AzContainerInstanceCachedImage -Location eastus .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICachedImages +Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICachedImages .Link https://learn.microsoft.com/powershell/module/az.containerinstance/get-azcontainerinstancecachedimage #> function Get-AzContainerInstanceCachedImage { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICachedImages])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICachedImages])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [System.String] - # The identifier for the physical azure location. + # The name of the Azure region. ${Location}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] - # Subscription credentials which uniquely identify Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter()] diff --git a/src/ContainerInstance/ContainerInstance.Autorest/exports/Get-AzContainerInstanceCapability.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/exports/Get-AzContainerInstanceCapability.ps1 index 12b289396876..5c60b9c3c1da 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/exports/Get-AzContainerInstanceCapability.ps1 +++ b/src/ContainerInstance/ContainerInstance.Autorest/exports/Get-AzContainerInstanceCapability.ps1 @@ -23,26 +23,26 @@ Get the list of CPU/memory/GPU capabilities of a region. Get-AzContainerInstanceCapability -Location eastus .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilities +Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilities .Link https://learn.microsoft.com/powershell/module/az.containerinstance/get-azcontainerinstancecapability #> function Get-AzContainerInstanceCapability { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilities])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilities])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [System.String] - # The identifier for the physical azure location. + # The name of the Azure region. ${Location}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] - # Subscription credentials which uniquely identify Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter()] diff --git a/src/ContainerInstance/ContainerInstance.Autorest/exports/Get-AzContainerInstanceContainerGroupOutboundNetworkDependencyEndpoint.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/exports/Get-AzContainerInstanceContainerGroupOutboundNetworkDependencyEndpoint.ps1 index 6415b39b347c..7f0a09d47161 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/exports/Get-AzContainerInstanceContainerGroupOutboundNetworkDependencyEndpoint.ps1 +++ b/src/ContainerInstance/ContainerInstance.Autorest/exports/Get-AzContainerInstanceContainerGroupOutboundNetworkDependencyEndpoint.ps1 @@ -35,12 +35,14 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ContainerGroupName ]: The name of the container group. + [ContainerGroupProfileName ]: The name of the container group profile. [ContainerName ]: The name of the container instance. [Id ]: Resource identity path - [Location ]: The identifier for the physical azure location. - [ResourceGroupName ]: The name of the resource group. + [Location ]: The name of the Azure region. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [RevisionNumber ]: The revision number of the container group profile. [SubnetName ]: The name of the subnet. - [SubscriptionId ]: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkName ]: The name of the virtual network. .Link https://learn.microsoft.com/powershell/module/az.containerinstance/get-azcontainerinstancecontainergroupoutboundnetworkdependencyendpoint @@ -60,14 +62,15 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Get')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] - # Subscription credentials which uniquely identify Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/ContainerInstance/ContainerInstance.Autorest/exports/Get-AzContainerInstanceContainerGroupProfile.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/exports/Get-AzContainerInstanceContainerGroupProfile.ps1 new file mode 100644 index 000000000000..77596bb72206 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/exports/Get-AzContainerInstanceContainerGroupProfile.ps1 @@ -0,0 +1,241 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Gets the properties of the specified container group profile in the specified subscription and resource group. +The operation returns the properties of container group profile including containers, image registry credentials, restart policy, IP address type, OS type, volumes, current revision number, etc. +.Description +Gets the properties of the specified container group profile in the specified subscription and resource group. +The operation returns the properties of container group profile including containers, image registry credentials, restart policy, IP address type, OS type, volumes, current revision number, etc. +.Example +Get-AzContainerInstanceContainerGroupProfile +.Example +Get-AzContainerInstanceContainerGroupProfile -ResourceGroupName test-rg +.Example +Get-AzContainerInstanceContainerGroupProfile -Name test-cgp1 -ResourceGroupName test-rg | Format-List +.Example +Get-AzContainerInstanceContainerGroupProfile -Name test-cgp -ResourceGroupName test-rg -RevisionNumber 1 | Format-List + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [ContainerGroupName ]: The name of the container group. + [ContainerGroupProfileName ]: The name of the container group profile. + [ContainerName ]: The name of the container instance. + [Id ]: Resource identity path + [Location ]: The name of the Azure region. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [RevisionNumber ]: The revision number of the container group profile. + [SubnetName ]: The name of the subnet. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VirtualNetworkName ]: The name of the virtual network. +.Link +https://learn.microsoft.com/powershell/module/az.containerinstance/get-azcontainerinstancecontainergroupprofile +#> +function Get-AzContainerInstanceContainerGroupProfile { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='Get1', Mandatory)] + [Alias('ContainerGroupProfileName')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] + [System.String] + # The name of the container group profile. + ${Name}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='Get1', Mandatory)] + [Parameter(ParameterSetName='List1', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='Get1')] + [Parameter(ParameterSetName='List')] + [Parameter(ParameterSetName='List1')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter(ParameterSetName='Get1', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] + [System.String] + # The revision number of the container group profile. + ${RevisionNumber}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='GetViaIdentity1', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + Get = 'Az.ContainerInstance.private\Get-AzContainerInstanceContainerGroupProfile_Get'; + Get1 = 'Az.ContainerInstance.private\Get-AzContainerInstanceContainerGroupProfile_Get1'; + GetViaIdentity = 'Az.ContainerInstance.private\Get-AzContainerInstanceContainerGroupProfile_GetViaIdentity'; + GetViaIdentity1 = 'Az.ContainerInstance.private\Get-AzContainerInstanceContainerGroupProfile_GetViaIdentity1'; + List = 'Az.ContainerInstance.private\Get-AzContainerInstanceContainerGroupProfile_List'; + List1 = 'Az.ContainerInstance.private\Get-AzContainerInstanceContainerGroupProfile_List1'; + } + if (('Get', 'Get1', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/src/ContainerInstance/ContainerInstance.Autorest/exports/Get-AzContainerInstanceContainerGroupProfileRevision.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/exports/Get-AzContainerInstanceContainerGroupProfileRevision.ps1 new file mode 100644 index 000000000000..598eff7e860d --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/exports/Get-AzContainerInstanceContainerGroupProfileRevision.ps1 @@ -0,0 +1,191 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Get a list of all the revisions of the specified container group profile in the given subscription and resource group. +This operation returns properties of each revision of the specified container group profile including containers, image registry credentials, restart policy, IP address type, OS type volumes, revision number, etc. +.Description +Get a list of all the revisions of the specified container group profile in the given subscription and resource group. +This operation returns properties of each revision of the specified container group profile including containers, image registry credentials, restart policy, IP address type, OS type volumes, revision number, etc. +.Example +Get-AzContainerInstanceContainerGroupProfileRevision -ContainerGroupProfileName test-cgp -ResourceGroupName test-rg + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile +.Link +https://learn.microsoft.com/powershell/module/az.containerinstance/get-azcontainerinstancecontainergroupprofilerevision +#> +function Get-AzContainerInstanceContainerGroupProfileRevision { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] + [System.String] + # The name of the container group profile. + ${ContainerGroupProfileName}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + List = 'Az.ContainerInstance.private\Get-AzContainerInstanceContainerGroupProfileRevision_List'; + } + if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/src/ContainerInstance/ContainerInstance.Autorest/exports/Get-AzContainerInstanceLog.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/exports/Get-AzContainerInstanceLog.ps1 index 2ac51befb1c1..382cfebcda50 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/exports/Get-AzContainerInstanceLog.ps1 +++ b/src/ContainerInstance/ContainerInstance.Autorest/exports/Get-AzContainerInstanceLog.ps1 @@ -49,14 +49,15 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] - # Subscription credentials which uniquely identify Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter()] diff --git a/src/ContainerInstance/ContainerInstance.Autorest/exports/Get-AzContainerInstanceUsage.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/exports/Get-AzContainerInstanceUsage.ps1 index 00f801c8e22f..45a6a1c6e28f 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/exports/Get-AzContainerInstanceUsage.ps1 +++ b/src/ContainerInstance/ContainerInstance.Autorest/exports/Get-AzContainerInstanceUsage.ps1 @@ -23,26 +23,26 @@ Get the usage for a subscription Get-AzContainerInstanceUsage -Location eastus .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsage +Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsage .Link https://learn.microsoft.com/powershell/module/az.containerinstance/get-azcontainerinstanceusage #> function Get-AzContainerInstanceUsage { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsage])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsage])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [System.String] - # The identifier for the physical azure location. + # The name of the Azure region. ${Location}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] - # Subscription credentials which uniquely identify Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter()] diff --git a/src/ContainerInstance/ContainerInstance.Autorest/exports/New-AzContainerGroup.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/exports/New-AzContainerGroup.ps1 index deff7dac0db8..a84330f3897c 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/exports/New-AzContainerGroup.ps1 +++ b/src/ContainerInstance/ContainerInstance.Autorest/exports/New-AzContainerGroup.ps1 @@ -25,23 +25,27 @@ $port2 = New-AzContainerInstancePortObject -Port 8001 -Protocol TCP $container = New-AzContainerInstanceObject -Name test-container -Image nginx -RequestCpu 1 -RequestMemoryInGb 1.5 -Port @($port1, $port2) $containerGroup = New-AzContainerGroup -ResourceGroupName test-rg -Name test-cg -Location eastus -Container $container -OsType Linux -RestartPolicy "Never" -IpAddressType Public .Example +$pwd = ConvertTo-SecureString -String "****" -AsPlainText -Force $env1 = New-AzContainerInstanceEnvironmentVariableObject -Name "env1" -Value "value1" -$env2 = New-AzContainerInstanceEnvironmentVariableObject -Name "env2" -SecureValue (ConvertTo-SecureString -String "value2" -AsPlainText -Force) +$env2 = New-AzContainerInstanceEnvironmentVariableObject -Name "env2" -SecureValue $pwd $container = New-AzContainerInstanceObject -Name test-container -Image alpine -Command "/bin/sh -c myscript.sh" -EnvironmentVariable @($env1, $env2) $containerGroup = New-AzContainerGroup -ResourceGroupName test-rg -Name test-cg -Location eastus -Container $container -OsType Linux .Example $container = New-AzContainerInstanceObject -Name test-container -Image alpine -Command "echo hello" $containerGroup = New-AzContainerGroup -ResourceGroupName test-rg -Name test-cg -Location eastus -Container $container -OsType Linux .Example +$pwd = ConvertTo-SecureString -String "****" -AsPlainText -Force $container = New-AzContainerInstanceObject -Name test-container -Image myacr.azurecr.io/nginx:latest -$imageRegistryCredential = New-AzContainerGroupImageRegistryCredentialObject -Server "myacr.azurecr.io" -Username "username" -Password (ConvertTo-SecureString "PlainTextPassword" -AsPlainText -Force) +$imageRegistryCredential = New-AzContainerGroupImageRegistryCredentialObject -Server "myacr.azurecr.io" -Username "username" -Password $pwd $containerGroup = New-AzContainerGroup -ResourceGroupName test-rg -Name test-cg -Location eastus -Container $container -ImageRegistryCredential $imageRegistryCredential .Example +$pwd = ConvertTo-SecureString -String "****" -AsPlainText -Force $container = New-AzContainerInstanceObject -Name test-container -Image myserver.com/nginx:latest -$imageRegistryCredential = New-AzContainerGroupImageRegistryCredentialObject -Server "myserver.com" -Username "username" -Password (ConvertTo-SecureString "PlainTextPassword" -AsPlainText -Force) +$imageRegistryCredential = New-AzContainerGroupImageRegistryCredentialObject -Server "myserver.com" -Username "username" -Password $pwd $containerGroup = New-AzContainerGroup -ResourceGroupName test-rg -Name test-cg -Location eastus -Container $container -ImageRegistryCredential $imageRegistryCredential .Example -$volume = New-AzContainerGroupVolumeObject -Name "myvolume" -AzureFileShareName "myshare" -AzureFileStorageAccountName "username" -AzureFileStorageAccountKey (ConvertTo-SecureString "PlainTextPassword" -AsPlainText -Force) +$pwd = ConvertTo-SecureString -String "****" -AsPlainText -Force +$volume = New-AzContainerGroupVolumeObject -Name "myvolume" -AzureFileShareName "myshare" -AzureFileStorageAccountName "username" -AzureFileStorageAccountKey $pwd $mount = New-AzContainerInstanceVolumeMountObject -MountPath "/aci/logs" -Name "myvolume" $container = New-AzContainerInstanceObject -Name test-container -Image alpine -VolumeMount $mount $containerGroup = New-AzContainerGroup -ResourceGroupName test-rg -Name test-cg -Location eastus -Container $container -Volume $volume @@ -50,22 +54,24 @@ $container = New-AzContainerInstanceObject -Name test-container -Image alpine $containerGroup = New-AzContainerGroup -ResourceGroupName test-rg -Name test-cg -Location eastus -Container $container -IdentityType "SystemAssigned, UserAssigned" -IdentityUserAssignedIdentity @{"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}" = @{}} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup +Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. CONTAINER : The containers within the container group. - Image : The name of the image used to create the container instance. Name : The user-provided name of the container instance. - RequestCpu : The CPU request of this container instance. - RequestMemoryInGb : The memory request in GB of this container instance. + [CapabilityAdd ]: The capabilities to add to the container. + [CapabilityDrop ]: The capabilities to drop from the container. [Command ]: The commands to execute within the container instance in exec form. + [ConfigMapKeyValuePair ]: The key value pairs dictionary in the config map. + [(Any) ]: This indicates any property can be added to this object. [EnvironmentVariable ]: The environment variables to set in the container instance. Name : The name of the environment variable. [SecureValue ]: The value of the secure environment variable. [Value ]: The value of the environment variable. + [Image ]: The name of the image used to create the container instance. [LimitCpu ]: The CPU limit of this container instance. [LimitMemoryInGb ]: The memory limit in GB of this container instance. [LimitsGpuCount ]: The count of the GPU resource. @@ -95,8 +101,15 @@ CONTAINER : The containers within the container group. [ReadinessProbePeriodSecond ]: The period seconds. [ReadinessProbeSuccessThreshold ]: The success threshold. [ReadinessProbeTimeoutSecond ]: The timeout seconds. + [RequestCpu ]: The CPU request of this container instance. + [RequestMemoryInGb ]: The memory request in GB of this container instance. [RequestsGpuCount ]: The count of the GPU resource. [RequestsGpuSku ]: The SKU of the GPU resource. + [SecurityContextAllowPrivilegeEscalation ]: A boolean value indicating whether the init process can elevate its privileges + [SecurityContextPrivileged ]: The flag to determine if the container permissions is elevated to Privileged. + [SecurityContextRunAsGroup ]: Sets the User GID for the container. + [SecurityContextRunAsUser ]: Sets the User UID for the container. + [SecurityContextSeccompProfile ]: a base64 encoded string containing the contents of the JSON in the seccomp profile [VolumeMount ]: The volume mounts available to the container instance. MountPath : The path within the container where the volume should be mounted. Must not contain colon (:). Name : The name of the volume mount. @@ -111,12 +124,19 @@ IMAGEREGISTRYCREDENTIAL : The image registry credent INITCONTAINER : The init containers for a container group. Name : The name for the init container. + [CapabilityAdd ]: The capabilities to add to the container. + [CapabilityDrop ]: The capabilities to drop from the container. [Command ]: The command to execute within the init container in exec form. [EnvironmentVariable ]: The environment variables to set in the init container. Name : The name of the environment variable. [SecureValue ]: The value of the secure environment variable. [Value ]: The value of the environment variable. [Image ]: The image of the init container. + [SecurityContextAllowPrivilegeEscalation ]: A boolean value indicating whether the init process can elevate its privileges + [SecurityContextPrivileged ]: The flag to determine if the container permissions is elevated to Privileged. + [SecurityContextRunAsGroup ]: Sets the User GID for the container. + [SecurityContextRunAsUser ]: Sets the User UID for the container. + [SecurityContextSeccompProfile ]: a base64 encoded string containing the contents of the JSON in the seccomp profile [VolumeMount ]: The volume mounts available to the init container. MountPath : The path within the container where the volume should be mounted. Must not contain colon (:). Name : The name of the volume mount. @@ -147,7 +167,7 @@ VOLUME : The list of volumes that can be mounted by containers in thi https://learn.microsoft.com/powershell/module/az.containerinstance/new-azcontainergroup #> function New-AzContainerGroup { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -172,27 +192,38 @@ param( ${SubscriptionId}, [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.String] + # The resource location. + ${Location}, + + [Parameter()] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainer[]] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainer[]] # The containers within the container group. # To construct, see NOTES section for CONTAINER properties and create a hash table. ${Container}, - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [System.String] - # The resource location. - ${Location}, - [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes])] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo(Description='Sets OSType equal Linux by default.', Script='"Linux"')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes] # The operating system type required by the containers in the container group. ${OSType}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.String] + # The container group profile reference id.This will be an ARM resource id in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}'. + ${ContainerGroupProfileId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.Int32] + # The container group profile reference revision. + ${ContainerGroupProfileRevision}, + [Parameter()] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] @@ -245,7 +276,7 @@ param( [Parameter()] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IPort[]] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPort[]] # The list of ports exposed on the container group. # To construct, see NOTES section for IPADDRESSPORT properties and create a hash table. ${IPAddressPort}, @@ -268,7 +299,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentityUserAssignedIdentities]))] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentityUserAssignedIdentities]))] [System.Collections.Hashtable] # The list of user identities associated with the container group. # The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. @@ -277,7 +308,7 @@ param( [Parameter()] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IImageRegistryCredential[]] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredential[]] # The image registry credentials by which the container group is created from. # To construct, see NOTES section for IMAGEREGISTRYCREDENTIAL properties and create a hash table. ${ImageRegistryCredential}, @@ -285,7 +316,7 @@ param( [Parameter()] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinition[]] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinition[]] # The init containers for a container group. # To construct, see NOTES section for INITCONTAINER properties and create a hash table. ${InitContainer}, @@ -299,7 +330,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsMetadata]))] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsMetadata]))] [System.Collections.Hashtable] # Metadata for log analytics. ${LogAnalyticMetadata}, @@ -337,17 +368,29 @@ param( # The SKU for a container group. ${Sku}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.Management.Automation.SwitchParameter] + # The flag to determine whether ACI should fail the create request if the container group can not be obtained from standby pool. + ${StandbyPoolProfileFailContainerGroupCreateOnReuseFailure}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.String] + # The standby pool profile reference id.This will be an ARM resource id in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyContainerGroupPools/{standbyPoolName}'. + ${StandbyPoolProfileId}, + [Parameter()] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupSubnetId[]] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupSubnetId[]] # The subnet resource IDs for a container group. # To construct, see NOTES section for SUBNETID properties and create a hash table. ${SubnetId}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceTags]))] [System.Collections.Hashtable] # The resource tags. ${Tag}, @@ -355,7 +398,7 @@ param( [Parameter()] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolume[]] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolume[]] # The list of volumes that can be mounted by containers in this container group. # To construct, see NOTES section for VOLUME properties and create a hash table. ${Volume}, @@ -470,9 +513,6 @@ begin { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } } - if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('OSType')) { - $PSBoundParameters['OSType'] = "Linux" - } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ diff --git a/src/ContainerInstance/ContainerInstance.Autorest/exports/New-AzContainerGroupImageRegistryCredentialObject.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/exports/New-AzContainerGroupImageRegistryCredentialObject.ps1 index 966df7da2336..921de495b667 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/exports/New-AzContainerGroupImageRegistryCredentialObject.ps1 +++ b/src/ContainerInstance/ContainerInstance.Autorest/exports/New-AzContainerGroupImageRegistryCredentialObject.ps1 @@ -20,15 +20,16 @@ Create a in-memory object for ImageRegistryCredential .Description Create a in-memory object for ImageRegistryCredential .Example -New-AzContainerGroupImageRegistryCredentialObject -Server "myserver.com" -Username "username" -Password (ConvertTo-SecureString "******" -AsPlainText -Force) +$pwd = ConvertTo-SecureString -String "****" -AsPlainText -Force +New-AzContainerGroupImageRegistryCredentialObject -Server "myserver.com" -Username "username" -Password $pwd .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ImageRegistryCredential +Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ImageRegistryCredential .Link https://learn.microsoft.com/powershell/module/az.ContainerInstance/new-AzContainerGroupImageRegistryCredentialObject #> function New-AzContainerGroupImageRegistryCredentialObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ImageRegistryCredential])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ImageRegistryCredential])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] diff --git a/src/ContainerInstance/ContainerInstance.Autorest/exports/New-AzContainerGroupPortObject.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/exports/New-AzContainerGroupPortObject.ps1 index ebc54f2f26e9..8d1772773d3f 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/exports/New-AzContainerGroupPortObject.ps1 +++ b/src/ContainerInstance/ContainerInstance.Autorest/exports/New-AzContainerGroupPortObject.ps1 @@ -23,12 +23,12 @@ Create a in-memory object for Port New-AzContainerGroupPortObject -Port 8000 -Protocol TCP .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.Port +Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Port .Link https://learn.microsoft.com/powershell/module/az.ContainerInstance/new-AzContainerGroupPortObject #> function New-AzContainerGroupPortObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.Port])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Port])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] diff --git a/src/ContainerInstance/ContainerInstance.Autorest/exports/New-AzContainerGroupVolumeObject.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/exports/New-AzContainerGroupVolumeObject.ps1 index a1a6ff03555b..75163b9ed94b 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/exports/New-AzContainerGroupVolumeObject.ps1 +++ b/src/ContainerInstance/ContainerInstance.Autorest/exports/New-AzContainerGroupVolumeObject.ps1 @@ -20,12 +20,13 @@ Create an in-memory object for Volume. .Description Create an in-memory object for Volume. .Example -New-AzContainerGroupVolumeObject -Name "myvolume" -AzureFileShareName "myshare" -AzureFileStorageAccountName "username" -AzureFileStorageAccountKey (ConvertTo-SecureString "******" -AsPlainText -Force) +$pwd = ConvertTo-SecureString -String "****" -AsPlainText -Force +New-AzContainerGroupVolumeObject -Name "myvolume" -AzureFileShareName "myshare" -AzureFileStorageAccountName "username" -AzureFileStorageAccountKey $pwd .Example New-AzContainerGroupVolumeObject -Name "emptyvolume" -EmptyDir @{} | Format-List .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.Volume +Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Volume .Notes COMPLEX PARAMETER PROPERTIES @@ -40,7 +41,7 @@ SECRET : The secret volume. https://learn.microsoft.com/powershell/module/az.ContainerInstance/new-AzContainerGroupVolumeObject #> function New-AzContainerGroupVolumeObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.Volume])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Volume])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -75,7 +76,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeEmptyDir] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeEmptyDir] # The empty directory volume. # To construct, see NOTES section for EMPTYDIR properties and create a hash table. ${EmptyDir}, @@ -103,7 +104,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ISecretVolume] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecretVolume] # The secret volume. # To construct, see NOTES section for SECRET properties and create a hash table. ${Secret} diff --git a/src/ContainerInstance/ContainerInstance.Autorest/exports/New-AzContainerInstanceContainerGroupProfile.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/exports/New-AzContainerInstanceContainerGroupProfile.ps1 new file mode 100644 index 000000000000..905a82096232 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/exports/New-AzContainerInstanceContainerGroupProfile.ps1 @@ -0,0 +1,508 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create or update container group profiles with specified configurations. +.Description +Create or update container group profiles with specified configurations. +.Example +$port1 = New-AzContainerInstancePortObject -Port 8000 -Protocol TCP +$port2 = New-AzContainerInstancePortObject -Port 8001 -Protocol TCP +$container = New-AzContainerInstanceObject -Name test-container -Image nginx -RequestCpu 1 -RequestMemoryInGb 1.5 -Port @($port1, $port2) +$containerGroupProfile = New-AzContainerInstanceContainerGroupProfile -ResourceGroupName test-rg -Name test-cgp -Location eastus -Container $container -OsType Linux -RestartPolicy "Never" -IpAddressType Public +.Example +$pwd = ConvertTo-SecureString -String "****" -AsPlainText -Force +$env1 = New-AzContainerInstanceEnvironmentVariableObject -Name "env1" -Value "value1" +$env2 = New-AzContainerInstanceEnvironmentVariableObject -Name "env2" -SecureValue $pwd +$container = New-AzContainerInstanceObject -Name test-container -Image alpine -Command "/bin/sh -c myscript.sh" -EnvironmentVariable @($env1, $env2) -RequestCpu 1 -RequestMemoryInGb 1.5 +$containerGroupProfile = New-AzContainerInstanceContainerGroupProfile -ResourceGroupName test-rg -Name test-cgp -Location eastus -Container $container -OsType Linux +.Example +$pwd = ConvertTo-SecureString -String "****" -AsPlainText -Force +$container = New-AzContainerInstanceObject -Name test-container -Image myacr.azurecr.io/nginx:latest -RequestCpu 1 -RequestMemoryInGb 1.5 +$imageRegistryCredential = New-AzContainerGroupImageRegistryCredentialObject -Server "myacr.azurecr.io" -Username "username" -Password $pwd +$containerGroupProfile = New-AzContainerInstanceContainerGroupProfile -ResourceGroupName test-rg -Name test-cgp -Location eastus -Container $container -ImageRegistryCredential $imageRegistryCredential -OsType Linux +.Example +$container = New-AzContainerInstanceObject -Name test-container -Image nginx -RequestCpu 1 -RequestMemoryInGb 1.5 +$containerGroupProfile = New-AzContainerInstanceContainerGroupProfile -ResourceGroupName test-rg -Name test-cgp -Location eastus -Container $container -OsType Linux -RestartPolicy Never -Priority Spot + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +CONTAINER : The containers within the container group. + Name : The user-provided name of the container instance. + [CapabilityAdd ]: The capabilities to add to the container. + [CapabilityDrop ]: The capabilities to drop from the container. + [Command ]: The commands to execute within the container instance in exec form. + [ConfigMapKeyValuePair ]: The key value pairs dictionary in the config map. + [(Any) ]: This indicates any property can be added to this object. + [EnvironmentVariable ]: The environment variables to set in the container instance. + Name : The name of the environment variable. + [SecureValue ]: The value of the secure environment variable. + [Value ]: The value of the environment variable. + [Image ]: The name of the image used to create the container instance. + [LimitCpu ]: The CPU limit of this container instance. + [LimitMemoryInGb ]: The memory limit in GB of this container instance. + [LimitsGpuCount ]: The count of the GPU resource. + [LimitsGpuSku ]: The SKU of the GPU resource. + [LivenessProbeExecCommand ]: The commands to execute within the container. + [LivenessProbeFailureThreshold ]: The failure threshold. + [LivenessProbeHttpGetHttpHeader ]: The HTTP headers. + [Name ]: The header name. + [Value ]: The header value. + [LivenessProbeHttpGetPath ]: The path to probe. + [LivenessProbeHttpGetPort ]: The port number to probe. + [LivenessProbeHttpGetScheme ]: The scheme. + [LivenessProbeInitialDelaySecond ]: The initial delay seconds. + [LivenessProbePeriodSecond ]: The period seconds. + [LivenessProbeSuccessThreshold ]: The success threshold. + [LivenessProbeTimeoutSecond ]: The timeout seconds. + [Port ]: The exposed ports on the container instance. + Port : The port number exposed within the container group. + [Protocol ]: The protocol associated with the port. + [ReadinessProbeExecCommand ]: The commands to execute within the container. + [ReadinessProbeFailureThreshold ]: The failure threshold. + [ReadinessProbeHttpGetHttpHeader ]: The HTTP headers. + [ReadinessProbeHttpGetPath ]: The path to probe. + [ReadinessProbeHttpGetPort ]: The port number to probe. + [ReadinessProbeHttpGetScheme ]: The scheme. + [ReadinessProbeInitialDelaySecond ]: The initial delay seconds. + [ReadinessProbePeriodSecond ]: The period seconds. + [ReadinessProbeSuccessThreshold ]: The success threshold. + [ReadinessProbeTimeoutSecond ]: The timeout seconds. + [RequestCpu ]: The CPU request of this container instance. + [RequestMemoryInGb ]: The memory request in GB of this container instance. + [RequestsGpuCount ]: The count of the GPU resource. + [RequestsGpuSku ]: The SKU of the GPU resource. + [SecurityContextAllowPrivilegeEscalation ]: A boolean value indicating whether the init process can elevate its privileges + [SecurityContextPrivileged ]: The flag to determine if the container permissions is elevated to Privileged. + [SecurityContextRunAsGroup ]: Sets the User GID for the container. + [SecurityContextRunAsUser ]: Sets the User UID for the container. + [SecurityContextSeccompProfile ]: a base64 encoded string containing the contents of the JSON in the seccomp profile + [VolumeMount ]: The volume mounts available to the container instance. + MountPath : The path within the container where the volume should be mounted. Must not contain colon (:). + Name : The name of the volume mount. + [ReadOnly ]: The flag indicating whether the volume mount is read-only. + +EXTENSION : extensions used by virtual kubelet + Name : Name of the extension. + [ExtensionType ]: Type of extension to be added. + [ProtectedSetting ]: Protected settings for the extension. + [Setting ]: Settings for the extension. + [Version ]: Version of the extension being used. + +IMAGEREGISTRYCREDENTIAL : The image registry credentials by which the container group is created from. + Server : The Docker image registry server without a protocol such as "http" and "https". + [Identity ]: The identity for the private registry. + [IdentityUrl ]: The identity URL for the private registry. + [Password ]: The password for the private registry. + [Username ]: The username for the private registry. + +INITCONTAINER : The init containers for a container group. + Name : The name for the init container. + [CapabilityAdd ]: The capabilities to add to the container. + [CapabilityDrop ]: The capabilities to drop from the container. + [Command ]: The command to execute within the init container in exec form. + [EnvironmentVariable ]: The environment variables to set in the init container. + Name : The name of the environment variable. + [SecureValue ]: The value of the secure environment variable. + [Value ]: The value of the environment variable. + [Image ]: The image of the init container. + [SecurityContextAllowPrivilegeEscalation ]: A boolean value indicating whether the init process can elevate its privileges + [SecurityContextPrivileged ]: The flag to determine if the container permissions is elevated to Privileged. + [SecurityContextRunAsGroup ]: Sets the User GID for the container. + [SecurityContextRunAsUser ]: Sets the User UID for the container. + [SecurityContextSeccompProfile ]: a base64 encoded string containing the contents of the JSON in the seccomp profile + [VolumeMount ]: The volume mounts available to the init container. + MountPath : The path within the container where the volume should be mounted. Must not contain colon (:). + Name : The name of the volume mount. + [ReadOnly ]: The flag indicating whether the volume mount is read-only. + +IPADDRESSPORT : The list of ports exposed on the container group. + Port1 : The port number. + [Protocol ]: The protocol associated with the port. + +VOLUME : The list of volumes that can be mounted by containers in this container group. + Name : The name of the volume. + [AzureFileReadOnly ]: The flag indicating whether the Azure File shared mounted as a volume is read-only. + [AzureFileShareName ]: The name of the Azure File share to be mounted as a volume. + [AzureFileStorageAccountKey ]: The storage account access key used to access the Azure File share. + [AzureFileStorageAccountName ]: The name of the storage account that contains the Azure File share. + [EmptyDir ]: The empty directory volume. + [(Any) ]: This indicates any property can be added to this object. + [GitRepoDirectory ]: Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + [GitRepoRepository ]: Repository URL + [GitRepoRevision ]: Commit hash for the specified revision. + [Secret ]: The secret volume. + [(Any) ]: This indicates any property can be added to this object. +.Link +https://learn.microsoft.com/powershell/module/az.containerinstance/new-azcontainerinstancecontainergroupprofile +#> +function New-AzContainerInstanceContainerGroupProfile { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Alias('ContainerGroupProfileName')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] + [System.String] + # The name of the container group profile. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter(Mandatory)] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainer[]] + # The containers within the container group. + # To construct, see NOTES section for CONTAINER properties and create a hash table. + ${Container}, + + [Parameter(Mandatory)] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes])] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes] + # The operating system type required by the containers in the container group. + ${OSType}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.String] + # The base64 encoded confidential compute enforcement policy + ${ConfidentialComputePropertyCcePolicy}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.String] + # The keyvault managed identity. + ${EncryptionPropertyIdentity}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.String] + # The encryption key name. + ${EncryptionPropertyKeyName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.String] + # The encryption key version. + ${EncryptionPropertyKeyVersion}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.String] + # The keyvault base url. + ${EncryptionPropertyVaultBaseUrl}, + + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpec[]] + # extensions used by virtual kubelet + # To construct, see NOTES section for EXTENSION properties and create a hash table. + ${Extension}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy])] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy] + # The value representing the security enum. + # The 'Unsecure' value is the default value if not selected and means the object's domain name label is not secured against subdomain takeover. + # The 'TenantReuse' value is the default value if selected and means the object's domain name label can be reused within the same tenant. + # The 'SubscriptionReuse' value means the object's domain name label can be reused within the same subscription. + # The 'ResourceGroupReuse' value means the object's domain name label can be reused within the same resource group. + # The 'NoReuse' value means the object's domain name label cannot be reused within the same resource group, subscription, or tenant. + ${IPAddressAutoGeneratedDomainNameLabelScope}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.String] + # The Dns name label for the IP. + ${IPAddressDnsNameLabel}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.String] + # The IP exposed to the public internet. + ${IPAddressIP}, + + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPort[]] + # The list of ports exposed on the container group. + # To construct, see NOTES section for IPADDRESSPORT properties and create a hash table. + ${IPAddressPort}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType])] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType] + # Specifies if the IP is exposed to the public internet or private VNET. + ${IPAddressType}, + + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredential[]] + # The image registry credentials by which the container group is created from. + # To construct, see NOTES section for IMAGEREGISTRYCREDENTIAL properties and create a hash table. + ${ImageRegistryCredential}, + + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinition[]] + # The init containers for a container group. + # To construct, see NOTES section for INITCONTAINER properties and create a hash table. + ${InitContainer}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.String] + # The resource location. + ${Location}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType])] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType] + # The log type to be used. + ${LogAnalyticLogType}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsMetadata]))] + [System.Collections.Hashtable] + # Metadata for log analytics. + ${LogAnalyticMetadata}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.String] + # The workspace id for log analytics + ${LogAnalyticWorkspaceId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.String] + # The workspace key for log analytics + ${LogAnalyticWorkspaceKey}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.String] + # The workspace resource id for log analytics + ${LogAnalyticWorkspaceResourceId}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority])] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority] + # The priority of the container group. + ${Priority}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy])] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy] + # Restart policy for all containers within the container group. + # - `Always` Always restart- `OnFailure` Restart on failure- `Never` Never restart + ${RestartPolicy}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku])] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku] + # The SKU for a container group. + ${Sku}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceTags]))] + [System.Collections.Hashtable] + # The resource tags. + ${Tag}, + + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolume[]] + # The list of volumes that can be mounted by containers in this container group. + # To construct, see NOTES section for VOLUME properties and create a hash table. + ${Volume}, + + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.String[]] + # The zones for the container group. + ${Zone}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + CreateExpanded = 'Az.ContainerInstance.private\New-AzContainerInstanceContainerGroupProfile_CreateExpanded'; + } + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/src/ContainerInstance/ContainerInstance.Autorest/exports/New-AzContainerInstanceEnvironmentVariableObject.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/exports/New-AzContainerInstanceEnvironmentVariableObject.ps1 index 3b20b495860b..82af09615724 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/exports/New-AzContainerInstanceEnvironmentVariableObject.ps1 +++ b/src/ContainerInstance/ContainerInstance.Autorest/exports/New-AzContainerInstanceEnvironmentVariableObject.ps1 @@ -22,15 +22,16 @@ Create a in-memory object for EnvironmentVariable .Example New-AzContainerInstanceEnvironmentVariableObject -Name "env1" -Value "value1" .Example -New-AzContainerInstanceEnvironmentVariableObject -Name "env2" -SecureValue (ConvertTo-SecureString -String "******" -AsPlainText -Force) +$pwd = ConvertTo-SecureString -String "****" -AsPlainText -Force +New-AzContainerInstanceEnvironmentVariableObject -Name "env2" -SecureValue $pwd .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.EnvironmentVariable +Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.EnvironmentVariable .Link https://learn.microsoft.com/powershell/module/az.ContainerInstance/new-AzContainerInstanceEnvironmentVariableObject #> function New-AzContainerInstanceEnvironmentVariableObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.EnvironmentVariable])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.EnvironmentVariable])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] diff --git a/src/ContainerInstance/ContainerInstance.Autorest/exports/New-AzContainerInstanceHttpHeaderObject.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/exports/New-AzContainerInstanceHttpHeaderObject.ps1 index 0ac05d596561..d5c8a4ab58a2 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/exports/New-AzContainerInstanceHttpHeaderObject.ps1 +++ b/src/ContainerInstance/ContainerInstance.Autorest/exports/New-AzContainerInstanceHttpHeaderObject.ps1 @@ -23,12 +23,12 @@ Create a in-memory object for HttpHeader New-AzContainerInstanceHttpHeaderObject -name foo -value bar .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.HttpHeader +Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.HttpHeader .Link https://learn.microsoft.com/powershell/module/az.ContainerInstance/New-AzContainerInstanceHttpHeaderObject #> function New-AzContainerInstanceHttpHeaderObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.HttpHeader])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.HttpHeader])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] diff --git a/src/ContainerInstance/ContainerInstance.Autorest/exports/New-AzContainerInstanceInitDefinitionObject.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/exports/New-AzContainerInstanceInitDefinitionObject.ps1 index 25b1eca026d6..7e108610b0f2 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/exports/New-AzContainerInstanceInitDefinitionObject.ps1 +++ b/src/ContainerInstance/ContainerInstance.Autorest/exports/New-AzContainerInstanceInitDefinitionObject.ps1 @@ -23,7 +23,7 @@ Create a in-memory object for InitContainerDefinition New-AzContainerInstanceInitDefinitionObject -Name "initDefinition" -Command "/bin/sh -c myscript.sh" .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.InitContainerDefinition +Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.InitContainerDefinition .Notes COMPLEX PARAMETER PROPERTIES @@ -42,7 +42,7 @@ VOLUMEMOUNT : The volume mounts available to the init container. https://learn.microsoft.com/powershell/module/az.ContainerInstance/new-AzContainerInstanceInitDefinitionObject #> function New-AzContainerInstanceInitDefinitionObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.InitContainerDefinition])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.InitContainerDefinition])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -59,7 +59,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEnvironmentVariable[]] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariable[]] # The environment variables to set in the init container. # To construct, see NOTES section for ENVIRONMENTVARIABLE properties and create a hash table. ${EnvironmentVariable}, @@ -72,7 +72,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeMount[]] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMount[]] # The volume mounts available to the init container. # To construct, see NOTES section for VOLUMEMOUNT properties and create a hash table. ${VolumeMount} diff --git a/src/ContainerInstance/ContainerInstance.Autorest/exports/New-AzContainerInstanceNoDefaultObject.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/exports/New-AzContainerInstanceNoDefaultObject.ps1 new file mode 100644 index 000000000000..537f2cbf5f1e --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/exports/New-AzContainerInstanceNoDefaultObject.ps1 @@ -0,0 +1,365 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create a in-memory object for Container with no default values +.Description +Create a in-memory object for Container with no default values +.Example +New-AzContainerInstanceNoDefaultObject -Name "test-container" -Image alpine -RequestCpu 1 -RequestMemoryInGb 1.5 +.Example +New-AzContainerInstanceNoDefaultObject -Image alpine -Name "test-container" -LimitCpu 2 -LimitMemoryInGb 2.5 +.Example +$container = New-AzContainerInstanceNoDefaultObject -Name test-container -Image alpine +New-AzContainerGroup -ResourceGroupName testrg-rg -Name test-cg -Location eastus -Container $container + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Container +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +CONFIGMAPKEYVALUEPAIR : The key value pairs dictionary in the config map to set in the container instance. + [(Any) ]: This indicates any property can be added to this object. + +ENVIRONMENTVARIABLE : The environment variables to set in the container instance. + Name : The name of the environment variable. + [SecureValue ]: The value of the secure environment variable. + [Value ]: The value of the environment variable. + +LIVENESSPROBEHTTPGETHTTPHEADER : The HTTP headers for liveness probe. + [Name ]: The header name. + [Value ]: The header value. + +PORT : The exposed ports on the container instance. + Port : The port number exposed within the container group. + [Protocol ]: The protocol associated with the port. + +READINESSPROBEHTTPGETHTTPHEADER : The HTTP headers for readiness probe. + [Name ]: The header name. + [Value ]: The header value. + +VOLUMEMOUNT : The volume mounts available to the container instance. + MountPath : The path within the container where the volume should be mounted. Must not contain colon (:). + Name : The name of the volume mount. + [ReadOnly ]: The flag indicating whether the volume mount is read-only. +.Link +https://learn.microsoft.com/powershell/module/az.ContainerInstance/New-AzContainerInstanceNoDefaultObject +#> +function New-AzContainerInstanceNoDefaultObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Container])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.String] + # The user-provided name of the container instance. + ${Name}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.String[]] + # The commands to execute within the container instance in exec form. + ${Command}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfigMapKeyValuePairs] + # The key value pairs dictionary in the config map to set in the container instance. + # To construct, see NOTES section for CONFIGMAPKEYVALUEPAIR properties and create a hash table. + ${ConfigMapKeyValuePair}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariable[]] + # The environment variables to set in the container instance. + # To construct, see NOTES section for ENVIRONMENTVARIABLE properties and create a hash table. + ${EnvironmentVariable}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.String] + # The name of the image used to create the container instance. + ${Image}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.Double] + # The CPU limit of this container instance. + ${LimitCpu}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.Double] + # The memory limit in GB of this container instance. + ${LimitMemoryInGb}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.Int32] + # The count of the GPU resource. + ${LimitsGpuCount}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku])] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.String] + # The SKU of the GPU resource. + ${LimitsGpuSku}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.String[]] + # The commands to execute within the container. + ${LivenessProbeExecCommand}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.Int32] + # The failure threshold. + ${LivenessProbeFailureThreshold}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader[]] + # The HTTP headers for liveness probe. + # To construct, see NOTES section for LIVENESSPROBEHTTPGETHTTPHEADER properties and create a hash table. + ${LivenessProbeHttpGetHttpHeader}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.String] + # The path to probe. + ${LivenessProbeHttpGetPath}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.Int32] + # The port number to probe. + ${LivenessProbeHttpGetPort}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme])] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.String] + # The scheme. + ${LivenessProbeHttpGetScheme}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.Int32] + # The initial delay seconds. + ${LivenessProbeInitialDelaySecond}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.Int32] + # The period seconds. + ${LivenessProbePeriodSecond}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.Int32] + # The success threshold. + ${LivenessProbeSuccessThreshold}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.Int32] + # The timeout seconds. + ${LivenessProbeTimeoutSecond}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPort[]] + # The exposed ports on the container instance. + # To construct, see NOTES section for PORT properties and create a hash table. + ${Port}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.String[]] + # The commands to execute within the container. + ${ReadinessProbeExecCommand}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.Int32] + # The failure threshold. + ${ReadinessProbeFailureThreshold}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader[]] + # The HTTP headers for readiness probe. + # To construct, see NOTES section for READINESSPROBEHTTPGETHTTPHEADER properties and create a hash table. + ${ReadinessProbeHttpGetHttpHeader}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.String] + # The path to probe. + ${ReadinessProbeHttpGetPath}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.Int32] + # The port number to probe. + ${ReadinessProbeHttpGetPort}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme])] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.String] + # The scheme. + ${ReadinessProbeHttpGetScheme}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.Int32] + # The initial delay seconds. + ${ReadinessProbeInitialDelaySecond}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.Int32] + # The period seconds. + ${ReadinessProbePeriodSecond}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.Int32] + # The success threshold. + ${ReadinessProbeSuccessThreshold}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.Int32] + # The timeout seconds. + ${ReadinessProbeTimeoutSecond}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.Double] + # The CPU request of this container instance. + ${RequestCpu}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.Double] + # The memory request in GB of this container instance. + ${RequestMemoryInGb}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.Int32] + # The count of the GPU resource. + ${RequestsGpuCount}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku])] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.String] + # The SKU of the GPU resource. + ${RequestsGpuSku}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMount[]] + # The volume mounts available to the container instance. + # To construct, see NOTES section for VOLUMEMOUNT properties and create a hash table. + ${VolumeMount} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + __AllParameterSets = 'Az.ContainerInstance.custom\New-AzContainerInstanceNoDefaultObject'; + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/src/ContainerInstance/ContainerInstance.Autorest/exports/New-AzContainerInstanceObject.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/exports/New-AzContainerInstanceObject.ps1 index 9fbcad397763..6ef591213111 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/exports/New-AzContainerInstanceObject.ps1 +++ b/src/ContainerInstance/ContainerInstance.Autorest/exports/New-AzContainerInstanceObject.ps1 @@ -28,12 +28,15 @@ $container = New-AzContainerInstanceObject -Name test-container -Image alpine New-AzContainerGroup -ResourceGroupName testrg-rg -Name test-cg -Location eastus -Container $container .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.Container +Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Container .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. +CONFIGMAPKEYVALUEPAIR : The key value pairs dictionary in the config map to set in the container instance. + [(Any) ]: This indicates any property can be added to this object. + ENVIRONMENTVARIABLE : The environment variables to set in the container instance. Name : The name of the environment variable. [SecureValue ]: The value of the secure environment variable. @@ -59,7 +62,7 @@ VOLUMEMOUNT : The volume mounts available to the container insta https://learn.microsoft.com/powershell/module/az.ContainerInstance/new-AzContainerInstanceObject #> function New-AzContainerInstanceObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.Container])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Container])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -82,7 +85,14 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEnvironmentVariable[]] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfigMapKeyValuePairs] + # The key value pairs dictionary in the config map to set in the container instance. + # To construct, see NOTES section for CONFIGMAPKEYVALUEPAIR properties and create a hash table. + ${ConfigMapKeyValuePair}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariable[]] # The environment variables to set in the container instance. # To construct, see NOTES section for ENVIRONMENTVARIABLE properties and create a hash table. ${EnvironmentVariable}, @@ -126,7 +136,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IHttpHeader[]] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader[]] # The HTTP headers for liveness probe. # To construct, see NOTES section for LIVENESSPROBEHTTPGETHTTPHEADER properties and create a hash table. ${LivenessProbeHttpGetHttpHeader}, @@ -176,7 +186,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPort[]] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPort[]] # The exposed ports on the container instance. # To construct, see NOTES section for PORT properties and create a hash table. ${Port}, @@ -195,7 +205,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IHttpHeader[]] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader[]] # The HTTP headers for readiness probe. # To construct, see NOTES section for READINESSPROBEHTTPGETHTTPHEADER properties and create a hash table. ${ReadinessProbeHttpGetHttpHeader}, @@ -270,7 +280,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeMount[]] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMount[]] # The volume mounts available to the container instance. # To construct, see NOTES section for VOLUMEMOUNT properties and create a hash table. ${VolumeMount} diff --git a/src/ContainerInstance/ContainerInstance.Autorest/exports/New-AzContainerInstancePortObject.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/exports/New-AzContainerInstancePortObject.ps1 index 1fff5118cf90..75dab32bff80 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/exports/New-AzContainerInstancePortObject.ps1 +++ b/src/ContainerInstance/ContainerInstance.Autorest/exports/New-AzContainerInstancePortObject.ps1 @@ -23,12 +23,12 @@ Create a in-memory object for ContainerPort New-AzContainerInstancePortObject -Port 8000 -Protocol TCP .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerPort +Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerPort .Link https://learn.microsoft.com/powershell/module/az.ContainerInstance/new-AzContainerInstancePortObject #> function New-AzContainerInstancePortObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerPort])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerPort])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] diff --git a/src/ContainerInstance/ContainerInstance.Autorest/exports/New-AzContainerInstanceVolumeMountObject.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/exports/New-AzContainerInstanceVolumeMountObject.ps1 index 5399d53d73d0..ef442c5907b7 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/exports/New-AzContainerInstanceVolumeMountObject.ps1 +++ b/src/ContainerInstance/ContainerInstance.Autorest/exports/New-AzContainerInstanceVolumeMountObject.ps1 @@ -23,12 +23,12 @@ Create a in-memory object for VolumeMount New-AzContainerInstanceVolumeMountObject -Name "mnt" -MountPath "/mnt/azfile" -ReadOnly $true .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.VolumeMount +Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.VolumeMount .Link https://learn.microsoft.com/powershell/module/az.ContainerInstance/new-AzContainerInstanceVolumeMountObject #> function New-AzContainerInstanceVolumeMountObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.VolumeMount])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.VolumeMount])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] diff --git a/src/ContainerInstance/ContainerInstance.Autorest/exports/ProxyCmdletDefinitions.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/exports/ProxyCmdletDefinitions.ps1 index d1e7c6bb7bdb..dc30b250620f 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/src/ContainerInstance/ContainerInstance.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -24,12 +24,12 @@ $response = Add-AzContainerInstanceOutput -GroupName test-cg -Name test-containe $response .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerAttachResponse +Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerAttachResponse .Link https://learn.microsoft.com/powershell/module/az.containerinstance/add-azcontainerinstanceoutput #> function Add-AzContainerInstanceOutput { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerAttachResponse])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerAttachResponse])] [CmdletBinding(DefaultParameterSetName='Attach', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -50,14 +50,15 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # Subscription credentials which uniquely identify Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter()] @@ -215,7 +216,7 @@ Update-AzContainerGroup -Name test-cg1 -ResourceGroupName test-rg -Tag @{"test"= .Inputs Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup +Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup .Notes COMPLEX PARAMETER PROPERTIES @@ -223,18 +224,20 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ContainerGroupName ]: The name of the container group. + [ContainerGroupProfileName ]: The name of the container group profile. [ContainerName ]: The name of the container instance. [Id ]: Resource identity path - [Location ]: The identifier for the physical azure location. - [ResourceGroupName ]: The name of the resource group. + [Location ]: The name of the Azure region. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [RevisionNumber ]: The revision number of the container group profile. [SubnetName ]: The name of the subnet. - [SubscriptionId ]: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkName ]: The name of the virtual network. .Link https://learn.microsoft.com/powershell/module/az.containerinstance/get-azcontainergroup #> function Get-AzContainerGroup { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -249,6 +252,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Get')] @@ -257,8 +261,8 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] - # Subscription credentials which uniquely identify Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] @@ -416,26 +420,26 @@ Get the list of cached images on specific OS type for a subscription in a region Get-AzContainerInstanceCachedImage -Location eastus .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICachedImages +Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICachedImages .Link https://learn.microsoft.com/powershell/module/az.containerinstance/get-azcontainerinstancecachedimage #> function Get-AzContainerInstanceCachedImage { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICachedImages])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICachedImages])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [System.String] - # The identifier for the physical azure location. + # The name of the Azure region. ${Location}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] - # Subscription credentials which uniquely identify Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter()] @@ -583,26 +587,26 @@ Get the list of CPU/memory/GPU capabilities of a region. Get-AzContainerInstanceCapability -Location eastus .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilities +Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilities .Link https://learn.microsoft.com/powershell/module/az.containerinstance/get-azcontainerinstancecapability #> function Get-AzContainerInstanceCapability { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilities])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilities])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [System.String] - # The identifier for the physical azure location. + # The name of the Azure region. ${Location}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] - # Subscription credentials which uniquely identify Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter()] @@ -762,12 +766,14 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ContainerGroupName ]: The name of the container group. + [ContainerGroupProfileName ]: The name of the container group profile. [ContainerName ]: The name of the container instance. [Id ]: Resource identity path - [Location ]: The identifier for the physical azure location. - [ResourceGroupName ]: The name of the resource group. + [Location ]: The name of the Azure region. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [RevisionNumber ]: The revision number of the container group profile. [SubnetName ]: The name of the subnet. - [SubscriptionId ]: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkName ]: The name of the virtual network. .Link https://learn.microsoft.com/powershell/module/az.containerinstance/get-azcontainerinstancecontainergroupoutboundnetworkdependencyendpoint @@ -787,14 +793,15 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Get')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] - # Subscription credentials which uniquely identify Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] @@ -943,63 +950,44 @@ end { <# .Synopsis -Get the logs for a specified container instance in a specified resource group and container group. +Get a list of all the revisions of the specified container group profile in the given subscription and resource group. +This operation returns properties of each revision of the specified container group profile including containers, image registry credentials, restart policy, IP address type, OS type volumes, revision number, etc. .Description -Get the logs for a specified container instance in a specified resource group and container group. +Get a list of all the revisions of the specified container group profile in the given subscription and resource group. +This operation returns properties of each revision of the specified container group profile including containers, image registry credentials, restart policy, IP address type, OS type volumes, revision number, etc. .Example -Get-AzContainerInstanceLog -ContainerGroupName test-cg -ContainerName test-container -ResourceGroupName test-rg -.Example -Get-AzContainerInstanceLog -ContainerGroupName test-cg -ContainerName test-container -ResourceGroupName test-rg -Tail 2 +Get-AzContainerInstanceContainerGroupProfileRevision -ContainerGroupProfileName test-cgp -ResourceGroupName test-rg .Outputs -System.String +Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile .Link -https://learn.microsoft.com/powershell/module/az.containerinstance/get-azcontainerinstancelog +https://learn.microsoft.com/powershell/module/az.containerinstance/get-azcontainerinstancecontainergroupprofilerevision #> -function Get-AzContainerInstanceLog { -[OutputType([System.String])] +function Get-AzContainerInstanceContainerGroupProfileRevision { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [System.String] - # The name of the container group. - ${ContainerGroupName}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] - [System.String] - # The name of the container instance. - ${ContainerName}, + # The name of the container group profile. + ${ContainerGroupProfileName}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] - # Subscription credentials which uniquely identify Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Query')] - [System.Int32] - # The number of lines to show from the tail of the container instance log. - # If not provided, all available logs are shown up to 4mb. - ${Tail}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Query')] - [System.Management.Automation.SwitchParameter] - # If true, adds a timestamp at the beginning of every line of log output. - # If not provided, defaults to false. - ${Timestamp}, - [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -1075,7 +1063,7 @@ begin { } $mapping = @{ - List = 'Az.ContainerInstance.private\Get-AzContainerInstanceLog_List'; + List = 'Az.ContainerInstance.private\Get-AzContainerInstanceContainerGroupProfileRevision_List'; } if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $testPlayback = $false @@ -1138,35 +1126,89 @@ end { <# .Synopsis -Get the usage for a subscription +Gets the properties of the specified container group profile in the specified subscription and resource group. +The operation returns the properties of container group profile including containers, image registry credentials, restart policy, IP address type, OS type, volumes, current revision number, etc. .Description -Get the usage for a subscription +Gets the properties of the specified container group profile in the specified subscription and resource group. +The operation returns the properties of container group profile including containers, image registry credentials, restart policy, IP address type, OS type, volumes, current revision number, etc. .Example -Get-AzContainerInstanceUsage -Location eastus +Get-AzContainerInstanceContainerGroupProfile +.Example +Get-AzContainerInstanceContainerGroupProfile -ResourceGroupName test-rg +.Example +Get-AzContainerInstanceContainerGroupProfile -Name test-cgp1 -ResourceGroupName test-rg | Format-List +.Example +Get-AzContainerInstanceContainerGroupProfile -Name test-cgp -ResourceGroupName test-rg -RevisionNumber 1 | Format-List +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsage +Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [ContainerGroupName ]: The name of the container group. + [ContainerGroupProfileName ]: The name of the container group profile. + [ContainerName ]: The name of the container instance. + [Id ]: Resource identity path + [Location ]: The name of the Azure region. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [RevisionNumber ]: The revision number of the container group profile. + [SubnetName ]: The name of the subnet. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VirtualNetworkName ]: The name of the virtual network. .Link -https://learn.microsoft.com/powershell/module/az.containerinstance/get-azcontainerinstanceusage +https://learn.microsoft.com/powershell/module/az.containerinstance/get-azcontainerinstancecontainergroupprofile #> -function Get-AzContainerInstanceUsage { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsage])] +function Get-AzContainerInstanceContainerGroupProfile { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( - [Parameter(Mandatory)] + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='Get1', Mandatory)] + [Alias('ContainerGroupProfileName')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [System.String] - # The identifier for the physical azure location. - ${Location}, + # The name of the container group profile. + ${Name}, - [Parameter()] + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='Get1', Mandatory)] + [Parameter(ParameterSetName='List1', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='Get1')] + [Parameter(ParameterSetName='List')] + [Parameter(ParameterSetName='List1')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] - # Subscription credentials which uniquely identify Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, + [Parameter(ParameterSetName='Get1', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] + [System.String] + # The revision number of the container group profile. + ${RevisionNumber}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='GetViaIdentity1', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -1242,9 +1284,14 @@ begin { } $mapping = @{ - List = 'Az.ContainerInstance.private\Get-AzContainerInstanceUsage_List'; - } - if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + Get = 'Az.ContainerInstance.private\Get-AzContainerInstanceContainerGroupProfile_Get'; + Get1 = 'Az.ContainerInstance.private\Get-AzContainerInstanceContainerGroupProfile_Get1'; + GetViaIdentity = 'Az.ContainerInstance.private\Get-AzContainerInstanceContainerGroupProfile_GetViaIdentity'; + GetViaIdentity1 = 'Az.ContainerInstance.private\Get-AzContainerInstanceContainerGroupProfile_GetViaIdentity1'; + List = 'Az.ContainerInstance.private\Get-AzContainerInstanceContainerGroupProfile_List'; + List1 = 'Az.ContainerInstance.private\Get-AzContainerInstanceContainerGroupProfile_List1'; + } + if (('Get', 'Get1', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $testPlayback = $false $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { @@ -1305,68 +1352,63 @@ end { <# .Synopsis -Delete the specified container group in the specified subscription and resource group. -The operation does not delete other resources provided by the user, such as volumes. +Get the logs for a specified container instance in a specified resource group and container group. .Description -Delete the specified container group in the specified subscription and resource group. -The operation does not delete other resources provided by the user, such as volumes. +Get the logs for a specified container instance in a specified resource group and container group. .Example -Remove-AzContainerGroup -Name test-cg -ResourceGroupName test-rg +Get-AzContainerInstanceLog -ContainerGroupName test-cg -ContainerName test-container -ResourceGroupName test-rg .Example -Get-AzContainerGroup -Name test-cg -ResourceGroupName bez-rg | Remove-AzContainerGroup +Get-AzContainerInstanceLog -ContainerGroupName test-cg -ContainerName test-container -ResourceGroupName test-rg -Tail 2 -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -INPUTOBJECT : Identity Parameter - [ContainerGroupName ]: The name of the container group. - [ContainerName ]: The name of the container instance. - [Id ]: Resource identity path - [Location ]: The identifier for the physical azure location. - [ResourceGroupName ]: The name of the resource group. - [SubnetName ]: The name of the subnet. - [SubscriptionId ]: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - [VirtualNetworkName ]: The name of the virtual network. +System.String .Link -https://learn.microsoft.com/powershell/module/az.containerinstance/remove-azcontainergroup +https://learn.microsoft.com/powershell/module/az.containerinstance/get-azcontainerinstancelog #> -function Remove-AzContainerGroup { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup])] -[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function Get-AzContainerInstanceLog { +[OutputType([System.String])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( - [Parameter(ParameterSetName='Delete', Mandatory)] - [Alias('ContainerGroupName')] + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [System.String] # The name of the container group. - ${Name}, + ${ContainerGroupName}, - [Parameter(ParameterSetName='Delete', Mandatory)] + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] + [System.String] + # The name of the container instance. + ${ContainerName}, + + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, - [Parameter(ParameterSetName='Delete')] + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # Subscription credentials which uniquely identify Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + [System.String[]] + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, - [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity] - # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. - ${InputObject}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Query')] + [System.Int32] + # The number of lines to show from the tail of the container instance log. + # If not provided, all available logs are shown up to 4mb. + ${Tail}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Query')] + [System.Management.Automation.SwitchParameter] + # If true, adds a timestamp at the beginning of every line of log output. + # If not provided, defaults to false. + ${Timestamp}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] @@ -1377,12 +1419,6 @@ param( # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] [System.Management.Automation.SwitchParameter] @@ -1403,18 +1439,6 @@ param( # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Returns true when the command succeeds - ${PassThru}, - [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] [System.Uri] @@ -1461,10 +1485,9 @@ begin { } $mapping = @{ - Delete = 'Az.ContainerInstance.private\Remove-AzContainerGroup_Delete'; - DeleteViaIdentity = 'Az.ContainerInstance.private\Remove-AzContainerGroup_DeleteViaIdentity'; + List = 'Az.ContainerInstance.private\Get-AzContainerInstanceLog_List'; } - if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $testPlayback = $false $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { @@ -1525,72 +1548,35 @@ end { <# .Synopsis -Delete container group virtual network association links. -The operation does not delete other resources provided by the user. +Get the usage for a subscription .Description -Delete container group virtual network association links. -The operation does not delete other resources provided by the user. +Get the usage for a subscription .Example -Remove-AzContainerInstanceSubnetServiceAssociationLink -ResourceGroupName testRg -SubnetName testSubnetName -VirtualNetworkName testVnetName +Get-AzContainerInstanceUsage -Location eastus -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity .Outputs -System.Boolean -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -INPUTOBJECT : Identity Parameter - [ContainerGroupName ]: The name of the container group. - [ContainerName ]: The name of the container instance. - [Id ]: Resource identity path - [Location ]: The identifier for the physical azure location. - [ResourceGroupName ]: The name of the resource group. - [SubnetName ]: The name of the subnet. - [SubscriptionId ]: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - [VirtualNetworkName ]: The name of the virtual network. +Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsage .Link -https://learn.microsoft.com/powershell/module/az.containerinstance/remove-azcontainerinstancesubnetserviceassociationlink +https://learn.microsoft.com/powershell/module/az.containerinstance/get-azcontainerinstanceusage #> -function Remove-AzContainerInstanceSubnetServiceAssociationLink { -[OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function Get-AzContainerInstanceUsage { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsage])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( - [Parameter(ParameterSetName='Delete', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] - [System.String] - # The name of the resource group. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='Delete', Mandatory)] + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [System.String] - # The name of the subnet. - ${SubnetName}, + # The name of the Azure region. + ${Location}, - [Parameter(ParameterSetName='Delete')] + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # Subscription credentials which uniquely identify Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + [System.String[]] + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, - [Parameter(ParameterSetName='Delete', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] - [System.String] - # The name of the virtual network. - ${VirtualNetworkName}, - - [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity] - # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. - ${InputObject}, - [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -1600,12 +1586,6 @@ param( # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] [System.Management.Automation.SwitchParameter] @@ -1626,10 +1606,1150 @@ param( # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, - [Parameter()] + [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + List = 'Az.ContainerInstance.private\Get-AzContainerInstanceUsage_List'; + } + if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Create or update container group profiles with specified configurations. +.Description +Create or update container group profiles with specified configurations. +.Example +$port1 = New-AzContainerInstancePortObject -Port 8000 -Protocol TCP +$port2 = New-AzContainerInstancePortObject -Port 8001 -Protocol TCP +$container = New-AzContainerInstanceObject -Name test-container -Image nginx -RequestCpu 1 -RequestMemoryInGb 1.5 -Port @($port1, $port2) +$containerGroupProfile = New-AzContainerInstanceContainerGroupProfile -ResourceGroupName test-rg -Name test-cgp -Location eastus -Container $container -OsType Linux -RestartPolicy "Never" -IpAddressType Public +.Example +$pwd = ConvertTo-SecureString -String "****" -AsPlainText -Force +$env1 = New-AzContainerInstanceEnvironmentVariableObject -Name "env1" -Value "value1" +$env2 = New-AzContainerInstanceEnvironmentVariableObject -Name "env2" -SecureValue $pwd +$container = New-AzContainerInstanceObject -Name test-container -Image alpine -Command "/bin/sh -c myscript.sh" -EnvironmentVariable @($env1, $env2) -RequestCpu 1 -RequestMemoryInGb 1.5 +$containerGroupProfile = New-AzContainerInstanceContainerGroupProfile -ResourceGroupName test-rg -Name test-cgp -Location eastus -Container $container -OsType Linux +.Example +$pwd = ConvertTo-SecureString -String "****" -AsPlainText -Force +$container = New-AzContainerInstanceObject -Name test-container -Image myacr.azurecr.io/nginx:latest -RequestCpu 1 -RequestMemoryInGb 1.5 +$imageRegistryCredential = New-AzContainerGroupImageRegistryCredentialObject -Server "myacr.azurecr.io" -Username "username" -Password $pwd +$containerGroupProfile = New-AzContainerInstanceContainerGroupProfile -ResourceGroupName test-rg -Name test-cgp -Location eastus -Container $container -ImageRegistryCredential $imageRegistryCredential -OsType Linux +.Example +$container = New-AzContainerInstanceObject -Name test-container -Image nginx -RequestCpu 1 -RequestMemoryInGb 1.5 +$containerGroupProfile = New-AzContainerInstanceContainerGroupProfile -ResourceGroupName test-rg -Name test-cgp -Location eastus -Container $container -OsType Linux -RestartPolicy Never -Priority Spot + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +CONTAINER : The containers within the container group. + Name : The user-provided name of the container instance. + [CapabilityAdd ]: The capabilities to add to the container. + [CapabilityDrop ]: The capabilities to drop from the container. + [Command ]: The commands to execute within the container instance in exec form. + [ConfigMapKeyValuePair ]: The key value pairs dictionary in the config map. + [(Any) ]: This indicates any property can be added to this object. + [EnvironmentVariable ]: The environment variables to set in the container instance. + Name : The name of the environment variable. + [SecureValue ]: The value of the secure environment variable. + [Value ]: The value of the environment variable. + [Image ]: The name of the image used to create the container instance. + [LimitCpu ]: The CPU limit of this container instance. + [LimitMemoryInGb ]: The memory limit in GB of this container instance. + [LimitsGpuCount ]: The count of the GPU resource. + [LimitsGpuSku ]: The SKU of the GPU resource. + [LivenessProbeExecCommand ]: The commands to execute within the container. + [LivenessProbeFailureThreshold ]: The failure threshold. + [LivenessProbeHttpGetHttpHeader ]: The HTTP headers. + [Name ]: The header name. + [Value ]: The header value. + [LivenessProbeHttpGetPath ]: The path to probe. + [LivenessProbeHttpGetPort ]: The port number to probe. + [LivenessProbeHttpGetScheme ]: The scheme. + [LivenessProbeInitialDelaySecond ]: The initial delay seconds. + [LivenessProbePeriodSecond ]: The period seconds. + [LivenessProbeSuccessThreshold ]: The success threshold. + [LivenessProbeTimeoutSecond ]: The timeout seconds. + [Port ]: The exposed ports on the container instance. + Port : The port number exposed within the container group. + [Protocol ]: The protocol associated with the port. + [ReadinessProbeExecCommand ]: The commands to execute within the container. + [ReadinessProbeFailureThreshold ]: The failure threshold. + [ReadinessProbeHttpGetHttpHeader ]: The HTTP headers. + [ReadinessProbeHttpGetPath ]: The path to probe. + [ReadinessProbeHttpGetPort ]: The port number to probe. + [ReadinessProbeHttpGetScheme ]: The scheme. + [ReadinessProbeInitialDelaySecond ]: The initial delay seconds. + [ReadinessProbePeriodSecond ]: The period seconds. + [ReadinessProbeSuccessThreshold ]: The success threshold. + [ReadinessProbeTimeoutSecond ]: The timeout seconds. + [RequestCpu ]: The CPU request of this container instance. + [RequestMemoryInGb ]: The memory request in GB of this container instance. + [RequestsGpuCount ]: The count of the GPU resource. + [RequestsGpuSku ]: The SKU of the GPU resource. + [SecurityContextAllowPrivilegeEscalation ]: A boolean value indicating whether the init process can elevate its privileges + [SecurityContextPrivileged ]: The flag to determine if the container permissions is elevated to Privileged. + [SecurityContextRunAsGroup ]: Sets the User GID for the container. + [SecurityContextRunAsUser ]: Sets the User UID for the container. + [SecurityContextSeccompProfile ]: a base64 encoded string containing the contents of the JSON in the seccomp profile + [VolumeMount ]: The volume mounts available to the container instance. + MountPath : The path within the container where the volume should be mounted. Must not contain colon (:). + Name : The name of the volume mount. + [ReadOnly ]: The flag indicating whether the volume mount is read-only. + +EXTENSION : extensions used by virtual kubelet + Name : Name of the extension. + [ExtensionType ]: Type of extension to be added. + [ProtectedSetting ]: Protected settings for the extension. + [Setting ]: Settings for the extension. + [Version ]: Version of the extension being used. + +IMAGEREGISTRYCREDENTIAL : The image registry credentials by which the container group is created from. + Server : The Docker image registry server without a protocol such as "http" and "https". + [Identity ]: The identity for the private registry. + [IdentityUrl ]: The identity URL for the private registry. + [Password ]: The password for the private registry. + [Username ]: The username for the private registry. + +INITCONTAINER : The init containers for a container group. + Name : The name for the init container. + [CapabilityAdd ]: The capabilities to add to the container. + [CapabilityDrop ]: The capabilities to drop from the container. + [Command ]: The command to execute within the init container in exec form. + [EnvironmentVariable ]: The environment variables to set in the init container. + Name : The name of the environment variable. + [SecureValue ]: The value of the secure environment variable. + [Value ]: The value of the environment variable. + [Image ]: The image of the init container. + [SecurityContextAllowPrivilegeEscalation ]: A boolean value indicating whether the init process can elevate its privileges + [SecurityContextPrivileged ]: The flag to determine if the container permissions is elevated to Privileged. + [SecurityContextRunAsGroup ]: Sets the User GID for the container. + [SecurityContextRunAsUser ]: Sets the User UID for the container. + [SecurityContextSeccompProfile ]: a base64 encoded string containing the contents of the JSON in the seccomp profile + [VolumeMount ]: The volume mounts available to the init container. + MountPath : The path within the container where the volume should be mounted. Must not contain colon (:). + Name : The name of the volume mount. + [ReadOnly ]: The flag indicating whether the volume mount is read-only. + +IPADDRESSPORT : The list of ports exposed on the container group. + Port1 : The port number. + [Protocol ]: The protocol associated with the port. + +VOLUME : The list of volumes that can be mounted by containers in this container group. + Name : The name of the volume. + [AzureFileReadOnly ]: The flag indicating whether the Azure File shared mounted as a volume is read-only. + [AzureFileShareName ]: The name of the Azure File share to be mounted as a volume. + [AzureFileStorageAccountKey ]: The storage account access key used to access the Azure File share. + [AzureFileStorageAccountName ]: The name of the storage account that contains the Azure File share. + [EmptyDir ]: The empty directory volume. + [(Any) ]: This indicates any property can be added to this object. + [GitRepoDirectory ]: Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + [GitRepoRepository ]: Repository URL + [GitRepoRevision ]: Commit hash for the specified revision. + [Secret ]: The secret volume. + [(Any) ]: This indicates any property can be added to this object. +.Link +https://learn.microsoft.com/powershell/module/az.containerinstance/new-azcontainerinstancecontainergroupprofile +#> +function New-AzContainerInstanceContainerGroupProfile { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Alias('ContainerGroupProfileName')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] + [System.String] + # The name of the container group profile. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter(Mandatory)] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainer[]] + # The containers within the container group. + # To construct, see NOTES section for CONTAINER properties and create a hash table. + ${Container}, + + [Parameter(Mandatory)] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes])] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes] + # The operating system type required by the containers in the container group. + ${OSType}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.String] + # The base64 encoded confidential compute enforcement policy + ${ConfidentialComputePropertyCcePolicy}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.String] + # The keyvault managed identity. + ${EncryptionPropertyIdentity}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.String] + # The encryption key name. + ${EncryptionPropertyKeyName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.String] + # The encryption key version. + ${EncryptionPropertyKeyVersion}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.String] + # The keyvault base url. + ${EncryptionPropertyVaultBaseUrl}, + + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpec[]] + # extensions used by virtual kubelet + # To construct, see NOTES section for EXTENSION properties and create a hash table. + ${Extension}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy])] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy] + # The value representing the security enum. + # The 'Unsecure' value is the default value if not selected and means the object's domain name label is not secured against subdomain takeover. + # The 'TenantReuse' value is the default value if selected and means the object's domain name label can be reused within the same tenant. + # The 'SubscriptionReuse' value means the object's domain name label can be reused within the same subscription. + # The 'ResourceGroupReuse' value means the object's domain name label can be reused within the same resource group. + # The 'NoReuse' value means the object's domain name label cannot be reused within the same resource group, subscription, or tenant. + ${IPAddressAutoGeneratedDomainNameLabelScope}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.String] + # The Dns name label for the IP. + ${IPAddressDnsNameLabel}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.String] + # The IP exposed to the public internet. + ${IPAddressIP}, + + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPort[]] + # The list of ports exposed on the container group. + # To construct, see NOTES section for IPADDRESSPORT properties and create a hash table. + ${IPAddressPort}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType])] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType] + # Specifies if the IP is exposed to the public internet or private VNET. + ${IPAddressType}, + + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredential[]] + # The image registry credentials by which the container group is created from. + # To construct, see NOTES section for IMAGEREGISTRYCREDENTIAL properties and create a hash table. + ${ImageRegistryCredential}, + + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinition[]] + # The init containers for a container group. + # To construct, see NOTES section for INITCONTAINER properties and create a hash table. + ${InitContainer}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.String] + # The resource location. + ${Location}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType])] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType] + # The log type to be used. + ${LogAnalyticLogType}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsMetadata]))] + [System.Collections.Hashtable] + # Metadata for log analytics. + ${LogAnalyticMetadata}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.String] + # The workspace id for log analytics + ${LogAnalyticWorkspaceId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.String] + # The workspace key for log analytics + ${LogAnalyticWorkspaceKey}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.String] + # The workspace resource id for log analytics + ${LogAnalyticWorkspaceResourceId}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority])] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority] + # The priority of the container group. + ${Priority}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy])] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy] + # Restart policy for all containers within the container group. + # - `Always` Always restart- `OnFailure` Restart on failure- `Never` Never restart + ${RestartPolicy}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku])] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku] + # The SKU for a container group. + ${Sku}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceTags]))] + [System.Collections.Hashtable] + # The resource tags. + ${Tag}, + + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolume[]] + # The list of volumes that can be mounted by containers in this container group. + # To construct, see NOTES section for VOLUME properties and create a hash table. + ${Volume}, + + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.String[]] + # The zones for the container group. + ${Zone}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + CreateExpanded = 'Az.ContainerInstance.private\New-AzContainerInstanceContainerGroupProfile_CreateExpanded'; + } + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Delete the specified container group in the specified subscription and resource group. +The operation does not delete other resources provided by the user, such as volumes. +.Description +Delete the specified container group in the specified subscription and resource group. +The operation does not delete other resources provided by the user, such as volumes. +.Example +Remove-AzContainerGroup -Name test-cg -ResourceGroupName test-rg +.Example +Get-AzContainerGroup -Name test-cg -ResourceGroupName bez-rg | Remove-AzContainerGroup + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [ContainerGroupName ]: The name of the container group. + [ContainerGroupProfileName ]: The name of the container group profile. + [ContainerName ]: The name of the container instance. + [Id ]: Resource identity path + [Location ]: The name of the Azure region. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [RevisionNumber ]: The revision number of the container group profile. + [SubnetName ]: The name of the subnet. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VirtualNetworkName ]: The name of the virtual network. +.Link +https://learn.microsoft.com/powershell/module/az.containerinstance/remove-azcontainergroup +#> +function Remove-AzContainerGroup { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Delete', Mandatory)] + [Alias('ContainerGroupName')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] + [System.String] + # The name of the container group. + ${Name}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Delete')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + Delete = 'Az.ContainerInstance.private\Remove-AzContainerGroup_Delete'; + DeleteViaIdentity = 'Az.ContainerInstance.private\Remove-AzContainerGroup_DeleteViaIdentity'; + } + if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Delete the specified container group profile in the specified subscription and resource group. +The operation does not delete other resources provided by the user, such as volumes. +.Description +Delete the specified container group profile in the specified subscription and resource group. +The operation does not delete other resources provided by the user, such as volumes. +.Example +Remove-AzContainerInstanceContainerGroupProfile -Name test-cgp -ResourceGroupName test-rg +.Example +Get-AzContainerInstanceContainerGroupProfile -Name test-cgp -ResourceGroupName test-rg | Remove-AzContainerInstanceContainerGroupProfile + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [ContainerGroupName ]: The name of the container group. + [ContainerGroupProfileName ]: The name of the container group profile. + [ContainerName ]: The name of the container instance. + [Id ]: Resource identity path + [Location ]: The name of the Azure region. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [RevisionNumber ]: The revision number of the container group profile. + [SubnetName ]: The name of the subnet. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VirtualNetworkName ]: The name of the virtual network. +.Link +https://learn.microsoft.com/powershell/module/az.containerinstance/remove-azcontainerinstancecontainergroupprofile +#> +function Remove-AzContainerInstanceContainerGroupProfile { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Delete', Mandatory)] + [Alias('ContainerGroupProfileName')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] + [System.String] + # The name of the container group profile. + ${Name}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Delete')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + Delete = 'Az.ContainerInstance.private\Remove-AzContainerInstanceContainerGroupProfile_Delete'; + DeleteViaIdentity = 'Az.ContainerInstance.private\Remove-AzContainerInstanceContainerGroupProfile_DeleteViaIdentity'; + } + if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Delete container group virtual network association links. +The operation does not delete other resources provided by the user. +.Description +Delete container group virtual network association links. +The operation does not delete other resources provided by the user. +.Example +Remove-AzContainerInstanceSubnetServiceAssociationLink -ResourceGroupName testRg -SubnetName testSubnetName -VirtualNetworkName testVnetName + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [ContainerGroupName ]: The name of the container group. + [ContainerGroupProfileName ]: The name of the container group profile. + [ContainerName ]: The name of the container instance. + [Id ]: Resource identity path + [Location ]: The name of the Azure region. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [RevisionNumber ]: The revision number of the container group profile. + [SubnetName ]: The name of the subnet. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VirtualNetworkName ]: The name of the virtual network. +.Link +https://learn.microsoft.com/powershell/module/az.containerinstance/remove-azcontainerinstancesubnetserviceassociationlink +#> +function Remove-AzContainerInstanceSubnetServiceAssociationLink { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] + [System.String] + # The name of the subnet. + ${SubnetName}, + + [Parameter(ParameterSetName='Delete')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] + [System.String] + # The name of the virtual network. + ${VirtualNetworkName}, + + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously ${NoWait}, [Parameter()] @@ -1769,12 +2889,14 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ContainerGroupName ]: The name of the container group. + [ContainerGroupProfileName ]: The name of the container group profile. [ContainerName ]: The name of the container instance. [Id ]: Resource identity path - [Location ]: The identifier for the physical azure location. - [ResourceGroupName ]: The name of the resource group. + [Location ]: The name of the Azure region. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [RevisionNumber ]: The revision number of the container group profile. [SubnetName ]: The name of the subnet. - [SubscriptionId ]: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkName ]: The name of the virtual network. .Link https://learn.microsoft.com/powershell/module/az.containerinstance/restart-azcontainergroup @@ -1794,14 +2916,15 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Restart')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # Subscription credentials which uniquely identify Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='RestartViaIdentity', Mandatory, ValueFromPipeline)] @@ -1989,12 +3112,14 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ContainerGroupName ]: The name of the container group. + [ContainerGroupProfileName ]: The name of the container group profile. [ContainerName ]: The name of the container instance. [Id ]: Resource identity path - [Location ]: The identifier for the physical azure location. - [ResourceGroupName ]: The name of the resource group. + [Location ]: The name of the Azure region. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [RevisionNumber ]: The revision number of the container group profile. [SubnetName ]: The name of the subnet. - [SubscriptionId ]: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkName ]: The name of the virtual network. .Link https://learn.microsoft.com/powershell/module/az.containerinstance/start-azcontainergroup @@ -2014,14 +3139,15 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Start')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # Subscription credentials which uniquely identify Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='StartViaIdentity', Mandatory, ValueFromPipeline)] @@ -2066,12 +3192,223 @@ param( # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + Start = 'Az.ContainerInstance.private\Start-AzContainerGroup_Start'; + StartViaIdentity = 'Az.ContainerInstance.private\Start-AzContainerGroup_StartViaIdentity'; + } + if (('Start') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Stops all containers in a container group. +Compute resources will be deallocated and billing will stop. +.Description +Stops all containers in a container group. +Compute resources will be deallocated and billing will stop. +.Example +Stop-AzContainerGroup -Name test-cg -ResourceGroupName test-rg +.Example +Get-AzContainerGroup -Name test-cg -ResourceGroupName test-rg | Stop-AzContainerGroup + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [ContainerGroupName ]: The name of the container group. + [ContainerGroupProfileName ]: The name of the container group profile. + [ContainerName ]: The name of the container instance. + [Id ]: Resource identity path + [Location ]: The name of the Azure region. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [RevisionNumber ]: The revision number of the container group profile. + [SubnetName ]: The name of the subnet. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VirtualNetworkName ]: The name of the virtual network. +.Link +https://learn.microsoft.com/powershell/module/az.containerinstance/stop-azcontainergroup +#> +function Stop-AzContainerGroup { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Stop', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Stop', Mandatory)] + [Alias('ContainerGroupName')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] + [System.String] + # The name of the container group. + ${Name}, + + [Parameter(ParameterSetName='Stop', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Stop')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter(ParameterSetName='StopViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] [System.Management.Automation.SwitchParameter] @@ -2124,10 +3461,10 @@ begin { } $mapping = @{ - Start = 'Az.ContainerInstance.private\Start-AzContainerGroup_Start'; - StartViaIdentity = 'Az.ContainerInstance.private\Start-AzContainerGroup_StartViaIdentity'; + Stop = 'Az.ContainerInstance.private\Stop-AzContainerGroup_Stop'; + StopViaIdentity = 'Az.ContainerInstance.private\Stop-AzContainerGroup_StopViaIdentity'; } - if (('Start') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('Stop') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $testPlayback = $false $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { @@ -2188,20 +3525,20 @@ end { <# .Synopsis -Stops all containers in a container group. -Compute resources will be deallocated and billing will stop. +Updates container group tags with specified values. .Description -Stops all containers in a container group. -Compute resources will be deallocated and billing will stop. +Updates container group tags with specified values. .Example -Stop-AzContainerGroup -Name test-cg -ResourceGroupName test-rg +$container = Update-AzContainerGroup -Name test-cg -ResourceGroupName test-rg -Tag @{"k"="v"} +$container.Tag | Format-List .Example -Get-AzContainerGroup -Name test-cg -ResourceGroupName test-rg | Stop-AzContainerGroup +$container = Get-AzContainerGroup -Name test-cg -ResourceGroupName test-rg | Update-AzContainerGroup -Tag @{"k"="v"} +$container.Tag | Format-List .Inputs Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity .Outputs -System.Boolean +Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup .Notes COMPLEX PARAMETER PROPERTIES @@ -2209,48 +3546,71 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ContainerGroupName ]: The name of the container group. + [ContainerGroupProfileName ]: The name of the container group profile. [ContainerName ]: The name of the container instance. [Id ]: Resource identity path - [Location ]: The identifier for the physical azure location. - [ResourceGroupName ]: The name of the resource group. + [Location ]: The name of the Azure region. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [RevisionNumber ]: The revision number of the container group profile. [SubnetName ]: The name of the subnet. - [SubscriptionId ]: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkName ]: The name of the virtual network. .Link -https://learn.microsoft.com/powershell/module/az.containerinstance/stop-azcontainergroup +https://learn.microsoft.com/powershell/module/az.containerinstance/update-azcontainergroup #> -function Stop-AzContainerGroup { -[OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='Stop', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function Update-AzContainerGroup { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(ParameterSetName='Stop', Mandatory)] + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Alias('ContainerGroupName')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [System.String] # The name of the container group. ${Name}, - [Parameter(ParameterSetName='Stop', Mandatory)] + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, - [Parameter(ParameterSetName='Stop')] + [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # Subscription credentials which uniquely identify Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, - [Parameter(ParameterSetName='StopViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.String] + # The resource location. + ${Location}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceTags]))] + [System.Collections.Hashtable] + # The resource tags. + ${Tag}, + + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.String[]] + # The zones for the container group. + ${Zone}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -2280,12 +3640,6 @@ param( # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Returns true when the command succeeds - ${PassThru}, - [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] [System.Uri] @@ -2332,10 +3686,10 @@ begin { } $mapping = @{ - Stop = 'Az.ContainerInstance.private\Stop-AzContainerGroup_Stop'; - StopViaIdentity = 'Az.ContainerInstance.private\Stop-AzContainerGroup_StopViaIdentity'; + UpdateExpanded = 'Az.ContainerInstance.private\Update-AzContainerGroup_UpdateExpanded'; + UpdateViaIdentityExpanded = 'Az.ContainerInstance.private\Update-AzContainerGroup_UpdateViaIdentityExpanded'; } - if (('Stop') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $testPlayback = $false $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { @@ -2396,20 +3750,22 @@ end { <# .Synopsis -Updates container group tags with specified values. +Patches container group profile with specified properties. .Description -Updates container group tags with specified values. +Patches container group profile with specified properties. .Example -$container = Update-AzContainerGroup -Name test-cg -ResourceGroupName test-rg -Tag @{"k"="v"} +$container = Update-AzContainerInstanceContainerGroupProfile -Name test-cgp -ResourceGroupName test-rg -Tag @{"k"="v"} $container.Tag | Format-List .Example -$container = Get-AzContainerGroup -Name test-cg -ResourceGroupName test-rg | Update-AzContainerGroup -Tag @{"k"="v"} +$container = Get-AzContainerInstanceContainerGroupProfile -Name test-cgp -ResourceGroupName test-rg | Update-AzContainerInstanceContainerGroupProfile -Tag @{"k"="v"} $container.Tag | Format-List +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePatch .Inputs Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup +Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile .Notes COMPLEX PARAMETER PROPERTIES @@ -2417,68 +3773,75 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ContainerGroupName ]: The name of the container group. + [ContainerGroupProfileName ]: The name of the container group profile. [ContainerName ]: The name of the container instance. [Id ]: Resource identity path - [Location ]: The identifier for the physical azure location. - [ResourceGroupName ]: The name of the resource group. + [Location ]: The name of the Azure region. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [RevisionNumber ]: The revision number of the container group profile. [SubnetName ]: The name of the subnet. - [SubscriptionId ]: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkName ]: The name of the virtual network. + +PROPERTY : Properties of container group profile that need to be patched + [Tag ]: Resource tags. + [(Any) ]: This indicates any property can be added to this object. .Link -https://learn.microsoft.com/powershell/module/az.containerinstance/update-azcontainergroup +https://learn.microsoft.com/powershell/module/az.containerinstance/update-azcontainerinstancecontainergroupprofile #> -function Update-AzContainerGroup { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup])] -[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function Update-AzContainerInstanceContainerGroupProfile { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile])] +[CmdletBinding(DefaultParameterSetName='PatchExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] - [Alias('ContainerGroupName')] + [Parameter(ParameterSetName='Patch', Mandatory)] + [Parameter(ParameterSetName='PatchExpanded', Mandatory)] + [Alias('ContainerGroupProfileName')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [System.String] - # The name of the container group. + # The name of the container group profile. ${Name}, - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(ParameterSetName='Patch', Mandatory)] + [Parameter(ParameterSetName='PatchExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, - [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='Patch')] + [Parameter(ParameterSetName='PatchExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # Subscription credentials which uniquely identify Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, - [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='PatchViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='PatchViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, - [Parameter()] + [Parameter(ParameterSetName='Patch', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='PatchViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [System.String] - # The resource location. - ${Location}, + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePatch] + # Properties of container group profile that need to be patched + # To construct, see NOTES section for PROPERTY properties and create a hash table. + ${Property}, - [Parameter()] + [Parameter(ParameterSetName='PatchExpanded')] + [Parameter(ParameterSetName='PatchViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePatchTags]))] [System.Collections.Hashtable] - # The resource tags. + # Resource tags. ${Tag}, - [Parameter()] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [System.String[]] - # The zones for the container group. - ${Zone}, - [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -2554,10 +3917,12 @@ begin { } $mapping = @{ - UpdateExpanded = 'Az.ContainerInstance.private\Update-AzContainerGroup_UpdateExpanded'; - UpdateViaIdentityExpanded = 'Az.ContainerInstance.private\Update-AzContainerGroup_UpdateViaIdentityExpanded'; + Patch = 'Az.ContainerInstance.private\Update-AzContainerInstanceContainerGroupProfile_Patch'; + PatchExpanded = 'Az.ContainerInstance.private\Update-AzContainerInstanceContainerGroupProfile_PatchExpanded'; + PatchViaIdentity = 'Az.ContainerInstance.private\Update-AzContainerInstanceContainerGroupProfile_PatchViaIdentity'; + PatchViaIdentityExpanded = 'Az.ContainerInstance.private\Update-AzContainerInstanceContainerGroupProfile_PatchViaIdentityExpanded'; } - if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('Patch', 'PatchExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $testPlayback = $false $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { @@ -2838,23 +4203,27 @@ $port2 = New-AzContainerInstancePortObject -Port 8001 -Protocol TCP $container = New-AzContainerInstanceObject -Name test-container -Image nginx -RequestCpu 1 -RequestMemoryInGb 1.5 -Port @($port1, $port2) $containerGroup = New-AzContainerGroup -ResourceGroupName test-rg -Name test-cg -Location eastus -Container $container -OsType Linux -RestartPolicy "Never" -IpAddressType Public .Example +$pwd = ConvertTo-SecureString -String "****" -AsPlainText -Force $env1 = New-AzContainerInstanceEnvironmentVariableObject -Name "env1" -Value "value1" -$env2 = New-AzContainerInstanceEnvironmentVariableObject -Name "env2" -SecureValue (ConvertTo-SecureString -String "value2" -AsPlainText -Force) +$env2 = New-AzContainerInstanceEnvironmentVariableObject -Name "env2" -SecureValue $pwd $container = New-AzContainerInstanceObject -Name test-container -Image alpine -Command "/bin/sh -c myscript.sh" -EnvironmentVariable @($env1, $env2) $containerGroup = New-AzContainerGroup -ResourceGroupName test-rg -Name test-cg -Location eastus -Container $container -OsType Linux .Example $container = New-AzContainerInstanceObject -Name test-container -Image alpine -Command "echo hello" $containerGroup = New-AzContainerGroup -ResourceGroupName test-rg -Name test-cg -Location eastus -Container $container -OsType Linux .Example +$pwd = ConvertTo-SecureString -String "****" -AsPlainText -Force $container = New-AzContainerInstanceObject -Name test-container -Image myacr.azurecr.io/nginx:latest -$imageRegistryCredential = New-AzContainerGroupImageRegistryCredentialObject -Server "myacr.azurecr.io" -Username "username" -Password (ConvertTo-SecureString "PlainTextPassword" -AsPlainText -Force) +$imageRegistryCredential = New-AzContainerGroupImageRegistryCredentialObject -Server "myacr.azurecr.io" -Username "username" -Password $pwd $containerGroup = New-AzContainerGroup -ResourceGroupName test-rg -Name test-cg -Location eastus -Container $container -ImageRegistryCredential $imageRegistryCredential .Example +$pwd = ConvertTo-SecureString -String "****" -AsPlainText -Force $container = New-AzContainerInstanceObject -Name test-container -Image myserver.com/nginx:latest -$imageRegistryCredential = New-AzContainerGroupImageRegistryCredentialObject -Server "myserver.com" -Username "username" -Password (ConvertTo-SecureString "PlainTextPassword" -AsPlainText -Force) +$imageRegistryCredential = New-AzContainerGroupImageRegistryCredentialObject -Server "myserver.com" -Username "username" -Password $pwd $containerGroup = New-AzContainerGroup -ResourceGroupName test-rg -Name test-cg -Location eastus -Container $container -ImageRegistryCredential $imageRegistryCredential .Example -$volume = New-AzContainerGroupVolumeObject -Name "myvolume" -AzureFileShareName "myshare" -AzureFileStorageAccountName "username" -AzureFileStorageAccountKey (ConvertTo-SecureString "PlainTextPassword" -AsPlainText -Force) +$pwd = ConvertTo-SecureString -String "****" -AsPlainText -Force +$volume = New-AzContainerGroupVolumeObject -Name "myvolume" -AzureFileShareName "myshare" -AzureFileStorageAccountName "username" -AzureFileStorageAccountKey $pwd $mount = New-AzContainerInstanceVolumeMountObject -MountPath "/aci/logs" -Name "myvolume" $container = New-AzContainerInstanceObject -Name test-container -Image alpine -VolumeMount $mount $containerGroup = New-AzContainerGroup -ResourceGroupName test-rg -Name test-cg -Location eastus -Container $container -Volume $volume @@ -2863,22 +4232,24 @@ $container = New-AzContainerInstanceObject -Name test-container -Image alpine $containerGroup = New-AzContainerGroup -ResourceGroupName test-rg -Name test-cg -Location eastus -Container $container -IdentityType "SystemAssigned, UserAssigned" -IdentityUserAssignedIdentity @{"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}" = @{}} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup +Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. CONTAINER : The containers within the container group. - Image : The name of the image used to create the container instance. Name : The user-provided name of the container instance. - RequestCpu : The CPU request of this container instance. - RequestMemoryInGb : The memory request in GB of this container instance. + [CapabilityAdd ]: The capabilities to add to the container. + [CapabilityDrop ]: The capabilities to drop from the container. [Command ]: The commands to execute within the container instance in exec form. + [ConfigMapKeyValuePair ]: The key value pairs dictionary in the config map. + [(Any) ]: This indicates any property can be added to this object. [EnvironmentVariable ]: The environment variables to set in the container instance. Name : The name of the environment variable. [SecureValue ]: The value of the secure environment variable. [Value ]: The value of the environment variable. + [Image ]: The name of the image used to create the container instance. [LimitCpu ]: The CPU limit of this container instance. [LimitMemoryInGb ]: The memory limit in GB of this container instance. [LimitsGpuCount ]: The count of the GPU resource. @@ -2908,8 +4279,15 @@ CONTAINER : The containers within the container group. [ReadinessProbePeriodSecond ]: The period seconds. [ReadinessProbeSuccessThreshold ]: The success threshold. [ReadinessProbeTimeoutSecond ]: The timeout seconds. + [RequestCpu ]: The CPU request of this container instance. + [RequestMemoryInGb ]: The memory request in GB of this container instance. [RequestsGpuCount ]: The count of the GPU resource. [RequestsGpuSku ]: The SKU of the GPU resource. + [SecurityContextAllowPrivilegeEscalation ]: A boolean value indicating whether the init process can elevate its privileges + [SecurityContextPrivileged ]: The flag to determine if the container permissions is elevated to Privileged. + [SecurityContextRunAsGroup ]: Sets the User GID for the container. + [SecurityContextRunAsUser ]: Sets the User UID for the container. + [SecurityContextSeccompProfile ]: a base64 encoded string containing the contents of the JSON in the seccomp profile [VolumeMount ]: The volume mounts available to the container instance. MountPath : The path within the container where the volume should be mounted. Must not contain colon (:). Name : The name of the volume mount. @@ -2924,12 +4302,19 @@ IMAGEREGISTRYCREDENTIAL : The image registry credent INITCONTAINER : The init containers for a container group. Name : The name for the init container. + [CapabilityAdd ]: The capabilities to add to the container. + [CapabilityDrop ]: The capabilities to drop from the container. [Command ]: The command to execute within the init container in exec form. [EnvironmentVariable ]: The environment variables to set in the init container. Name : The name of the environment variable. [SecureValue ]: The value of the secure environment variable. [Value ]: The value of the environment variable. [Image ]: The image of the init container. + [SecurityContextAllowPrivilegeEscalation ]: A boolean value indicating whether the init process can elevate its privileges + [SecurityContextPrivileged ]: The flag to determine if the container permissions is elevated to Privileged. + [SecurityContextRunAsGroup ]: Sets the User GID for the container. + [SecurityContextRunAsUser ]: Sets the User UID for the container. + [SecurityContextSeccompProfile ]: a base64 encoded string containing the contents of the JSON in the seccomp profile [VolumeMount ]: The volume mounts available to the init container. MountPath : The path within the container where the volume should be mounted. Must not contain colon (:). Name : The name of the volume mount. @@ -2960,7 +4345,7 @@ VOLUME : The list of volumes that can be mounted by containers in thi https://learn.microsoft.com/powershell/module/az.containerinstance/new-azcontainergroup #> function New-AzContainerGroup { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -2985,27 +4370,38 @@ param( ${SubscriptionId}, [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.String] + # The resource location. + ${Location}, + + [Parameter()] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainer[]] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainer[]] # The containers within the container group. # To construct, see NOTES section for CONTAINER properties and create a hash table. ${Container}, - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [System.String] - # The resource location. - ${Location}, - [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes])] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo(Description='Sets OSType equal Linux by default.', Script='"Linux"')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes] # The operating system type required by the containers in the container group. ${OSType}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.String] + # The container group profile reference id.This will be an ARM resource id in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}'. + ${ContainerGroupProfileId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.Int32] + # The container group profile reference revision. + ${ContainerGroupProfileRevision}, + [Parameter()] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] @@ -3058,7 +4454,7 @@ param( [Parameter()] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IPort[]] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPort[]] # The list of ports exposed on the container group. # To construct, see NOTES section for IPADDRESSPORT properties and create a hash table. ${IPAddressPort}, @@ -3081,7 +4477,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentityUserAssignedIdentities]))] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentityUserAssignedIdentities]))] [System.Collections.Hashtable] # The list of user identities associated with the container group. # The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. @@ -3090,7 +4486,7 @@ param( [Parameter()] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IImageRegistryCredential[]] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredential[]] # The image registry credentials by which the container group is created from. # To construct, see NOTES section for IMAGEREGISTRYCREDENTIAL properties and create a hash table. ${ImageRegistryCredential}, @@ -3098,7 +4494,7 @@ param( [Parameter()] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinition[]] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinition[]] # The init containers for a container group. # To construct, see NOTES section for INITCONTAINER properties and create a hash table. ${InitContainer}, @@ -3112,7 +4508,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsMetadata]))] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsMetadata]))] [System.Collections.Hashtable] # Metadata for log analytics. ${LogAnalyticMetadata}, @@ -3150,17 +4546,29 @@ param( # The SKU for a container group. ${Sku}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.Management.Automation.SwitchParameter] + # The flag to determine whether ACI should fail the create request if the container group can not be obtained from standby pool. + ${StandbyPoolProfileFailContainerGroupCreateOnReuseFailure}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.String] + # The standby pool profile reference id.This will be an ARM resource id in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyContainerGroupPools/{standbyPoolName}'. + ${StandbyPoolProfileId}, + [Parameter()] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupSubnetId[]] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupSubnetId[]] # The subnet resource IDs for a container group. # To construct, see NOTES section for SUBNETID properties and create a hash table. ${SubnetId}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceTags]))] [System.Collections.Hashtable] # The resource tags. ${Tag}, @@ -3168,7 +4576,7 @@ param( [Parameter()] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolume[]] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolume[]] # The list of volumes that can be mounted by containers in this container group. # To construct, see NOTES section for VOLUME properties and create a hash table. ${Volume}, @@ -3283,9 +4691,6 @@ begin { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } } - if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('OSType')) { - $PSBoundParameters['OSType'] = "Linux" - } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ @@ -3342,15 +4747,16 @@ Create a in-memory object for ImageRegistryCredential .Description Create a in-memory object for ImageRegistryCredential .Example -New-AzContainerGroupImageRegistryCredentialObject -Server "myserver.com" -Username "username" -Password (ConvertTo-SecureString "******" -AsPlainText -Force) +$pwd = ConvertTo-SecureString -String "****" -AsPlainText -Force +New-AzContainerGroupImageRegistryCredentialObject -Server "myserver.com" -Username "username" -Password $pwd .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ImageRegistryCredential +Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ImageRegistryCredential .Link https://learn.microsoft.com/powershell/module/az.ContainerInstance/new-AzContainerGroupImageRegistryCredentialObject #> function New-AzContainerGroupImageRegistryCredentialObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ImageRegistryCredential])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ImageRegistryCredential])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -3465,12 +4871,12 @@ Create a in-memory object for Port New-AzContainerGroupPortObject -Port 8000 -Protocol TCP .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.Port +Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Port .Link https://learn.microsoft.com/powershell/module/az.ContainerInstance/new-AzContainerGroupPortObject #> function New-AzContainerGroupPortObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.Port])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Port])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -3571,12 +4977,13 @@ Create an in-memory object for Volume. .Description Create an in-memory object for Volume. .Example -New-AzContainerGroupVolumeObject -Name "myvolume" -AzureFileShareName "myshare" -AzureFileStorageAccountName "username" -AzureFileStorageAccountKey (ConvertTo-SecureString "******" -AsPlainText -Force) +$pwd = ConvertTo-SecureString -String "****" -AsPlainText -Force +New-AzContainerGroupVolumeObject -Name "myvolume" -AzureFileShareName "myshare" -AzureFileStorageAccountName "username" -AzureFileStorageAccountKey $pwd .Example New-AzContainerGroupVolumeObject -Name "emptyvolume" -EmptyDir @{} | Format-List .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.Volume +Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Volume .Notes COMPLEX PARAMETER PROPERTIES @@ -3591,7 +4998,7 @@ SECRET : The secret volume. https://learn.microsoft.com/powershell/module/az.ContainerInstance/new-AzContainerGroupVolumeObject #> function New-AzContainerGroupVolumeObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.Volume])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Volume])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -3626,7 +5033,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeEmptyDir] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeEmptyDir] # The empty directory volume. # To construct, see NOTES section for EMPTYDIR properties and create a hash table. ${EmptyDir}, @@ -3654,7 +5061,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ISecretVolume] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecretVolume] # The secret volume. # To construct, see NOTES section for SECRET properties and create a hash table. ${Secret} @@ -3746,15 +5153,16 @@ Create a in-memory object for EnvironmentVariable .Example New-AzContainerInstanceEnvironmentVariableObject -Name "env1" -Value "value1" .Example -New-AzContainerInstanceEnvironmentVariableObject -Name "env2" -SecureValue (ConvertTo-SecureString -String "******" -AsPlainText -Force) +$pwd = ConvertTo-SecureString -String "****" -AsPlainText -Force +New-AzContainerInstanceEnvironmentVariableObject -Name "env2" -SecureValue $pwd .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.EnvironmentVariable +Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.EnvironmentVariable .Link https://learn.microsoft.com/powershell/module/az.ContainerInstance/new-AzContainerInstanceEnvironmentVariableObject #> function New-AzContainerInstanceEnvironmentVariableObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.EnvironmentVariable])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.EnvironmentVariable])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -3863,25 +5271,167 @@ Create a in-memory object for HttpHeader New-AzContainerInstanceHttpHeaderObject -name foo -value bar .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.HttpHeader +Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.HttpHeader +.Link +https://learn.microsoft.com/powershell/module/az.ContainerInstance/New-AzContainerInstanceHttpHeaderObject +#> +function New-AzContainerInstanceHttpHeaderObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.HttpHeader])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.String] + # The header name. + ${Name}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.String] + # The header value.. + ${Value} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + __AllParameterSets = 'Az.ContainerInstance.custom\New-AzContainerInstanceHttpHeaderObject'; + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Create a in-memory object for InitContainerDefinition +.Description +Create a in-memory object for InitContainerDefinition +.Example +New-AzContainerInstanceInitDefinitionObject -Name "initDefinition" -Command "/bin/sh -c myscript.sh" + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.InitContainerDefinition +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +ENVIRONMENTVARIABLE : The environment variables to set in the init container. + Name : The name of the environment variable. + [SecureValue ]: The value of the secure environment variable. + [Value ]: The value of the environment variable. + +VOLUMEMOUNT : The volume mounts available to the init container. + MountPath : The path within the container where the volume should be mounted. Must not contain colon (:). + Name : The name of the volume mount. + [ReadOnly ]: The flag indicating whether the volume mount is read-only. .Link -https://learn.microsoft.com/powershell/module/az.ContainerInstance/New-AzContainerInstanceHttpHeaderObject +https://learn.microsoft.com/powershell/module/az.ContainerInstance/new-AzContainerInstanceInitDefinitionObject #> -function New-AzContainerInstanceHttpHeaderObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.HttpHeader])] +function New-AzContainerInstanceInitDefinitionObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.InitContainerDefinition])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.String] - # The header name. + # The name for the init container. ${Name}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.String[]] + # The command to execute within the init container in exec form. + ${Command}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariable[]] + # The environment variables to set in the init container. + # To construct, see NOTES section for ENVIRONMENTVARIABLE properties and create a hash table. + ${EnvironmentVariable}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.String] - # The header value.. - ${Value} + # The image of the init container. + ${Image}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMount[]] + # The volume mounts available to the init container. + # To construct, see NOTES section for VOLUMEMOUNT properties and create a hash table. + ${VolumeMount} ) begin { @@ -3910,7 +5460,7 @@ begin { } $mapping = @{ - __AllParameterSets = 'Az.ContainerInstance.custom\New-AzContainerInstanceHttpHeaderObject'; + __AllParameterSets = 'Az.ContainerInstance.custom\New-AzContainerInstanceInitDefinitionObject'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -3964,64 +5514,272 @@ end { <# .Synopsis -Create a in-memory object for InitContainerDefinition +Create a in-memory object for Container with no default values .Description -Create a in-memory object for InitContainerDefinition +Create a in-memory object for Container with no default values .Example -New-AzContainerInstanceInitDefinitionObject -Name "initDefinition" -Command "/bin/sh -c myscript.sh" +New-AzContainerInstanceNoDefaultObject -Name "test-container" -Image alpine -RequestCpu 1 -RequestMemoryInGb 1.5 +.Example +New-AzContainerInstanceNoDefaultObject -Image alpine -Name "test-container" -LimitCpu 2 -LimitMemoryInGb 2.5 +.Example +$container = New-AzContainerInstanceNoDefaultObject -Name test-container -Image alpine +New-AzContainerGroup -ResourceGroupName testrg-rg -Name test-cg -Location eastus -Container $container .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.InitContainerDefinition +Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Container .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -ENVIRONMENTVARIABLE : The environment variables to set in the init container. +CONFIGMAPKEYVALUEPAIR : The key value pairs dictionary in the config map to set in the container instance. + [(Any) ]: This indicates any property can be added to this object. + +ENVIRONMENTVARIABLE : The environment variables to set in the container instance. Name : The name of the environment variable. [SecureValue ]: The value of the secure environment variable. [Value ]: The value of the environment variable. -VOLUMEMOUNT : The volume mounts available to the init container. +LIVENESSPROBEHTTPGETHTTPHEADER : The HTTP headers for liveness probe. + [Name ]: The header name. + [Value ]: The header value. + +PORT : The exposed ports on the container instance. + Port : The port number exposed within the container group. + [Protocol ]: The protocol associated with the port. + +READINESSPROBEHTTPGETHTTPHEADER : The HTTP headers for readiness probe. + [Name ]: The header name. + [Value ]: The header value. + +VOLUMEMOUNT : The volume mounts available to the container instance. MountPath : The path within the container where the volume should be mounted. Must not contain colon (:). Name : The name of the volume mount. [ReadOnly ]: The flag indicating whether the volume mount is read-only. .Link -https://learn.microsoft.com/powershell/module/az.ContainerInstance/new-AzContainerInstanceInitDefinitionObject +https://learn.microsoft.com/powershell/module/az.ContainerInstance/New-AzContainerInstanceNoDefaultObject #> -function New-AzContainerInstanceInitDefinitionObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.InitContainerDefinition])] +function New-AzContainerInstanceNoDefaultObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Container])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.String] - # The name for the init container. + # The user-provided name of the container instance. ${Name}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.String[]] - # The command to execute within the init container in exec form. + # The commands to execute within the container instance in exec form. ${Command}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEnvironmentVariable[]] - # The environment variables to set in the init container. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfigMapKeyValuePairs] + # The key value pairs dictionary in the config map to set in the container instance. + # To construct, see NOTES section for CONFIGMAPKEYVALUEPAIR properties and create a hash table. + ${ConfigMapKeyValuePair}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariable[]] + # The environment variables to set in the container instance. # To construct, see NOTES section for ENVIRONMENTVARIABLE properties and create a hash table. ${EnvironmentVariable}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.String] - # The image of the init container. + # The name of the image used to create the container instance. ${Image}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeMount[]] - # The volume mounts available to the init container. + [System.Double] + # The CPU limit of this container instance. + ${LimitCpu}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.Double] + # The memory limit in GB of this container instance. + ${LimitMemoryInGb}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.Int32] + # The count of the GPU resource. + ${LimitsGpuCount}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku])] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.String] + # The SKU of the GPU resource. + ${LimitsGpuSku}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.String[]] + # The commands to execute within the container. + ${LivenessProbeExecCommand}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.Int32] + # The failure threshold. + ${LivenessProbeFailureThreshold}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader[]] + # The HTTP headers for liveness probe. + # To construct, see NOTES section for LIVENESSPROBEHTTPGETHTTPHEADER properties and create a hash table. + ${LivenessProbeHttpGetHttpHeader}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.String] + # The path to probe. + ${LivenessProbeHttpGetPath}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.Int32] + # The port number to probe. + ${LivenessProbeHttpGetPort}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme])] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.String] + # The scheme. + ${LivenessProbeHttpGetScheme}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.Int32] + # The initial delay seconds. + ${LivenessProbeInitialDelaySecond}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.Int32] + # The period seconds. + ${LivenessProbePeriodSecond}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.Int32] + # The success threshold. + ${LivenessProbeSuccessThreshold}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.Int32] + # The timeout seconds. + ${LivenessProbeTimeoutSecond}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPort[]] + # The exposed ports on the container instance. + # To construct, see NOTES section for PORT properties and create a hash table. + ${Port}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.String[]] + # The commands to execute within the container. + ${ReadinessProbeExecCommand}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.Int32] + # The failure threshold. + ${ReadinessProbeFailureThreshold}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader[]] + # The HTTP headers for readiness probe. + # To construct, see NOTES section for READINESSPROBEHTTPGETHTTPHEADER properties and create a hash table. + ${ReadinessProbeHttpGetHttpHeader}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.String] + # The path to probe. + ${ReadinessProbeHttpGetPath}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.Int32] + # The port number to probe. + ${ReadinessProbeHttpGetPort}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme])] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.String] + # The scheme. + ${ReadinessProbeHttpGetScheme}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.Int32] + # The initial delay seconds. + ${ReadinessProbeInitialDelaySecond}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.Int32] + # The period seconds. + ${ReadinessProbePeriodSecond}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.Int32] + # The success threshold. + ${ReadinessProbeSuccessThreshold}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.Int32] + # The timeout seconds. + ${ReadinessProbeTimeoutSecond}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.Double] + # The CPU request of this container instance. + ${RequestCpu}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.Double] + # The memory request in GB of this container instance. + ${RequestMemoryInGb}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.Int32] + # The count of the GPU resource. + ${RequestsGpuCount}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku])] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.String] + # The SKU of the GPU resource. + ${RequestsGpuSku}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMount[]] + # The volume mounts available to the container instance. # To construct, see NOTES section for VOLUMEMOUNT properties and create a hash table. ${VolumeMount} ) @@ -4052,7 +5810,7 @@ begin { } $mapping = @{ - __AllParameterSets = 'Az.ContainerInstance.custom\New-AzContainerInstanceInitDefinitionObject'; + __AllParameterSets = 'Az.ContainerInstance.custom\New-AzContainerInstanceNoDefaultObject'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -4118,12 +5876,15 @@ $container = New-AzContainerInstanceObject -Name test-container -Image alpine New-AzContainerGroup -ResourceGroupName testrg-rg -Name test-cg -Location eastus -Container $container .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.Container +Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Container .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. +CONFIGMAPKEYVALUEPAIR : The key value pairs dictionary in the config map to set in the container instance. + [(Any) ]: This indicates any property can be added to this object. + ENVIRONMENTVARIABLE : The environment variables to set in the container instance. Name : The name of the environment variable. [SecureValue ]: The value of the secure environment variable. @@ -4149,7 +5910,7 @@ VOLUMEMOUNT : The volume mounts available to the container insta https://learn.microsoft.com/powershell/module/az.ContainerInstance/new-AzContainerInstanceObject #> function New-AzContainerInstanceObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.Container])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Container])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -4172,7 +5933,14 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEnvironmentVariable[]] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfigMapKeyValuePairs] + # The key value pairs dictionary in the config map to set in the container instance. + # To construct, see NOTES section for CONFIGMAPKEYVALUEPAIR properties and create a hash table. + ${ConfigMapKeyValuePair}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariable[]] # The environment variables to set in the container instance. # To construct, see NOTES section for ENVIRONMENTVARIABLE properties and create a hash table. ${EnvironmentVariable}, @@ -4216,7 +5984,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IHttpHeader[]] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader[]] # The HTTP headers for liveness probe. # To construct, see NOTES section for LIVENESSPROBEHTTPGETHTTPHEADER properties and create a hash table. ${LivenessProbeHttpGetHttpHeader}, @@ -4266,7 +6034,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPort[]] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPort[]] # The exposed ports on the container instance. # To construct, see NOTES section for PORT properties and create a hash table. ${Port}, @@ -4285,7 +6053,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IHttpHeader[]] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader[]] # The HTTP headers for readiness probe. # To construct, see NOTES section for READINESSPROBEHTTPGETHTTPHEADER properties and create a hash table. ${ReadinessProbeHttpGetHttpHeader}, @@ -4360,7 +6128,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeMount[]] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMount[]] # The volume mounts available to the container instance. # To construct, see NOTES section for VOLUMEMOUNT properties and create a hash table. ${VolumeMount} @@ -4453,12 +6221,12 @@ Create a in-memory object for ContainerPort New-AzContainerInstancePortObject -Port 8000 -Protocol TCP .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerPort +Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerPort .Link https://learn.microsoft.com/powershell/module/az.ContainerInstance/new-AzContainerInstancePortObject #> function New-AzContainerInstancePortObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerPort])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerPort])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -4562,12 +6330,12 @@ Create a in-memory object for VolumeMount New-AzContainerInstanceVolumeMountObject -Name "mnt" -MountPath "/mnt/azfile" -ReadOnly $true .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.VolumeMount +Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.VolumeMount .Link https://learn.microsoft.com/powershell/module/az.ContainerInstance/new-AzContainerInstanceVolumeMountObject #> function New-AzContainerInstanceVolumeMountObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.VolumeMount])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.VolumeMount])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] diff --git a/src/ContainerInstance/ContainerInstance.Autorest/exports/Remove-AzContainerGroup.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/exports/Remove-AzContainerGroup.ps1 index 0876225ca244..a7d05c40f61d 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/exports/Remove-AzContainerGroup.ps1 +++ b/src/ContainerInstance/ContainerInstance.Autorest/exports/Remove-AzContainerGroup.ps1 @@ -29,7 +29,7 @@ Get-AzContainerGroup -Name test-cg -ResourceGroupName bez-rg | Remove-AzContaine .Inputs Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup +Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup .Notes COMPLEX PARAMETER PROPERTIES @@ -37,18 +37,20 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ContainerGroupName ]: The name of the container group. + [ContainerGroupProfileName ]: The name of the container group profile. [ContainerName ]: The name of the container instance. [Id ]: Resource identity path - [Location ]: The identifier for the physical azure location. - [ResourceGroupName ]: The name of the resource group. + [Location ]: The name of the Azure region. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [RevisionNumber ]: The revision number of the container group profile. [SubnetName ]: The name of the subnet. - [SubscriptionId ]: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkName ]: The name of the virtual network. .Link https://learn.microsoft.com/powershell/module/az.containerinstance/remove-azcontainergroup #> function Remove-AzContainerGroup { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup])] [CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Delete', Mandatory)] @@ -62,14 +64,15 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Delete')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # Subscription credentials which uniquely identify Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/ContainerInstance/ContainerInstance.Autorest/exports/Remove-AzContainerInstanceContainerGroupProfile.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/exports/Remove-AzContainerInstanceContainerGroupProfile.ps1 new file mode 100644 index 000000000000..99d621f222df --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/exports/Remove-AzContainerInstanceContainerGroupProfile.ps1 @@ -0,0 +1,226 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Delete the specified container group profile in the specified subscription and resource group. +The operation does not delete other resources provided by the user, such as volumes. +.Description +Delete the specified container group profile in the specified subscription and resource group. +The operation does not delete other resources provided by the user, such as volumes. +.Example +Remove-AzContainerInstanceContainerGroupProfile -Name test-cgp -ResourceGroupName test-rg +.Example +Get-AzContainerInstanceContainerGroupProfile -Name test-cgp -ResourceGroupName test-rg | Remove-AzContainerInstanceContainerGroupProfile + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [ContainerGroupName ]: The name of the container group. + [ContainerGroupProfileName ]: The name of the container group profile. + [ContainerName ]: The name of the container instance. + [Id ]: Resource identity path + [Location ]: The name of the Azure region. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [RevisionNumber ]: The revision number of the container group profile. + [SubnetName ]: The name of the subnet. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VirtualNetworkName ]: The name of the virtual network. +.Link +https://learn.microsoft.com/powershell/module/az.containerinstance/remove-azcontainerinstancecontainergroupprofile +#> +function Remove-AzContainerInstanceContainerGroupProfile { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Delete', Mandatory)] + [Alias('ContainerGroupProfileName')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] + [System.String] + # The name of the container group profile. + ${Name}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Delete')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + Delete = 'Az.ContainerInstance.private\Remove-AzContainerInstanceContainerGroupProfile_Delete'; + DeleteViaIdentity = 'Az.ContainerInstance.private\Remove-AzContainerInstanceContainerGroupProfile_DeleteViaIdentity'; + } + if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/src/ContainerInstance/ContainerInstance.Autorest/exports/Remove-AzContainerInstanceSubnetServiceAssociationLink.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/exports/Remove-AzContainerInstanceSubnetServiceAssociationLink.ps1 index 606a228bcab2..08d6f52617f0 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/exports/Remove-AzContainerInstanceSubnetServiceAssociationLink.ps1 +++ b/src/ContainerInstance/ContainerInstance.Autorest/exports/Remove-AzContainerInstanceSubnetServiceAssociationLink.ps1 @@ -35,12 +35,14 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ContainerGroupName ]: The name of the container group. + [ContainerGroupProfileName ]: The name of the container group profile. [ContainerName ]: The name of the container instance. [Id ]: Resource identity path - [Location ]: The identifier for the physical azure location. - [ResourceGroupName ]: The name of the resource group. + [Location ]: The name of the Azure region. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [RevisionNumber ]: The revision number of the container group profile. [SubnetName ]: The name of the subnet. - [SubscriptionId ]: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkName ]: The name of the virtual network. .Link https://learn.microsoft.com/powershell/module/az.containerinstance/remove-azcontainerinstancesubnetserviceassociationlink @@ -53,6 +55,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Delete', Mandatory)] @@ -65,8 +68,8 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # Subscription credentials which uniquely identify Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='Delete', Mandatory)] diff --git a/src/ContainerInstance/ContainerInstance.Autorest/exports/Restart-AzContainerGroup.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/exports/Restart-AzContainerGroup.ps1 index 899da5fdfeed..14e2730ce9a0 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/exports/Restart-AzContainerGroup.ps1 +++ b/src/ContainerInstance/ContainerInstance.Autorest/exports/Restart-AzContainerGroup.ps1 @@ -37,12 +37,14 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ContainerGroupName ]: The name of the container group. + [ContainerGroupProfileName ]: The name of the container group profile. [ContainerName ]: The name of the container instance. [Id ]: Resource identity path - [Location ]: The identifier for the physical azure location. - [ResourceGroupName ]: The name of the resource group. + [Location ]: The name of the Azure region. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [RevisionNumber ]: The revision number of the container group profile. [SubnetName ]: The name of the subnet. - [SubscriptionId ]: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkName ]: The name of the virtual network. .Link https://learn.microsoft.com/powershell/module/az.containerinstance/restart-azcontainergroup @@ -62,14 +64,15 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Restart')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # Subscription credentials which uniquely identify Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='RestartViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/ContainerInstance/ContainerInstance.Autorest/exports/Start-AzContainerGroup.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/exports/Start-AzContainerGroup.ps1 index 1f43d628bfc3..77dcb799a4e9 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/exports/Start-AzContainerGroup.ps1 +++ b/src/ContainerInstance/ContainerInstance.Autorest/exports/Start-AzContainerGroup.ps1 @@ -37,12 +37,14 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ContainerGroupName ]: The name of the container group. + [ContainerGroupProfileName ]: The name of the container group profile. [ContainerName ]: The name of the container instance. [Id ]: Resource identity path - [Location ]: The identifier for the physical azure location. - [ResourceGroupName ]: The name of the resource group. + [Location ]: The name of the Azure region. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [RevisionNumber ]: The revision number of the container group profile. [SubnetName ]: The name of the subnet. - [SubscriptionId ]: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkName ]: The name of the virtual network. .Link https://learn.microsoft.com/powershell/module/az.containerinstance/start-azcontainergroup @@ -62,14 +64,15 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Start')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # Subscription credentials which uniquely identify Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='StartViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/ContainerInstance/ContainerInstance.Autorest/exports/Stop-AzContainerGroup.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/exports/Stop-AzContainerGroup.ps1 index c60d121a8f36..be4d44f95474 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/exports/Stop-AzContainerGroup.ps1 +++ b/src/ContainerInstance/ContainerInstance.Autorest/exports/Stop-AzContainerGroup.ps1 @@ -37,12 +37,14 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ContainerGroupName ]: The name of the container group. + [ContainerGroupProfileName ]: The name of the container group profile. [ContainerName ]: The name of the container instance. [Id ]: Resource identity path - [Location ]: The identifier for the physical azure location. - [ResourceGroupName ]: The name of the resource group. + [Location ]: The name of the Azure region. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [RevisionNumber ]: The revision number of the container group profile. [SubnetName ]: The name of the subnet. - [SubscriptionId ]: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkName ]: The name of the virtual network. .Link https://learn.microsoft.com/powershell/module/az.containerinstance/stop-azcontainergroup @@ -62,14 +64,15 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Stop')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # Subscription credentials which uniquely identify Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='StopViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/ContainerInstance/ContainerInstance.Autorest/exports/Update-AzContainerGroup.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/exports/Update-AzContainerGroup.ps1 index 3e212336df4b..1d48fafd59f1 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/exports/Update-AzContainerGroup.ps1 +++ b/src/ContainerInstance/ContainerInstance.Autorest/exports/Update-AzContainerGroup.ps1 @@ -29,7 +29,7 @@ $container.Tag | Format-List .Inputs Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup +Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup .Notes COMPLEX PARAMETER PROPERTIES @@ -37,18 +37,20 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ContainerGroupName ]: The name of the container group. + [ContainerGroupProfileName ]: The name of the container group profile. [ContainerName ]: The name of the container instance. [Id ]: Resource identity path - [Location ]: The identifier for the physical azure location. - [ResourceGroupName ]: The name of the resource group. + [Location ]: The name of the Azure region. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [RevisionNumber ]: The revision number of the container group profile. [SubnetName ]: The name of the subnet. - [SubscriptionId ]: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkName ]: The name of the virtual network. .Link https://learn.microsoft.com/powershell/module/az.containerinstance/update-azcontainergroup #> function Update-AzContainerGroup { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -62,14 +64,15 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # Subscription credentials which uniquely identify Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] @@ -87,7 +90,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceTags]))] [System.Collections.Hashtable] # The resource tags. ${Tag}, diff --git a/src/ContainerInstance/ContainerInstance.Autorest/exports/Update-AzContainerInstanceContainerGroupProfile.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/exports/Update-AzContainerInstanceContainerGroupProfile.ps1 new file mode 100644 index 000000000000..318eed82b832 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/exports/Update-AzContainerInstanceContainerGroupProfile.ps1 @@ -0,0 +1,248 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Patches container group profile with specified properties. +.Description +Patches container group profile with specified properties. +.Example +$container = Update-AzContainerInstanceContainerGroupProfile -Name test-cgp -ResourceGroupName test-rg -Tag @{"k"="v"} +$container.Tag | Format-List +.Example +$container = Get-AzContainerInstanceContainerGroupProfile -Name test-cgp -ResourceGroupName test-rg | Update-AzContainerInstanceContainerGroupProfile -Tag @{"k"="v"} +$container.Tag | Format-List + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePatch +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [ContainerGroupName ]: The name of the container group. + [ContainerGroupProfileName ]: The name of the container group profile. + [ContainerName ]: The name of the container instance. + [Id ]: Resource identity path + [Location ]: The name of the Azure region. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [RevisionNumber ]: The revision number of the container group profile. + [SubnetName ]: The name of the subnet. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VirtualNetworkName ]: The name of the virtual network. + +PROPERTY : Properties of container group profile that need to be patched + [Tag ]: Resource tags. + [(Any) ]: This indicates any property can be added to this object. +.Link +https://learn.microsoft.com/powershell/module/az.containerinstance/update-azcontainerinstancecontainergroupprofile +#> +function Update-AzContainerInstanceContainerGroupProfile { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile])] +[CmdletBinding(DefaultParameterSetName='PatchExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Patch', Mandatory)] + [Parameter(ParameterSetName='PatchExpanded', Mandatory)] + [Alias('ContainerGroupProfileName')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] + [System.String] + # The name of the container group profile. + ${Name}, + + [Parameter(ParameterSetName='Patch', Mandatory)] + [Parameter(ParameterSetName='PatchExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Patch')] + [Parameter(ParameterSetName='PatchExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter(ParameterSetName='PatchViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='PatchViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(ParameterSetName='Patch', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='PatchViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePatch] + # Properties of container group profile that need to be patched + # To construct, see NOTES section for PROPERTY properties and create a hash table. + ${Property}, + + [Parameter(ParameterSetName='PatchExpanded')] + [Parameter(ParameterSetName='PatchViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePatchTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + Patch = 'Az.ContainerInstance.private\Update-AzContainerInstanceContainerGroupProfile_Patch'; + PatchExpanded = 'Az.ContainerInstance.private\Update-AzContainerInstanceContainerGroupProfile_PatchExpanded'; + PatchViaIdentity = 'Az.ContainerInstance.private\Update-AzContainerInstanceContainerGroupProfile_PatchViaIdentity'; + PatchViaIdentityExpanded = 'Az.ContainerInstance.private\Update-AzContainerInstanceContainerGroupProfile_PatchViaIdentityExpanded'; + } + if (('Patch', 'PatchExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/ContainerInstance.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/ContainerInstance.cs index a1a4ba4eeacb..ce1d56c33a75 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/ContainerInstance.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/ContainerInstance.cs @@ -13,10 +13,1465 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance public partial class ContainerInstance { + /// + /// Gets the properties of the specified revision of the container group profile in the given subscription and resource group. + /// The operation returns the properties of container group profile including containers, image registry credentials, restart + /// policy, IP address type, OS type, volumes, current revision number, etc. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the container group profile. + /// The revision number of the container group profile. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ContainerGroupProfileGetByRevisionNumber(string subscriptionId, string resourceGroupName, string containerGroupProfileName, string revisionNumber, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + { + var apiVersion = @"2024-05-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.ContainerInstance/containerGroupProfiles/" + + global::System.Uri.EscapeDataString(containerGroupProfileName) + + "/revisions/" + + global::System.Uri.EscapeDataString(revisionNumber) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ContainerGroupProfileGetByRevisionNumber_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// + /// Gets the properties of the specified revision of the container group profile in the given subscription and resource group. + /// The operation returns the properties of container group profile including containers, image registry credentials, restart + /// policy, IP address type, OS type, volumes, current revision number, etc. + /// + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ContainerGroupProfileGetByRevisionNumberViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + { + var apiVersion = @"2024-05-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.ContainerInstance/containerGroupProfiles/(?[^/]+)/revisions/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}/revisions/{revisionNumber}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var containerGroupProfileName = _match.Groups["containerGroupProfileName"].Value; + var revisionNumber = _match.Groups["revisionNumber"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.ContainerInstance/containerGroupProfiles/" + + containerGroupProfileName + + "/revisions/" + + revisionNumber + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ContainerGroupProfileGetByRevisionNumber_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// + /// Actual wire call for method. + /// + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ContainerGroupProfileGetByRevisionNumber_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupProfile.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, + /// but you will get validation events back. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the container group profile. + /// The revision number of the container group profile. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ContainerGroupProfileGetByRevisionNumber_Validate(string subscriptionId, string resourceGroupName, string containerGroupProfileName, string revisionNumber, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(containerGroupProfileName),containerGroupProfileName); + await eventListener.AssertMinimumLength(nameof(containerGroupProfileName),containerGroupProfileName,1); + await eventListener.AssertMaximumLength(nameof(containerGroupProfileName),containerGroupProfileName,63); + await eventListener.AssertRegEx(nameof(containerGroupProfileName),containerGroupProfileName,@"^(?!.*--)[a-z0-9]([-a-z0-9]*[a-z0-9])?$"); + await eventListener.AssertNotNull(nameof(revisionNumber),revisionNumber); + } + } + + /// + /// Get a list of all the revisions of the specified container group profile in the given subscription and resource group. + /// This operation returns properties of each revision of the specified container group profile including containers, image + /// registry credentials, restart policy, IP address type, OS type volumes, revision number, etc. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the container group profile. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ContainerGroupProfileListAllRevisions(string subscriptionId, string resourceGroupName, string containerGroupProfileName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + { + var apiVersion = @"2024-05-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.ContainerInstance/containerGroupProfiles/" + + global::System.Uri.EscapeDataString(containerGroupProfileName) + + "/revisions" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ContainerGroupProfileListAllRevisions_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// + /// Get a list of all the revisions of the specified container group profile in the given subscription and resource group. + /// This operation returns properties of each revision of the specified container group profile including containers, image + /// registry credentials, restart policy, IP address type, OS type volumes, revision number, etc. + /// + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ContainerGroupProfileListAllRevisionsViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + { + var apiVersion = @"2024-05-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.ContainerInstance/containerGroupProfiles/(?[^/]+)/revisions$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}/revisions'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var containerGroupProfileName = _match.Groups["containerGroupProfileName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.ContainerInstance/containerGroupProfiles/" + + containerGroupProfileName + + "/revisions" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ContainerGroupProfileListAllRevisions_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// + /// Actual wire call for method. + /// + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ContainerGroupProfileListAllRevisions_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupProfileListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but + /// you will get validation events back. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the container group profile. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ContainerGroupProfileListAllRevisions_Validate(string subscriptionId, string resourceGroupName, string containerGroupProfileName, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(containerGroupProfileName),containerGroupProfileName); + await eventListener.AssertMinimumLength(nameof(containerGroupProfileName),containerGroupProfileName,1); + await eventListener.AssertMaximumLength(nameof(containerGroupProfileName),containerGroupProfileName,63); + await eventListener.AssertRegEx(nameof(containerGroupProfileName),containerGroupProfileName,@"^(?!.*--)[a-z0-9]([-a-z0-9]*[a-z0-9])?$"); + } + } + + /// Create or update container group profiles with specified configurations. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the container group profile. + /// The properties of the container group profile to be created or updated. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 201 (Created). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ContainerGroupProfilesCreateOrUpdate(string subscriptionId, string resourceGroupName, string containerGroupProfileName, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + { + var apiVersion = @"2024-05-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.ContainerInstance/containerGroupProfiles/" + + global::System.Uri.EscapeDataString(containerGroupProfileName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ContainerGroupProfilesCreateOrUpdate_Call(request,onOk,onCreated,onDefault,eventListener,sender); + } + } + + /// Create or update container group profiles with specified configurations. + /// + /// The properties of the container group profile to be created or updated. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 201 (Created). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ContainerGroupProfilesCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + { + var apiVersion = @"2024-05-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.ContainerInstance/containerGroupProfiles/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var containerGroupProfileName = _match.Groups["containerGroupProfileName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.ContainerInstance/containerGroupProfiles/" + + containerGroupProfileName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ContainerGroupProfilesCreateOrUpdate_Call(request,onOk,onCreated,onDefault,eventListener,sender); + } + } + + /// + /// Actual wire call for method. + /// + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 201 (Created). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ContainerGroupProfilesCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupProfile.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + case global::System.Net.HttpStatusCode.Created: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onCreated(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupProfile.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but + /// you will get validation events back. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the container group profile. + /// The properties of the container group profile to be created or updated. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ContainerGroupProfilesCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string containerGroupProfileName, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile body, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(containerGroupProfileName),containerGroupProfileName); + await eventListener.AssertMinimumLength(nameof(containerGroupProfileName),containerGroupProfileName,1); + await eventListener.AssertMaximumLength(nameof(containerGroupProfileName),containerGroupProfileName,63); + await eventListener.AssertRegEx(nameof(containerGroupProfileName),containerGroupProfileName,@"^(?!.*--)[a-z0-9]([-a-z0-9]*[a-z0-9])?$"); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// + /// Delete the specified container group profile in the specified subscription and resource group. The operation does not + /// delete other resources provided by the user, such as volumes. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the container group profile. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ContainerGroupProfilesDelete(string subscriptionId, string resourceGroupName, string containerGroupProfileName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + { + var apiVersion = @"2024-05-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.ContainerInstance/containerGroupProfiles/" + + global::System.Uri.EscapeDataString(containerGroupProfileName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Method.Delete, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ContainerGroupProfilesDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + } + } + + /// + /// Delete the specified container group profile in the specified subscription and resource group. The operation does not + /// delete other resources provided by the user, such as volumes. + /// + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ContainerGroupProfilesDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + { + var apiVersion = @"2024-05-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.ContainerInstance/containerGroupProfiles/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var containerGroupProfileName = _match.Groups["containerGroupProfileName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.ContainerInstance/containerGroupProfiles/" + + containerGroupProfileName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Method.Delete, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ContainerGroupProfilesDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ContainerGroupProfilesDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response); + break; + } + case global::System.Net.HttpStatusCode.NoContent: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onNoContent(_response); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will + /// get validation events back. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the container group profile. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ContainerGroupProfilesDelete_Validate(string subscriptionId, string resourceGroupName, string containerGroupProfileName, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(containerGroupProfileName),containerGroupProfileName); + await eventListener.AssertMinimumLength(nameof(containerGroupProfileName),containerGroupProfileName,1); + await eventListener.AssertMaximumLength(nameof(containerGroupProfileName),containerGroupProfileName,63); + await eventListener.AssertRegEx(nameof(containerGroupProfileName),containerGroupProfileName,@"^(?!.*--)[a-z0-9]([-a-z0-9]*[a-z0-9])?$"); + } + } + + /// + /// Gets the properties of the specified container group profile in the specified subscription and resource group. The operation + /// returns the properties of container group profile including containers, image registry credentials, restart policy, IP + /// address type, OS type, volumes, current revision number, etc. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the container group profile. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ContainerGroupProfilesGet(string subscriptionId, string resourceGroupName, string containerGroupProfileName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + { + var apiVersion = @"2024-05-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.ContainerInstance/containerGroupProfiles/" + + global::System.Uri.EscapeDataString(containerGroupProfileName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ContainerGroupProfilesGet_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// + /// Gets the properties of the specified container group profile in the specified subscription and resource group. The operation + /// returns the properties of container group profile including containers, image registry credentials, restart policy, IP + /// address type, OS type, volumes, current revision number, etc. + /// + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ContainerGroupProfilesGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + { + var apiVersion = @"2024-05-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.ContainerInstance/containerGroupProfiles/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var containerGroupProfileName = _match.Groups["containerGroupProfileName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.ContainerInstance/containerGroupProfiles/" + + containerGroupProfileName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ContainerGroupProfilesGet_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ContainerGroupProfilesGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupProfile.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get + /// validation events back. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the container group profile. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ContainerGroupProfilesGet_Validate(string subscriptionId, string resourceGroupName, string containerGroupProfileName, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(containerGroupProfileName),containerGroupProfileName); + await eventListener.AssertMinimumLength(nameof(containerGroupProfileName),containerGroupProfileName,1); + await eventListener.AssertMaximumLength(nameof(containerGroupProfileName),containerGroupProfileName,63); + await eventListener.AssertRegEx(nameof(containerGroupProfileName),containerGroupProfileName,@"^(?!.*--)[a-z0-9]([-a-z0-9]*[a-z0-9])?$"); + } + } + + /// + /// Get a list of container group profiles in the specified subscription. This operation returns properties of each container + /// group profile including containers, image registry credentials, restart policy, IP address type, OS type,volumes,current + /// revision number, etc. + /// + /// The ID of the target subscription. The value must be an UUID. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ContainerGroupProfilesList(string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + { + var apiVersion = @"2024-05-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/providers/Microsoft.ContainerInstance/containerGroupProfiles" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ContainerGroupProfilesList_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// + /// Get a list of container group profiles in a specified subscription and resource group. This operation returns properties + /// of each container group profile including containers, image registry credentials, restart policy, IP address type, OS + /// type volumes, current revision number, etc. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ContainerGroupProfilesListByResourceGroup(string subscriptionId, string resourceGroupName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + { + var apiVersion = @"2024-05-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.ContainerInstance/containerGroupProfiles" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ContainerGroupProfilesListByResourceGroup_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// + /// Get a list of container group profiles in a specified subscription and resource group. This operation returns properties + /// of each container group profile including containers, image registry credentials, restart policy, IP address type, OS + /// type volumes, current revision number, etc. + /// + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ContainerGroupProfilesListByResourceGroupViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + { + var apiVersion = @"2024-05-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.ContainerInstance/containerGroupProfiles$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.ContainerInstance/containerGroupProfiles" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ContainerGroupProfilesListByResourceGroup_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// + /// Actual wire call for method. + /// + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ContainerGroupProfilesListByResourceGroup_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupProfileListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, + /// but you will get validation events back. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ContainerGroupProfilesListByResourceGroup_Validate(string subscriptionId, string resourceGroupName, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + } + } + + /// + /// Get a list of container group profiles in the specified subscription. This operation returns properties of each container + /// group profile including containers, image registry credentials, restart policy, IP address type, OS type,volumes,current + /// revision number, etc. + /// + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ContainerGroupProfilesListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + { + var apiVersion = @"2024-05-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.ContainerInstance/containerGroupProfiles$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/containerGroupProfiles'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/providers/Microsoft.ContainerInstance/containerGroupProfiles" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ContainerGroupProfilesList_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ContainerGroupProfilesList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupProfileListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get + /// validation events back. + /// + /// The ID of the target subscription. The value must be an UUID. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ContainerGroupProfilesList_Validate(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); + } + } + + /// Patches container group profile with specified properties. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the container group profile. + /// The container group profile properties that need to be updated. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ContainerGroupProfilesPatch(string subscriptionId, string resourceGroupName, string containerGroupProfileName, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + { + var apiVersion = @"2024-05-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.ContainerInstance/containerGroupProfiles/" + + global::System.Uri.EscapeDataString(containerGroupProfileName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Method.Patch, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ContainerGroupProfilesPatch_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Patches container group profile with specified properties. + /// + /// The container group profile properties that need to be updated. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ContainerGroupProfilesPatchViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + { + var apiVersion = @"2024-05-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.ContainerInstance/containerGroupProfiles/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var containerGroupProfileName = _match.Groups["containerGroupProfileName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.ContainerInstance/containerGroupProfiles/" + + containerGroupProfileName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Method.Patch, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ContainerGroupProfilesPatch_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ContainerGroupProfilesPatch_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupProfile.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will + /// get validation events back. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the container group profile. + /// The container group profile properties that need to be updated. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ContainerGroupProfilesPatch_Validate(string subscriptionId, string resourceGroupName, string containerGroupProfileName, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePatch body, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(containerGroupProfileName),containerGroupProfileName); + await eventListener.AssertMinimumLength(nameof(containerGroupProfileName),containerGroupProfileName,1); + await eventListener.AssertMaximumLength(nameof(containerGroupProfileName),containerGroupProfileName,63); + await eventListener.AssertRegEx(nameof(containerGroupProfileName),containerGroupProfileName,@"^(?!.*--)[a-z0-9]([-a-z0-9]*[a-z0-9])?$"); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + /// Create or update container groups with specified configurations. - /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription - /// ID forms part of the URI for every service call. - /// The name of the resource group. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the container group. /// The properties of the container group to be created or updated. /// a delegate that is called when the remote service returns 200 (OK). @@ -27,9 +1482,9 @@ public partial class ContainerInstance /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ContainerGroupsCreateOrUpdate(string subscriptionId, string resourceGroupName, string containerGroupName, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ContainerGroupsCreateOrUpdate(string subscriptionId, string resourceGroupName, string containerGroupName, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) { - var apiVersion = @"2022-10-01-preview"; + var apiVersion = @"2024-05-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -73,9 +1528,9 @@ public partial class ContainerInstance /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ContainerGroupsCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ContainerGroupsCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) { - var apiVersion = @"2022-10-01-preview"; + var apiVersion = @"2024-05-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -130,7 +1585,7 @@ public partial class ContainerInstance /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ContainerGroupsCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ContainerGroupsCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -247,13 +1702,13 @@ public partial class ContainerInstance case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroup.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroup.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -272,21 +1727,23 @@ public partial class ContainerInstance /// Validation method for method. Call this like the actual call, but you will /// get validation events back. /// - /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription - /// ID forms part of the URI for every service call. - /// The name of the resource group. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the container group. /// The properties of the container group to be created or updated. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ContainerGroupsCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string containerGroupName, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup body, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ContainerGroupsCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string containerGroupName, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup body, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(containerGroupName),containerGroupName); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); @@ -297,9 +1754,8 @@ public partial class ContainerInstance /// Delete the specified container group in the specified subscription and resource group. The operation does not delete other /// resources provided by the user, such as volumes. /// - /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription - /// ID forms part of the URI for every service call. - /// The name of the resource group. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the container group. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns 204 (NoContent). @@ -310,9 +1766,9 @@ public partial class ContainerInstance /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ContainerGroupsDelete(string subscriptionId, string resourceGroupName, string containerGroupName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ContainerGroupsDelete(string subscriptionId, string resourceGroupName, string containerGroupName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) { - var apiVersion = @"2022-10-01-preview"; + var apiVersion = @"2024-05-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -355,9 +1811,9 @@ public partial class ContainerInstance /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ContainerGroupsDeleteViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ContainerGroupsDeleteViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) { - var apiVersion = @"2022-10-01-preview"; + var apiVersion = @"2024-05-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -409,7 +1865,7 @@ public partial class ContainerInstance /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ContainerGroupsDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ContainerGroupsDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -527,7 +1983,7 @@ public partial class ContainerInstance case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroup.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroup.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } case global::System.Net.HttpStatusCode.NoContent: @@ -539,7 +1995,7 @@ public partial class ContainerInstance default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -558,9 +2014,8 @@ public partial class ContainerInstance /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription - /// ID forms part of the URI for every service call. - /// The name of the resource group. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the container group. /// an instance that will receive events. /// @@ -571,7 +2026,10 @@ public partial class ContainerInstance using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(containerGroupName),containerGroupName); } } @@ -581,9 +2039,8 @@ public partial class ContainerInstance /// the properties of each container group including containers, image registry credentials, restart policy, IP address type, /// OS type, state, and volumes. /// - /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription - /// ID forms part of the URI for every service call. - /// The name of the resource group. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the container group. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -593,9 +2050,9 @@ public partial class ContainerInstance /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ContainerGroupsGet(string subscriptionId, string resourceGroupName, string containerGroupName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ContainerGroupsGet(string subscriptionId, string resourceGroupName, string containerGroupName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) { - var apiVersion = @"2022-10-01-preview"; + var apiVersion = @"2024-05-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -628,9 +2085,8 @@ public partial class ContainerInstance /// Gets all the network dependencies for this container group to allow complete control of network setting and configuration. /// For container groups, this will always be an empty list. /// - /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription - /// ID forms part of the URI for every service call. - /// The name of the resource group. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the container group. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -640,9 +2096,9 @@ public partial class ContainerInstance /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ContainerGroupsGetOutboundNetworkDependenciesEndpoints(string subscriptionId, string resourceGroupName, string containerGroupName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ContainerGroupsGetOutboundNetworkDependenciesEndpoints(string subscriptionId, string resourceGroupName, string containerGroupName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) { - var apiVersion = @"2022-10-01-preview"; + var apiVersion = @"2024-05-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -685,9 +2141,9 @@ public partial class ContainerInstance /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ContainerGroupsGetOutboundNetworkDependenciesEndpointsViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ContainerGroupsGetOutboundNetworkDependenciesEndpointsViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) { - var apiVersion = @"2022-10-01-preview"; + var apiVersion = @"2024-05-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -741,7 +2197,7 @@ public partial class ContainerInstance /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ContainerGroupsGetOutboundNetworkDependenciesEndpoints_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ContainerGroupsGetOutboundNetworkDependenciesEndpoints_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -765,7 +2221,7 @@ public partial class ContainerInstance default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -784,9 +2240,8 @@ public partial class ContainerInstance /// Validation method for method. Call this like the /// actual call, but you will get validation events back. /// - /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription - /// ID forms part of the URI for every service call. - /// The name of the resource group. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the container group. /// an instance that will receive events. /// @@ -797,7 +2252,10 @@ public partial class ContainerInstance using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(containerGroupName),containerGroupName); } } @@ -816,9 +2274,9 @@ public partial class ContainerInstance /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ContainerGroupsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ContainerGroupsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) { - var apiVersion = @"2022-10-01-preview"; + var apiVersion = @"2024-05-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -869,7 +2327,7 @@ public partial class ContainerInstance /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ContainerGroupsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ContainerGroupsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -887,13 +2345,13 @@ public partial class ContainerInstance case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroup.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroup.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -912,9 +2370,8 @@ public partial class ContainerInstance /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription - /// ID forms part of the URI for every service call. - /// The name of the resource group. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the container group. /// an instance that will receive events. /// @@ -925,7 +2382,10 @@ public partial class ContainerInstance using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(containerGroupName),containerGroupName); } } @@ -934,8 +2394,7 @@ public partial class ContainerInstance /// Get a list of container groups in the specified subscription. This operation returns properties of each container group /// including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes. /// - /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription - /// ID forms part of the URI for every service call. + /// The ID of the target subscription. The value must be an UUID. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -944,9 +2403,9 @@ public partial class ContainerInstance /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ContainerGroupsList(string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ContainerGroupsList(string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) { - var apiVersion = @"2022-10-01-preview"; + var apiVersion = @"2024-05-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -977,9 +2436,8 @@ public partial class ContainerInstance /// container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and /// volumes. /// - /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription - /// ID forms part of the URI for every service call. - /// The name of the resource group. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -988,9 +2446,9 @@ public partial class ContainerInstance /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ContainerGroupsListByResourceGroup(string subscriptionId, string resourceGroupName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ContainerGroupsListByResourceGroup(string subscriptionId, string resourceGroupName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) { - var apiVersion = @"2022-10-01-preview"; + var apiVersion = @"2024-05-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1032,9 +2490,9 @@ public partial class ContainerInstance /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ContainerGroupsListByResourceGroupViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ContainerGroupsListByResourceGroupViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) { - var apiVersion = @"2022-10-01-preview"; + var apiVersion = @"2024-05-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1083,7 +2541,7 @@ public partial class ContainerInstance /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ContainerGroupsListByResourceGroup_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ContainerGroupsListByResourceGroup_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -1101,13 +2559,13 @@ public partial class ContainerInstance case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroupListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1126,9 +2584,8 @@ public partial class ContainerInstance /// Validation method for method. Call this like the actual call, but you /// will get validation events back. /// - /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription - /// ID forms part of the URI for every service call. - /// The name of the resource group. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -1138,7 +2595,10 @@ public partial class ContainerInstance using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); } } @@ -1155,9 +2615,9 @@ public partial class ContainerInstance /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ContainerGroupsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ContainerGroupsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) { - var apiVersion = @"2022-10-01-preview"; + var apiVersion = @"2024-05-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1203,7 +2663,7 @@ public partial class ContainerInstance /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ContainerGroupsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ContainerGroupsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -1221,13 +2681,13 @@ public partial class ContainerInstance case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroupListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1246,8 +2706,7 @@ public partial class ContainerInstance /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription - /// ID forms part of the URI for every service call. + /// The ID of the target subscription. The value must be an UUID. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -1257,15 +2716,15 @@ public partial class ContainerInstance using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); } } /// /// Restarts all containers in a container group in place. If container image has updates, new image will be downloaded. /// - /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription - /// ID forms part of the URI for every service call. - /// The name of the resource group. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the container group. /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled @@ -1275,9 +2734,9 @@ public partial class ContainerInstance /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ContainerGroupsRestart(string subscriptionId, string resourceGroupName, string containerGroupName, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ContainerGroupsRestart(string subscriptionId, string resourceGroupName, string containerGroupName, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) { - var apiVersion = @"2022-10-01-preview"; + var apiVersion = @"2024-05-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1319,9 +2778,9 @@ public partial class ContainerInstance /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ContainerGroupsRestartViaIdentity(global::System.String viaIdentity, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ContainerGroupsRestartViaIdentity(global::System.String viaIdentity, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) { - var apiVersion = @"2022-10-01-preview"; + var apiVersion = @"2024-05-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1373,7 +2832,7 @@ public partial class ContainerInstance /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ContainerGroupsRestart_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ContainerGroupsRestart_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -1497,7 +2956,7 @@ public partial class ContainerInstance default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1516,9 +2975,8 @@ public partial class ContainerInstance /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription - /// ID forms part of the URI for every service call. - /// The name of the resource group. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the container group. /// an instance that will receive events. /// @@ -1529,7 +2987,10 @@ public partial class ContainerInstance using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(containerGroupName),containerGroupName); } } @@ -1537,9 +2998,8 @@ public partial class ContainerInstance /// /// Starts all containers in a container group. Compute resources will be allocated and billing will start. /// - /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription - /// ID forms part of the URI for every service call. - /// The name of the resource group. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the container group. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns 204 (NoContent). @@ -1550,9 +3010,9 @@ public partial class ContainerInstance /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ContainerGroupsStart(string subscriptionId, string resourceGroupName, string containerGroupName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ContainerGroupsStart(string subscriptionId, string resourceGroupName, string containerGroupName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) { - var apiVersion = @"2022-10-01-preview"; + var apiVersion = @"2024-05-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1595,9 +3055,9 @@ public partial class ContainerInstance /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ContainerGroupsStartViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ContainerGroupsStartViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) { - var apiVersion = @"2022-10-01-preview"; + var apiVersion = @"2024-05-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1650,7 +3110,7 @@ public partial class ContainerInstance /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ContainerGroupsStart_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ContainerGroupsStart_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -1780,7 +3240,7 @@ public partial class ContainerInstance default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1799,9 +3259,8 @@ public partial class ContainerInstance /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription - /// ID forms part of the URI for every service call. - /// The name of the resource group. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the container group. /// an instance that will receive events. /// @@ -1812,7 +3271,10 @@ public partial class ContainerInstance using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(containerGroupName),containerGroupName); } } @@ -1820,9 +3282,8 @@ public partial class ContainerInstance /// /// Stops all containers in a container group. Compute resources will be deallocated and billing will stop. /// - /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription - /// ID forms part of the URI for every service call. - /// The name of the resource group. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the container group. /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled @@ -1832,9 +3293,9 @@ public partial class ContainerInstance /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ContainerGroupsStop(string subscriptionId, string resourceGroupName, string containerGroupName, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ContainerGroupsStop(string subscriptionId, string resourceGroupName, string containerGroupName, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) { - var apiVersion = @"2022-10-01-preview"; + var apiVersion = @"2024-05-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1876,9 +3337,9 @@ public partial class ContainerInstance /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ContainerGroupsStopViaIdentity(global::System.String viaIdentity, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ContainerGroupsStopViaIdentity(global::System.String viaIdentity, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) { - var apiVersion = @"2022-10-01-preview"; + var apiVersion = @"2024-05-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1930,7 +3391,7 @@ public partial class ContainerInstance /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ContainerGroupsStop_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ContainerGroupsStop_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -1954,7 +3415,7 @@ public partial class ContainerInstance default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1973,9 +3434,8 @@ public partial class ContainerInstance /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription - /// ID forms part of the URI for every service call. - /// The name of the resource group. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the container group. /// an instance that will receive events. /// @@ -1986,15 +3446,17 @@ public partial class ContainerInstance using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(containerGroupName),containerGroupName); } } /// Updates container group tags with specified values. - /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription - /// ID forms part of the URI for every service call. - /// The name of the resource group. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the container group. /// The container group resource with just the tags to be updated. /// a delegate that is called when the remote service returns 200 (OK). @@ -2005,9 +3467,9 @@ public partial class ContainerInstance /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ContainerGroupsUpdate(string subscriptionId, string resourceGroupName, string containerGroupName, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResource body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ContainerGroupsUpdate(string subscriptionId, string resourceGroupName, string containerGroupName, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResource body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) { - var apiVersion = @"2022-10-01-preview"; + var apiVersion = @"2024-05-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2051,9 +3513,9 @@ public partial class ContainerInstance /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ContainerGroupsUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResource body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ContainerGroupsUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResource body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) { - var apiVersion = @"2022-10-01-preview"; + var apiVersion = @"2024-05-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2108,7 +3570,7 @@ public partial class ContainerInstance /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ContainerGroupsUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ContainerGroupsUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -2126,13 +3588,13 @@ public partial class ContainerInstance case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroup.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroup.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -2151,21 +3613,23 @@ public partial class ContainerInstance /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription - /// ID forms part of the URI for every service call. - /// The name of the resource group. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the container group. /// The container group resource with just the tags to be updated. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ContainerGroupsUpdate_Validate(string subscriptionId, string resourceGroupName, string containerGroupName, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResource body, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ContainerGroupsUpdate_Validate(string subscriptionId, string resourceGroupName, string containerGroupName, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResource body, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(containerGroupName),containerGroupName); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); @@ -2175,9 +3639,8 @@ public partial class ContainerInstance /// /// Attach to the output stream of a specific container instance in a specified resource group and container group. /// - /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription - /// ID forms part of the URI for every service call. - /// The name of the resource group. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the container group. /// The name of the container instance. /// a delegate that is called when the remote service returns 200 (OK). @@ -2188,9 +3651,9 @@ public partial class ContainerInstance /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ContainersAttach(string subscriptionId, string resourceGroupName, string containerGroupName, string containerName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ContainersAttach(string subscriptionId, string resourceGroupName, string containerGroupName, string containerName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) { - var apiVersion = @"2022-10-01-preview"; + var apiVersion = @"2024-05-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2234,9 +3697,9 @@ public partial class ContainerInstance /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ContainersAttachViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ContainersAttachViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) { - var apiVersion = @"2022-10-01-preview"; + var apiVersion = @"2024-05-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2291,7 +3754,7 @@ public partial class ContainerInstance /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ContainersAttach_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ContainersAttach_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -2309,13 +3772,13 @@ public partial class ContainerInstance case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerAttachResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerAttachResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -2334,9 +3797,8 @@ public partial class ContainerInstance /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription - /// ID forms part of the URI for every service call. - /// The name of the resource group. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the container group. /// The name of the container instance. /// an instance that will receive events. @@ -2348,7 +3810,10 @@ public partial class ContainerInstance using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(containerGroupName),containerGroupName); await eventListener.AssertNotNull(nameof(containerName),containerName); } @@ -2357,9 +3822,8 @@ public partial class ContainerInstance /// /// Executes a command for a specific container instance in a specified resource group and container group. /// - /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription - /// ID forms part of the URI for every service call. - /// The name of the resource group. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the container group. /// The name of the container instance. /// The request for the exec command. @@ -2371,9 +3835,9 @@ public partial class ContainerInstance /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ContainersExecuteCommand(string subscriptionId, string resourceGroupName, string containerGroupName, string containerName, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ContainersExecuteCommand(string subscriptionId, string resourceGroupName, string containerGroupName, string containerName, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) { - var apiVersion = @"2022-10-01-preview"; + var apiVersion = @"2024-05-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2422,9 +3886,9 @@ public partial class ContainerInstance /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ContainersExecuteCommandViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ContainersExecuteCommandViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) { - var apiVersion = @"2022-10-01-preview"; + var apiVersion = @"2024-05-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2483,7 +3947,7 @@ public partial class ContainerInstance /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ContainersExecuteCommand_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ContainersExecuteCommand_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -2501,13 +3965,13 @@ public partial class ContainerInstance case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerExecResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerExecResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -2526,9 +3990,8 @@ public partial class ContainerInstance /// Validation method for method. Call this like the actual call, but you will get /// validation events back. /// - /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription - /// ID forms part of the URI for every service call. - /// The name of the resource group. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the container group. /// The name of the container instance. /// The request for the exec command. @@ -2536,12 +3999,15 @@ public partial class ContainerInstance /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ContainersExecuteCommand_Validate(string subscriptionId, string resourceGroupName, string containerGroupName, string containerName, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecRequest body, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ContainersExecuteCommand_Validate(string subscriptionId, string resourceGroupName, string containerGroupName, string containerName, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecRequest body, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(containerGroupName),containerGroupName); await eventListener.AssertNotNull(nameof(containerName),containerName); await eventListener.AssertNotNull(nameof(body), body); @@ -2552,9 +4018,8 @@ public partial class ContainerInstance /// /// Get the logs for a specified container instance in a specified resource group and container group. /// - /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription - /// ID forms part of the URI for every service call. - /// The name of the resource group. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the container group. /// The name of the container instance. /// The number of lines to show from the tail of the container instance log. If not provided, all available @@ -2569,9 +4034,9 @@ public partial class ContainerInstance /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ContainersListLogs(string subscriptionId, string resourceGroupName, string containerGroupName, string containerName, int? tail, bool? timestamps, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ContainersListLogs(string subscriptionId, string resourceGroupName, string containerGroupName, string containerName, int? tail, bool? timestamps, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) { - var apiVersion = @"2022-10-01-preview"; + var apiVersion = @"2024-05-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2623,9 +4088,9 @@ public partial class ContainerInstance /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ContainersListLogsViaIdentity(global::System.String viaIdentity, int? tail, bool? timestamps, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ContainersListLogsViaIdentity(global::System.String viaIdentity, int? tail, bool? timestamps, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) { - var apiVersion = @"2022-10-01-preview"; + var apiVersion = @"2024-05-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2684,7 +4149,7 @@ public partial class ContainerInstance /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ContainersListLogs_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ContainersListLogs_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -2702,13 +4167,13 @@ public partial class ContainerInstance case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.Logs.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Logs.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -2727,9 +4192,8 @@ public partial class ContainerInstance /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription - /// ID forms part of the URI for every service call. - /// The name of the resource group. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the container group. /// The name of the container instance. /// The number of lines to show from the tail of the container instance log. If not provided, all available @@ -2745,7 +4209,10 @@ public partial class ContainerInstance using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(containerGroupName),containerGroupName); await eventListener.AssertNotNull(nameof(containerName),containerName); } @@ -2754,9 +4221,8 @@ public partial class ContainerInstance /// /// Get the list of cached images on specific OS type for a subscription in a region. /// - /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription - /// ID forms part of the URI for every service call. - /// The identifier for the physical azure location. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the Azure region. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -2765,9 +4231,9 @@ public partial class ContainerInstance /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task LocationListCachedImages(string subscriptionId, string location, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task LocationListCachedImages(string subscriptionId, string location, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) { - var apiVersion = @"2022-10-01-preview"; + var apiVersion = @"2024-05-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2807,9 +4273,9 @@ public partial class ContainerInstance /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task LocationListCachedImagesViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task LocationListCachedImagesViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) { - var apiVersion = @"2022-10-01-preview"; + var apiVersion = @"2024-05-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2858,7 +4324,7 @@ public partial class ContainerInstance /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task LocationListCachedImages_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task LocationListCachedImages_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -2876,13 +4342,13 @@ public partial class ContainerInstance case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.CachedImagesListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.CachedImagesListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -2901,9 +4367,8 @@ public partial class ContainerInstance /// Validation method for method. Call this like the actual call, but you will get /// validation events back. /// - /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription - /// ID forms part of the URI for every service call. - /// The identifier for the physical azure location. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the Azure region. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -2913,14 +4378,15 @@ public partial class ContainerInstance using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(location),location); + await eventListener.AssertMinimumLength(nameof(location),location,1); } } /// Get the list of CPU/memory/GPU capabilities of a region. - /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription - /// ID forms part of the URI for every service call. - /// The identifier for the physical azure location. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the Azure region. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -2929,9 +4395,9 @@ public partial class ContainerInstance /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task LocationListCapabilities(string subscriptionId, string location, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task LocationListCapabilities(string subscriptionId, string location, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) { - var apiVersion = @"2022-10-01-preview"; + var apiVersion = @"2024-05-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2969,9 +4435,9 @@ public partial class ContainerInstance /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task LocationListCapabilitiesViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task LocationListCapabilitiesViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) { - var apiVersion = @"2022-10-01-preview"; + var apiVersion = @"2024-05-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3020,7 +4486,7 @@ public partial class ContainerInstance /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task LocationListCapabilities_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task LocationListCapabilities_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -3038,13 +4504,13 @@ public partial class ContainerInstance case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.CapabilitiesListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.CapabilitiesListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -3063,9 +4529,8 @@ public partial class ContainerInstance /// Validation method for method. Call this like the actual call, but you will get /// validation events back. /// - /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription - /// ID forms part of the URI for every service call. - /// The identifier for the physical azure location. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the Azure region. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -3075,14 +4540,15 @@ public partial class ContainerInstance using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(location),location); + await eventListener.AssertMinimumLength(nameof(location),location,1); } } /// Get the usage for a subscription - /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription - /// ID forms part of the URI for every service call. - /// The identifier for the physical azure location. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the Azure region. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -3091,9 +4557,9 @@ public partial class ContainerInstance /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task LocationListUsage(string subscriptionId, string location, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task LocationListUsage(string subscriptionId, string location, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) { - var apiVersion = @"2022-10-01-preview"; + var apiVersion = @"2024-05-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3131,9 +4597,9 @@ public partial class ContainerInstance /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task LocationListUsageViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task LocationListUsageViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) { - var apiVersion = @"2022-10-01-preview"; + var apiVersion = @"2024-05-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3182,7 +4648,7 @@ public partial class ContainerInstance /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task LocationListUsage_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task LocationListUsage_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -3200,13 +4666,13 @@ public partial class ContainerInstance case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.UsageListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.UsageListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -3225,9 +4691,8 @@ public partial class ContainerInstance /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription - /// ID forms part of the URI for every service call. - /// The identifier for the physical azure location. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the Azure region. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -3237,7 +4702,9 @@ public partial class ContainerInstance using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(location),location); + await eventListener.AssertMinimumLength(nameof(location),location,1); } } @@ -3250,9 +4717,9 @@ public partial class ContainerInstance /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task OperationsList(global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task OperationsList(global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) { - var apiVersion = @"2022-10-01-preview"; + var apiVersion = @"2024-05-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3286,9 +4753,9 @@ public partial class ContainerInstance /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task OperationsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task OperationsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) { - var apiVersion = @"2022-10-01-preview"; + var apiVersion = @"2024-05-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3331,7 +4798,7 @@ public partial class ContainerInstance /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task OperationsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task OperationsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -3349,13 +4816,13 @@ public partial class ContainerInstance case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.OperationListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.OperationListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -3390,9 +4857,8 @@ public partial class ContainerInstance /// Delete container group virtual network association links. The operation does not delete other resources provided by the /// user. /// - /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription - /// ID forms part of the URI for every service call. - /// The name of the resource group. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the virtual network. /// The name of the subnet. /// a delegate that is called when the remote service returns 200 (OK). @@ -3404,9 +4870,9 @@ public partial class ContainerInstance /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SubnetServiceAssociationLinkDelete(string subscriptionId, string resourceGroupName, string virtualNetworkName, string subnetName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SubnetServiceAssociationLinkDelete(string subscriptionId, string resourceGroupName, string virtualNetworkName, string subnetName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) { - var apiVersion = @"2022-10-01-preview"; + var apiVersion = @"2024-05-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3452,9 +4918,9 @@ public partial class ContainerInstance /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SubnetServiceAssociationLinkDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SubnetServiceAssociationLinkDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) { - var apiVersion = @"2022-10-01-preview"; + var apiVersion = @"2024-05-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3510,7 +4976,7 @@ public partial class ContainerInstance /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task SubnetServiceAssociationLinkDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task SubnetServiceAssociationLinkDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -3640,7 +5106,7 @@ public partial class ContainerInstance default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -3659,9 +5125,8 @@ public partial class ContainerInstance /// Validation method for method. Call this like the actual call, but you /// will get validation events back. /// - /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription - /// ID forms part of the URI for every service call. - /// The name of the resource group. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the virtual network. /// The name of the subnet. /// an instance that will receive events. @@ -3673,7 +5138,10 @@ public partial class ContainerInstance using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(virtualNetworkName),virtualNetworkName); await eventListener.AssertNotNull(nameof(subnetName),subnetName); } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/AzureFileVolume.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/AzureFileVolume.PowerShell.cs similarity index 85% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/AzureFileVolume.PowerShell.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/AzureFileVolume.PowerShell.cs index 4d6072fe2913..6a422e818bf4 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/AzureFileVolume.PowerShell.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/AzureFileVolume.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -65,7 +65,7 @@ public partial class AzureFileVolume partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -80,25 +80,25 @@ internal AzureFileVolume(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("ShareName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IAzureFileVolumeInternal)this).ShareName = (string) content.GetValueForProperty("ShareName",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IAzureFileVolumeInternal)this).ShareName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IAzureFileVolumeInternal)this).ShareName = (string) content.GetValueForProperty("ShareName",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IAzureFileVolumeInternal)this).ShareName, global::System.Convert.ToString); } if (content.Contains("ReadOnly")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IAzureFileVolumeInternal)this).ReadOnly = (bool?) content.GetValueForProperty("ReadOnly",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IAzureFileVolumeInternal)this).ReadOnly, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IAzureFileVolumeInternal)this).ReadOnly = (bool?) content.GetValueForProperty("ReadOnly",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IAzureFileVolumeInternal)this).ReadOnly, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("StorageAccountName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IAzureFileVolumeInternal)this).StorageAccountName = (string) content.GetValueForProperty("StorageAccountName",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IAzureFileVolumeInternal)this).StorageAccountName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IAzureFileVolumeInternal)this).StorageAccountName = (string) content.GetValueForProperty("StorageAccountName",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IAzureFileVolumeInternal)this).StorageAccountName, global::System.Convert.ToString); } if (content.Contains("StorageAccountKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IAzureFileVolumeInternal)this).StorageAccountKey = (string) content.GetValueForProperty("StorageAccountKey",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IAzureFileVolumeInternal)this).StorageAccountKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IAzureFileVolumeInternal)this).StorageAccountKey = (string) content.GetValueForProperty("StorageAccountKey",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IAzureFileVolumeInternal)this).StorageAccountKey, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -113,47 +113,47 @@ internal AzureFileVolume(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("ShareName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IAzureFileVolumeInternal)this).ShareName = (string) content.GetValueForProperty("ShareName",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IAzureFileVolumeInternal)this).ShareName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IAzureFileVolumeInternal)this).ShareName = (string) content.GetValueForProperty("ShareName",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IAzureFileVolumeInternal)this).ShareName, global::System.Convert.ToString); } if (content.Contains("ReadOnly")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IAzureFileVolumeInternal)this).ReadOnly = (bool?) content.GetValueForProperty("ReadOnly",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IAzureFileVolumeInternal)this).ReadOnly, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IAzureFileVolumeInternal)this).ReadOnly = (bool?) content.GetValueForProperty("ReadOnly",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IAzureFileVolumeInternal)this).ReadOnly, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("StorageAccountName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IAzureFileVolumeInternal)this).StorageAccountName = (string) content.GetValueForProperty("StorageAccountName",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IAzureFileVolumeInternal)this).StorageAccountName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IAzureFileVolumeInternal)this).StorageAccountName = (string) content.GetValueForProperty("StorageAccountName",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IAzureFileVolumeInternal)this).StorageAccountName, global::System.Convert.ToString); } if (content.Contains("StorageAccountKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IAzureFileVolumeInternal)this).StorageAccountKey = (string) content.GetValueForProperty("StorageAccountKey",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IAzureFileVolumeInternal)this).StorageAccountKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IAzureFileVolumeInternal)this).StorageAccountKey = (string) content.GetValueForProperty("StorageAccountKey",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IAzureFileVolumeInternal)this).StorageAccountKey, global::System.Convert.ToString); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IAzureFileVolume DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IAzureFileVolume DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AzureFileVolume(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IAzureFileVolume DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IAzureFileVolume DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureFileVolume(content); } @@ -163,7 +163,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api202 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IAzureFileVolume FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IAzureFileVolume FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/AzureFileVolume.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/AzureFileVolume.TypeConverter.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/AzureFileVolume.TypeConverter.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/AzureFileVolume.TypeConverter.cs index 397f682b09bc..aa3599221f81 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/AzureFileVolume.TypeConverter.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/AzureFileVolume.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IAzureFileVolume ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IAzureFileVolume ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IAzureFileVolume).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IAzureFileVolume).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/AzureFileVolume.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/AzureFileVolume.cs similarity index 98% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/AzureFileVolume.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/AzureFileVolume.cs index 060b40ecb454..bd9cadac2b04 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/AzureFileVolume.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/AzureFileVolume.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -11,8 +11,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api2022100 /// The properties of the Azure File volume. Azure File shares are mounted as volumes. /// public partial class AzureFileVolume : - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IAzureFileVolume, - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IAzureFileVolumeInternal + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IAzureFileVolume, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IAzureFileVolumeInternal { /// Backing field for property. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/AzureFileVolume.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/AzureFileVolume.json.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/AzureFileVolume.json.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/AzureFileVolume.json.cs index 883dd8673f6f..0d2e0fdc076f 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/AzureFileVolume.json.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/AzureFileVolume.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -75,13 +75,13 @@ internal AzureFileVolume(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Ru } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IAzureFileVolume. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IAzureFileVolume. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IAzureFileVolume. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IAzureFileVolume. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IAzureFileVolume FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IAzureFileVolume FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new AzureFileVolume(json) : null; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CachedImages.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CachedImages.PowerShell.cs similarity index 89% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CachedImages.PowerShell.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CachedImages.PowerShell.cs index 069252e6ca76..e45abea9278f 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CachedImages.PowerShell.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CachedImages.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -63,7 +63,7 @@ public partial class CachedImages partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -78,17 +78,17 @@ internal CachedImages(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("OSType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICachedImagesInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICachedImagesInternal)this).OSType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICachedImagesInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICachedImagesInternal)this).OSType, global::System.Convert.ToString); } if (content.Contains("Image")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICachedImagesInternal)this).Image = (string) content.GetValueForProperty("Image",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICachedImagesInternal)this).Image, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICachedImagesInternal)this).Image = (string) content.GetValueForProperty("Image",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICachedImagesInternal)this).Image, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -103,39 +103,39 @@ internal CachedImages(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("OSType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICachedImagesInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICachedImagesInternal)this).OSType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICachedImagesInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICachedImagesInternal)this).OSType, global::System.Convert.ToString); } if (content.Contains("Image")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICachedImagesInternal)this).Image = (string) content.GetValueForProperty("Image",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICachedImagesInternal)this).Image, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICachedImagesInternal)this).Image = (string) content.GetValueForProperty("Image",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICachedImagesInternal)this).Image, global::System.Convert.ToString); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICachedImages DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICachedImages DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new CachedImages(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICachedImages DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICachedImages DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new CachedImages(content); } @@ -145,7 +145,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api202 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICachedImages FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICachedImages FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CachedImages.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CachedImages.TypeConverter.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CachedImages.TypeConverter.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CachedImages.TypeConverter.cs index 2cd244fc386a..b20b1c17fece 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CachedImages.TypeConverter.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CachedImages.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICachedImages ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICachedImages ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICachedImages).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICachedImages).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CachedImages.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CachedImages.cs similarity index 96% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CachedImages.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CachedImages.cs index 8577cfe7214b..d413b3475e34 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CachedImages.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CachedImages.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; /// The cached image and OS type. public partial class CachedImages : - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICachedImages, - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICachedImagesInternal + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICachedImages, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICachedImagesInternal { /// Backing field for property. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CachedImages.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CachedImages.json.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CachedImages.json.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CachedImages.json.cs index d675338102aa..71eb508c2f41 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CachedImages.json.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CachedImages.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -71,13 +71,13 @@ internal CachedImages(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runti } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICachedImages. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICachedImages. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICachedImages. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICachedImages. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICachedImages FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICachedImages FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new CachedImages(json) : null; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CachedImagesListResult.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CachedImagesListResult.PowerShell.cs similarity index 86% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CachedImagesListResult.PowerShell.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CachedImagesListResult.PowerShell.cs index 3adf6549454e..a0d7fc5b1c05 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CachedImagesListResult.PowerShell.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CachedImagesListResult.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -63,7 +63,7 @@ public partial class CachedImagesListResult partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -78,17 +78,17 @@ internal CachedImagesListResult(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICachedImagesListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICachedImages[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICachedImagesListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.CachedImagesTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICachedImagesListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICachedImages[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICachedImagesListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.CachedImagesTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICachedImagesListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICachedImagesListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICachedImagesListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICachedImagesListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -103,39 +103,39 @@ internal CachedImagesListResult(global::System.Management.Automation.PSObject co // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICachedImagesListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICachedImages[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICachedImagesListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.CachedImagesTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICachedImagesListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICachedImages[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICachedImagesListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.CachedImagesTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICachedImagesListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICachedImagesListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICachedImagesListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICachedImagesListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICachedImagesListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICachedImagesListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new CachedImagesListResult(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICachedImagesListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICachedImagesListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new CachedImagesListResult(content); } @@ -145,7 +145,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api202 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICachedImagesListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICachedImagesListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CachedImagesListResult.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CachedImagesListResult.TypeConverter.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CachedImagesListResult.TypeConverter.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CachedImagesListResult.TypeConverter.cs index 3334ec8d45ef..765393b12927 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CachedImagesListResult.TypeConverter.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CachedImagesListResult.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICachedImagesListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICachedImagesListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICachedImagesListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICachedImagesListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CachedImagesListResult.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CachedImagesListResult.cs similarity index 88% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CachedImagesListResult.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CachedImagesListResult.cs index 9d41337f2a07..94d4d3dd6107 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CachedImagesListResult.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CachedImagesListResult.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; /// The response containing cached images. public partial class CachedImagesListResult : - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICachedImagesListResult, - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICachedImagesListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICachedImagesListResult, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICachedImagesListResultInternal { /// Backing field for property. @@ -21,11 +21,11 @@ public partial class CachedImagesListResult : public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICachedImages[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICachedImages[] _value; /// The list of cached images. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICachedImages[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICachedImages[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public CachedImagesListResult() @@ -51,8 +51,8 @@ public partial interface ICachedImagesListResult : ReadOnly = false, Description = @"The list of cached images.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICachedImages) })] - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICachedImages[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICachedImages) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICachedImages[] Value { get; set; } } /// The response containing cached images. @@ -62,7 +62,7 @@ internal partial interface ICachedImagesListResultInternal /// The URI to fetch the next page of cached images. string NextLink { get; set; } /// The list of cached images. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICachedImages[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICachedImages[] Value { get; set; } } } \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CachedImagesListResult.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CachedImagesListResult.json.cs similarity index 94% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CachedImagesListResult.json.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CachedImagesListResult.json.cs index 6f22b1dacd77..1b8d77cf0e26 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CachedImagesListResult.json.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CachedImagesListResult.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -65,19 +65,19 @@ internal CachedImagesListResult(Microsoft.Azure.PowerShell.Cmdlets.ContainerInst { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICachedImages) (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.CachedImages.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICachedImages) (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.CachedImages.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICachedImagesListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICachedImagesListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICachedImagesListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICachedImagesListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICachedImagesListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICachedImagesListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new CachedImagesListResult(json) : null; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Capabilities.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Capabilities.PowerShell.cs similarity index 81% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Capabilities.PowerShell.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Capabilities.PowerShell.cs index 79d7f2c57029..bacfd0b824bf 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Capabilities.PowerShell.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Capabilities.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -63,7 +63,7 @@ public partial class Capabilities partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -78,45 +78,45 @@ internal Capabilities(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Capability")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesInternal)this).Capability = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesAutoGenerated) content.GetValueForProperty("Capability",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesInternal)this).Capability, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.CapabilitiesAutoGeneratedTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesInternal)this).Capability = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesAutoGenerated) content.GetValueForProperty("Capability",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesInternal)this).Capability, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.CapabilitiesAutoGeneratedTypeConverter.ConvertFrom); } if (content.Contains("ResourceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesInternal)this).ResourceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesInternal)this).ResourceType, global::System.Convert.ToString); } if (content.Contains("OSType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesInternal)this).OSType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesInternal)this).OSType, global::System.Convert.ToString); } if (content.Contains("Location")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesInternal)this).Location, global::System.Convert.ToString); } if (content.Contains("IPAddressType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesInternal)this).IPAddressType = (string) content.GetValueForProperty("IPAddressType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesInternal)this).IPAddressType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesInternal)this).IPAddressType = (string) content.GetValueForProperty("IPAddressType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesInternal)this).IPAddressType, global::System.Convert.ToString); } if (content.Contains("Gpu")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesInternal)this).Gpu = (string) content.GetValueForProperty("Gpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesInternal)this).Gpu, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesInternal)this).Gpu = (string) content.GetValueForProperty("Gpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesInternal)this).Gpu, global::System.Convert.ToString); } if (content.Contains("CapabilityMaxCpu")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesInternal)this).CapabilityMaxCpu = (float?) content.GetValueForProperty("CapabilityMaxCpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesInternal)this).CapabilityMaxCpu, (__y)=> (float) global::System.Convert.ChangeType(__y, typeof(float))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesInternal)this).CapabilityMaxCpu = (float?) content.GetValueForProperty("CapabilityMaxCpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesInternal)this).CapabilityMaxCpu, (__y)=> (float) global::System.Convert.ChangeType(__y, typeof(float))); } if (content.Contains("CapabilityMaxMemoryInGb")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesInternal)this).CapabilityMaxMemoryInGb = (float?) content.GetValueForProperty("CapabilityMaxMemoryInGb",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesInternal)this).CapabilityMaxMemoryInGb, (__y)=> (float) global::System.Convert.ChangeType(__y, typeof(float))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesInternal)this).CapabilityMaxMemoryInGb = (float?) content.GetValueForProperty("CapabilityMaxMemoryInGb",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesInternal)this).CapabilityMaxMemoryInGb, (__y)=> (float) global::System.Convert.ChangeType(__y, typeof(float))); } if (content.Contains("CapabilityMaxGpuCount")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesInternal)this).CapabilityMaxGpuCount = (float?) content.GetValueForProperty("CapabilityMaxGpuCount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesInternal)this).CapabilityMaxGpuCount, (__y)=> (float) global::System.Convert.ChangeType(__y, typeof(float))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesInternal)this).CapabilityMaxGpuCount = (float?) content.GetValueForProperty("CapabilityMaxGpuCount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesInternal)this).CapabilityMaxGpuCount, (__y)=> (float) global::System.Convert.ChangeType(__y, typeof(float))); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -131,67 +131,67 @@ internal Capabilities(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Capability")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesInternal)this).Capability = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesAutoGenerated) content.GetValueForProperty("Capability",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesInternal)this).Capability, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.CapabilitiesAutoGeneratedTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesInternal)this).Capability = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesAutoGenerated) content.GetValueForProperty("Capability",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesInternal)this).Capability, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.CapabilitiesAutoGeneratedTypeConverter.ConvertFrom); } if (content.Contains("ResourceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesInternal)this).ResourceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesInternal)this).ResourceType, global::System.Convert.ToString); } if (content.Contains("OSType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesInternal)this).OSType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesInternal)this).OSType, global::System.Convert.ToString); } if (content.Contains("Location")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesInternal)this).Location, global::System.Convert.ToString); } if (content.Contains("IPAddressType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesInternal)this).IPAddressType = (string) content.GetValueForProperty("IPAddressType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesInternal)this).IPAddressType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesInternal)this).IPAddressType = (string) content.GetValueForProperty("IPAddressType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesInternal)this).IPAddressType, global::System.Convert.ToString); } if (content.Contains("Gpu")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesInternal)this).Gpu = (string) content.GetValueForProperty("Gpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesInternal)this).Gpu, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesInternal)this).Gpu = (string) content.GetValueForProperty("Gpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesInternal)this).Gpu, global::System.Convert.ToString); } if (content.Contains("CapabilityMaxCpu")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesInternal)this).CapabilityMaxCpu = (float?) content.GetValueForProperty("CapabilityMaxCpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesInternal)this).CapabilityMaxCpu, (__y)=> (float) global::System.Convert.ChangeType(__y, typeof(float))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesInternal)this).CapabilityMaxCpu = (float?) content.GetValueForProperty("CapabilityMaxCpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesInternal)this).CapabilityMaxCpu, (__y)=> (float) global::System.Convert.ChangeType(__y, typeof(float))); } if (content.Contains("CapabilityMaxMemoryInGb")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesInternal)this).CapabilityMaxMemoryInGb = (float?) content.GetValueForProperty("CapabilityMaxMemoryInGb",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesInternal)this).CapabilityMaxMemoryInGb, (__y)=> (float) global::System.Convert.ChangeType(__y, typeof(float))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesInternal)this).CapabilityMaxMemoryInGb = (float?) content.GetValueForProperty("CapabilityMaxMemoryInGb",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesInternal)this).CapabilityMaxMemoryInGb, (__y)=> (float) global::System.Convert.ChangeType(__y, typeof(float))); } if (content.Contains("CapabilityMaxGpuCount")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesInternal)this).CapabilityMaxGpuCount = (float?) content.GetValueForProperty("CapabilityMaxGpuCount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesInternal)this).CapabilityMaxGpuCount, (__y)=> (float) global::System.Convert.ChangeType(__y, typeof(float))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesInternal)this).CapabilityMaxGpuCount = (float?) content.GetValueForProperty("CapabilityMaxGpuCount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesInternal)this).CapabilityMaxGpuCount, (__y)=> (float) global::System.Convert.ChangeType(__y, typeof(float))); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilities DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilities DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new Capabilities(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilities DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilities DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new Capabilities(content); } @@ -201,7 +201,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api202 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilities FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilities FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Capabilities.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Capabilities.TypeConverter.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Capabilities.TypeConverter.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Capabilities.TypeConverter.cs index 45a9e5617181..c151c531331d 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Capabilities.TypeConverter.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Capabilities.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilities ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilities ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilities).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilities).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Capabilities.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Capabilities.cs similarity index 87% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Capabilities.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Capabilities.cs index 7a013597cc1d..4e337230cbbb 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Capabilities.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Capabilities.cs @@ -3,34 +3,34 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; /// The regional capabilities. public partial class Capabilities : - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilities, - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesInternal + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilities, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesAutoGenerated _capability; + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesAutoGenerated _capability; /// The supported capabilities. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesAutoGenerated Capability { get => (this._capability = this._capability ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.CapabilitiesAutoGenerated()); } + internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesAutoGenerated Capability { get => (this._capability = this._capability ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.CapabilitiesAutoGenerated()); } /// The maximum allowed CPU request in cores. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public float? CapabilityMaxCpu { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesAutoGeneratedInternal)Capability).MaxCpu; } + public float? CapabilityMaxCpu { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesAutoGeneratedInternal)Capability).MaxCpu; } /// The maximum allowed GPU count. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public float? CapabilityMaxGpuCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesAutoGeneratedInternal)Capability).MaxGpuCount; } + public float? CapabilityMaxGpuCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesAutoGeneratedInternal)Capability).MaxGpuCount; } /// The maximum allowed memory request in GB. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public float? CapabilityMaxMemoryInGb { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesAutoGeneratedInternal)Capability).MaxMemoryInGb; } + public float? CapabilityMaxMemoryInGb { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesAutoGeneratedInternal)Capability).MaxMemoryInGb; } /// Backing field for property. private string _gpu; @@ -54,31 +54,31 @@ public partial class Capabilities : public string Location { get => this._location; } /// Internal Acessors for Capability - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesAutoGenerated Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesInternal.Capability { get => (this._capability = this._capability ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.CapabilitiesAutoGenerated()); set { {_capability = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesAutoGenerated Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesInternal.Capability { get => (this._capability = this._capability ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.CapabilitiesAutoGenerated()); set { {_capability = value;} } } /// Internal Acessors for CapabilityMaxCpu - float? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesInternal.CapabilityMaxCpu { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesAutoGeneratedInternal)Capability).MaxCpu; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesAutoGeneratedInternal)Capability).MaxCpu = value; } + float? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesInternal.CapabilityMaxCpu { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesAutoGeneratedInternal)Capability).MaxCpu; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesAutoGeneratedInternal)Capability).MaxCpu = value; } /// Internal Acessors for CapabilityMaxGpuCount - float? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesInternal.CapabilityMaxGpuCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesAutoGeneratedInternal)Capability).MaxGpuCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesAutoGeneratedInternal)Capability).MaxGpuCount = value; } + float? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesInternal.CapabilityMaxGpuCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesAutoGeneratedInternal)Capability).MaxGpuCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesAutoGeneratedInternal)Capability).MaxGpuCount = value; } /// Internal Acessors for CapabilityMaxMemoryInGb - float? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesInternal.CapabilityMaxMemoryInGb { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesAutoGeneratedInternal)Capability).MaxMemoryInGb; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesAutoGeneratedInternal)Capability).MaxMemoryInGb = value; } + float? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesInternal.CapabilityMaxMemoryInGb { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesAutoGeneratedInternal)Capability).MaxMemoryInGb; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesAutoGeneratedInternal)Capability).MaxMemoryInGb = value; } /// Internal Acessors for Gpu - string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesInternal.Gpu { get => this._gpu; set { {_gpu = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesInternal.Gpu { get => this._gpu; set { {_gpu = value;} } } /// Internal Acessors for IPAddressType - string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesInternal.IPAddressType { get => this._iPAddressType; set { {_iPAddressType = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesInternal.IPAddressType { get => this._iPAddressType; set { {_iPAddressType = value;} } } /// Internal Acessors for Location - string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesInternal.Location { get => this._location; set { {_location = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesInternal.Location { get => this._location; set { {_location = value;} } } /// Internal Acessors for OSType - string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesInternal.OSType { get => this._oSType; set { {_oSType = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesInternal.OSType { get => this._oSType; set { {_oSType = value;} } } /// Internal Acessors for ResourceType - string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesInternal.ResourceType { get => this._resourceType; set { {_resourceType = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesInternal.ResourceType { get => this._resourceType; set { {_resourceType = value;} } } /// Backing field for property. private string _oSType; @@ -175,7 +175,7 @@ internal partial interface ICapabilitiesInternal { /// The supported capabilities. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesAutoGenerated Capability { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesAutoGenerated Capability { get; set; } /// The maximum allowed CPU request in cores. float? CapabilityMaxCpu { get; set; } /// The maximum allowed GPU count. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Capabilities.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Capabilities.json.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Capabilities.json.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Capabilities.json.cs index 9f4d26043d4c..8cbd9782d295 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Capabilities.json.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Capabilities.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -65,7 +65,7 @@ internal Capabilities(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runti { return; } - {_capability = If( json?.PropertyT("capabilities"), out var __jsonCapabilities) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.CapabilitiesAutoGenerated.FromJson(__jsonCapabilities) : Capability;} + {_capability = If( json?.PropertyT("capabilities"), out var __jsonCapabilities) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.CapabilitiesAutoGenerated.FromJson(__jsonCapabilities) : Capability;} {_resourceType = If( json?.PropertyT("resourceType"), out var __jsonResourceType) ? (string)__jsonResourceType : (string)ResourceType;} {_oSType = If( json?.PropertyT("osType"), out var __jsonOSType) ? (string)__jsonOSType : (string)OSType;} {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)Location;} @@ -75,13 +75,13 @@ internal Capabilities(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runti } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilities. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilities. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilities. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilities. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilities FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilities FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new Capabilities(json) : null; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CapabilitiesAutoGenerated.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CapabilitiesAutoGenerated.PowerShell.cs similarity index 88% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CapabilitiesAutoGenerated.PowerShell.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CapabilitiesAutoGenerated.PowerShell.cs index 75e65ec0b5f8..8917ce9ee025 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CapabilitiesAutoGenerated.PowerShell.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CapabilitiesAutoGenerated.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -63,7 +63,7 @@ public partial class CapabilitiesAutoGenerated partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -78,21 +78,21 @@ internal CapabilitiesAutoGenerated(global::System.Collections.IDictionary conten // actually deserialize if (content.Contains("MaxMemoryInGb")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesAutoGeneratedInternal)this).MaxMemoryInGb = (float?) content.GetValueForProperty("MaxMemoryInGb",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesAutoGeneratedInternal)this).MaxMemoryInGb, (__y)=> (float) global::System.Convert.ChangeType(__y, typeof(float))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesAutoGeneratedInternal)this).MaxMemoryInGb = (float?) content.GetValueForProperty("MaxMemoryInGb",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesAutoGeneratedInternal)this).MaxMemoryInGb, (__y)=> (float) global::System.Convert.ChangeType(__y, typeof(float))); } if (content.Contains("MaxCpu")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesAutoGeneratedInternal)this).MaxCpu = (float?) content.GetValueForProperty("MaxCpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesAutoGeneratedInternal)this).MaxCpu, (__y)=> (float) global::System.Convert.ChangeType(__y, typeof(float))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesAutoGeneratedInternal)this).MaxCpu = (float?) content.GetValueForProperty("MaxCpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesAutoGeneratedInternal)this).MaxCpu, (__y)=> (float) global::System.Convert.ChangeType(__y, typeof(float))); } if (content.Contains("MaxGpuCount")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesAutoGeneratedInternal)this).MaxGpuCount = (float?) content.GetValueForProperty("MaxGpuCount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesAutoGeneratedInternal)this).MaxGpuCount, (__y)=> (float) global::System.Convert.ChangeType(__y, typeof(float))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesAutoGeneratedInternal)this).MaxGpuCount = (float?) content.GetValueForProperty("MaxGpuCount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesAutoGeneratedInternal)this).MaxGpuCount, (__y)=> (float) global::System.Convert.ChangeType(__y, typeof(float))); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -107,43 +107,43 @@ internal CapabilitiesAutoGenerated(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("MaxMemoryInGb")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesAutoGeneratedInternal)this).MaxMemoryInGb = (float?) content.GetValueForProperty("MaxMemoryInGb",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesAutoGeneratedInternal)this).MaxMemoryInGb, (__y)=> (float) global::System.Convert.ChangeType(__y, typeof(float))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesAutoGeneratedInternal)this).MaxMemoryInGb = (float?) content.GetValueForProperty("MaxMemoryInGb",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesAutoGeneratedInternal)this).MaxMemoryInGb, (__y)=> (float) global::System.Convert.ChangeType(__y, typeof(float))); } if (content.Contains("MaxCpu")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesAutoGeneratedInternal)this).MaxCpu = (float?) content.GetValueForProperty("MaxCpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesAutoGeneratedInternal)this).MaxCpu, (__y)=> (float) global::System.Convert.ChangeType(__y, typeof(float))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesAutoGeneratedInternal)this).MaxCpu = (float?) content.GetValueForProperty("MaxCpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesAutoGeneratedInternal)this).MaxCpu, (__y)=> (float) global::System.Convert.ChangeType(__y, typeof(float))); } if (content.Contains("MaxGpuCount")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesAutoGeneratedInternal)this).MaxGpuCount = (float?) content.GetValueForProperty("MaxGpuCount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesAutoGeneratedInternal)this).MaxGpuCount, (__y)=> (float) global::System.Convert.ChangeType(__y, typeof(float))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesAutoGeneratedInternal)this).MaxGpuCount = (float?) content.GetValueForProperty("MaxGpuCount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesAutoGeneratedInternal)this).MaxGpuCount, (__y)=> (float) global::System.Convert.ChangeType(__y, typeof(float))); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesAutoGenerated DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesAutoGenerated DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new CapabilitiesAutoGenerated(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesAutoGenerated DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesAutoGenerated DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new CapabilitiesAutoGenerated(content); } @@ -153,7 +153,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api202 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesAutoGenerated FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesAutoGenerated FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CapabilitiesAutoGenerated.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CapabilitiesAutoGenerated.TypeConverter.cs similarity index 98% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CapabilitiesAutoGenerated.TypeConverter.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CapabilitiesAutoGenerated.TypeConverter.cs index f978a78ddd10..c4a72646d351 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CapabilitiesAutoGenerated.TypeConverter.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CapabilitiesAutoGenerated.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesAutoGenerated ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesAutoGenerated ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesAutoGenerated).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesAutoGenerated).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CapabilitiesAutoGenerated.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CapabilitiesAutoGenerated.cs similarity index 93% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CapabilitiesAutoGenerated.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CapabilitiesAutoGenerated.cs index 83c1a0c2db03..46503fc9e148 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CapabilitiesAutoGenerated.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CapabilitiesAutoGenerated.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; /// The supported capabilities. public partial class CapabilitiesAutoGenerated : - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesAutoGenerated, - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesAutoGeneratedInternal + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesAutoGenerated, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesAutoGeneratedInternal { /// Backing field for property. @@ -35,13 +35,13 @@ public partial class CapabilitiesAutoGenerated : public float? MaxMemoryInGb { get => this._maxMemoryInGb; } /// Internal Acessors for MaxCpu - float? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesAutoGeneratedInternal.MaxCpu { get => this._maxCpu; set { {_maxCpu = value;} } } + float? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesAutoGeneratedInternal.MaxCpu { get => this._maxCpu; set { {_maxCpu = value;} } } /// Internal Acessors for MaxGpuCount - float? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesAutoGeneratedInternal.MaxGpuCount { get => this._maxGpuCount; set { {_maxGpuCount = value;} } } + float? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesAutoGeneratedInternal.MaxGpuCount { get => this._maxGpuCount; set { {_maxGpuCount = value;} } } /// Internal Acessors for MaxMemoryInGb - float? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesAutoGeneratedInternal.MaxMemoryInGb { get => this._maxMemoryInGb; set { {_maxMemoryInGb = value;} } } + float? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesAutoGeneratedInternal.MaxMemoryInGb { get => this._maxMemoryInGb; set { {_maxMemoryInGb = value;} } } /// Creates an new instance. public CapabilitiesAutoGenerated() diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CapabilitiesAutoGenerated.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CapabilitiesAutoGenerated.json.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CapabilitiesAutoGenerated.json.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CapabilitiesAutoGenerated.json.cs index fa4009e6f731..897236b84fc3 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CapabilitiesAutoGenerated.json.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CapabilitiesAutoGenerated.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -72,13 +72,13 @@ internal CapabilitiesAutoGenerated(Microsoft.Azure.PowerShell.Cmdlets.ContainerI } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesAutoGenerated. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesAutoGenerated. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesAutoGenerated. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesAutoGenerated. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesAutoGenerated FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesAutoGenerated FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new CapabilitiesAutoGenerated(json) : null; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CapabilitiesListResult.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CapabilitiesListResult.PowerShell.cs similarity index 86% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CapabilitiesListResult.PowerShell.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CapabilitiesListResult.PowerShell.cs index 94bc9a72d70d..ba9512b3df19 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CapabilitiesListResult.PowerShell.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CapabilitiesListResult.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -63,7 +63,7 @@ public partial class CapabilitiesListResult partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -78,17 +78,17 @@ internal CapabilitiesListResult(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilities[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.CapabilitiesTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilities[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.CapabilitiesTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -103,39 +103,39 @@ internal CapabilitiesListResult(global::System.Management.Automation.PSObject co // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilities[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.CapabilitiesTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilities[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.CapabilitiesTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new CapabilitiesListResult(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new CapabilitiesListResult(content); } @@ -145,7 +145,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api202 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CapabilitiesListResult.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CapabilitiesListResult.TypeConverter.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CapabilitiesListResult.TypeConverter.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CapabilitiesListResult.TypeConverter.cs index 2bbf07250896..8e1a78ecc3d7 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CapabilitiesListResult.TypeConverter.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CapabilitiesListResult.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CapabilitiesListResult.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CapabilitiesListResult.cs similarity index 88% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CapabilitiesListResult.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CapabilitiesListResult.cs index eb4925413de1..735d6f6e6f60 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CapabilitiesListResult.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CapabilitiesListResult.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; /// The response containing list of capabilities. public partial class CapabilitiesListResult : - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesListResult, - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesListResult, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesListResultInternal { /// Backing field for property. @@ -21,11 +21,11 @@ public partial class CapabilitiesListResult : public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilities[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilities[] _value; /// The list of capabilities. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilities[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilities[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public CapabilitiesListResult() @@ -51,8 +51,8 @@ public partial interface ICapabilitiesListResult : ReadOnly = false, Description = @"The list of capabilities.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilities) })] - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilities[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilities) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilities[] Value { get; set; } } /// The response containing list of capabilities. @@ -62,7 +62,7 @@ internal partial interface ICapabilitiesListResultInternal /// The URI to fetch the next page of capabilities. string NextLink { get; set; } /// The list of capabilities. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilities[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilities[] Value { get; set; } } } \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CapabilitiesListResult.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CapabilitiesListResult.json.cs similarity index 94% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CapabilitiesListResult.json.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CapabilitiesListResult.json.cs index fa7aa0b82aca..14f542183a27 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CapabilitiesListResult.json.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CapabilitiesListResult.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -65,19 +65,19 @@ internal CapabilitiesListResult(Microsoft.Azure.PowerShell.Cmdlets.ContainerInst { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilities) (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.Capabilities.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilities) (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Capabilities.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new CapabilitiesListResult(json) : null; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CloudError.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CloudError.PowerShell.cs similarity index 81% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CloudError.PowerShell.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CloudError.PowerShell.cs index 323f6a6b2ef1..cbc72c8c1fb6 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CloudError.PowerShell.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CloudError.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -63,7 +63,7 @@ public partial class CloudError partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -78,29 +78,29 @@ internal CloudError(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorBody) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.CloudErrorBodyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorBody) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.CloudErrorBodyTypeConverter.ConvertFrom); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorInternal)this).Target, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.CloudErrorBodyTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.CloudErrorBodyTypeConverter.ConvertFrom)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -115,51 +115,51 @@ internal CloudError(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorBody) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.CloudErrorBodyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorBody) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.CloudErrorBodyTypeConverter.ConvertFrom); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorInternal)this).Target, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.CloudErrorBodyTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.CloudErrorBodyTypeConverter.ConvertFrom)); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudError DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new CloudError(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new CloudError(content); } @@ -169,7 +169,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api202 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CloudError.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CloudError.TypeConverter.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CloudError.TypeConverter.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CloudError.TypeConverter.cs index 3b3d79b127e7..4c4955fddf05 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CloudError.TypeConverter.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CloudError.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudError ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudError).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CloudError.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CloudError.cs similarity index 83% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CloudError.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CloudError.cs index 04b8b4fa9b41..9e67bb5edd99 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CloudError.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CloudError.cs @@ -3,47 +3,47 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; /// An error response from the Container Instance service. public partial class CloudError : - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudError, - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorInternal + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorInternal { /// /// An identifier for the error. Codes are invariant and are intended to be consumed programmatically. /// [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorBodyInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorBodyInternal)Error).Code = value ?? null; } + public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorBodyInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorBodyInternal)Error).Code = value ?? null; } /// A list of additional details about the error. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorBody[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorBodyInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorBodyInternal)Error).Detail = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorBody[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorBodyInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorBodyInternal)Error).Detail = value ?? null /* arrayOf */; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorBody _error; + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorBody _error; /// An error response from the Container Instance service. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorBody Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.CloudErrorBody()); set => this._error = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorBody Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.CloudErrorBody()); set => this._error = value; } /// /// A message describing the error, intended to be suitable for display in a user interface. /// [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorBodyInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorBodyInternal)Error).Message = value ?? null; } + public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorBodyInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorBodyInternal)Error).Message = value ?? null; } /// Internal Acessors for Error - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorBody Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.CloudErrorBody()); set { {_error = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorBody Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.CloudErrorBody()); set { {_error = value;} } } /// /// The target of the particular error. For example, the name of the property in error. /// [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorBodyInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorBodyInternal)Error).Target = value ?? null; } + public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorBodyInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorBodyInternal)Error).Target = value ?? null; } /// Creates an new instance. public CloudError() @@ -71,8 +71,8 @@ public partial interface ICloudError : ReadOnly = false, Description = @"A list of additional details about the error.", SerializedName = @"details", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorBody) })] - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorBody[] Detail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorBody) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorBody[] Detail { get; set; } /// /// A message describing the error, intended to be suitable for display in a user interface. /// @@ -104,9 +104,9 @@ internal partial interface ICloudErrorInternal /// string Code { get; set; } /// A list of additional details about the error. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorBody[] Detail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorBody[] Detail { get; set; } /// An error response from the Container Instance service. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorBody Error { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorBody Error { get; set; } /// /// A message describing the error, intended to be suitable for display in a user interface. /// diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CloudError.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CloudError.json.cs similarity index 96% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CloudError.json.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CloudError.json.cs index 2945610b507f..0d606ed944ab 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CloudError.json.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CloudError.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -65,18 +65,18 @@ internal CloudError(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime { return; } - {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.CloudErrorBody.FromJson(__jsonError) : Error;} + {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.CloudErrorBody.FromJson(__jsonError) : Error;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudError. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudError. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudError FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new CloudError(json) : null; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CloudErrorBody.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CloudErrorBody.PowerShell.cs similarity index 83% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CloudErrorBody.PowerShell.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CloudErrorBody.PowerShell.cs index fd1210931da4..1aa564739d3a 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CloudErrorBody.PowerShell.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CloudErrorBody.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -63,7 +63,7 @@ public partial class CloudErrorBody partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -78,25 +78,25 @@ internal CloudErrorBody(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorBodyInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorBodyInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorBodyInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorBodyInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorBodyInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorBodyInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorBodyInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorBodyInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorBodyInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorBodyInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorBodyInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorBodyInternal)this).Target, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorBodyInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorBodyInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.CloudErrorBodyTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorBodyInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorBodyInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.CloudErrorBodyTypeConverter.ConvertFrom)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -111,47 +111,47 @@ internal CloudErrorBody(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorBodyInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorBodyInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorBodyInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorBodyInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorBodyInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorBodyInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorBodyInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorBodyInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorBodyInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorBodyInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorBodyInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorBodyInternal)this).Target, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorBodyInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorBodyInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.CloudErrorBodyTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorBodyInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorBodyInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.CloudErrorBodyTypeConverter.ConvertFrom)); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorBody DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorBody DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new CloudErrorBody(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorBody DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorBody DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new CloudErrorBody(content); } @@ -161,7 +161,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api202 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorBody FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorBody FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CloudErrorBody.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CloudErrorBody.TypeConverter.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CloudErrorBody.TypeConverter.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CloudErrorBody.TypeConverter.cs index c96f08fcab8a..067576764b20 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CloudErrorBody.TypeConverter.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CloudErrorBody.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorBody ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorBody ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorBody).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorBody).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CloudErrorBody.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CloudErrorBody.cs similarity index 93% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CloudErrorBody.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CloudErrorBody.cs index ac3cb427002e..a0792a6c67e8 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CloudErrorBody.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CloudErrorBody.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; /// An error response from the Container Instance service. public partial class CloudErrorBody : - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorBody, - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorBodyInternal + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorBody, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorBodyInternal { /// Backing field for property. @@ -23,11 +23,11 @@ public partial class CloudErrorBody : public string Code { get => this._code; set => this._code = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorBody[] _detail; + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorBody[] _detail; /// A list of additional details about the error. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorBody[] Detail { get => this._detail; set => this._detail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorBody[] Detail { get => this._detail; set => this._detail = value; } /// Backing field for property. private string _message; @@ -73,8 +73,8 @@ public partial interface ICloudErrorBody : ReadOnly = false, Description = @"A list of additional details about the error.", SerializedName = @"details", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorBody) })] - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorBody[] Detail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorBody) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorBody[] Detail { get; set; } /// /// A message describing the error, intended to be suitable for display in a user interface. /// @@ -106,7 +106,7 @@ internal partial interface ICloudErrorBodyInternal /// string Code { get; set; } /// A list of additional details about the error. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorBody[] Detail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorBody[] Detail { get; set; } /// /// A message describing the error, intended to be suitable for display in a user interface. /// diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CloudErrorBody.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CloudErrorBody.json.cs similarity index 95% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CloudErrorBody.json.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CloudErrorBody.json.cs index 509221b5b7d7..8834650e804b 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/CloudErrorBody.json.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/CloudErrorBody.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -68,18 +68,18 @@ internal CloudErrorBody(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Run {_code = If( json?.PropertyT("code"), out var __jsonCode) ? (string)__jsonCode : (string)Code;} {_message = If( json?.PropertyT("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)Message;} {_target = If( json?.PropertyT("target"), out var __jsonTarget) ? (string)__jsonTarget : (string)Target;} - {_detail = If( json?.PropertyT("details"), out var __jsonDetails) ? If( __jsonDetails as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorBody) (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.CloudErrorBody.FromJson(__u) )) ))() : null : Detail;} + {_detail = If( json?.PropertyT("details"), out var __jsonDetails) ? If( __jsonDetails as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorBody) (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.CloudErrorBody.FromJson(__u) )) ))() : null : Detail;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorBody. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorBody. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorBody. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorBody. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudErrorBody FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudErrorBody FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new CloudErrorBody(json) : null; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ConfidentialComputeProperties.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ConfidentialComputeProperties.PowerShell.cs similarity index 91% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ConfidentialComputeProperties.PowerShell.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ConfidentialComputeProperties.PowerShell.cs index a63f690d529c..13f9eaed0f4e 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ConfidentialComputeProperties.PowerShell.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ConfidentialComputeProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -63,7 +63,7 @@ public partial class ConfidentialComputeProperties partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -78,13 +78,13 @@ internal ConfidentialComputeProperties(global::System.Collections.IDictionary co // actually deserialize if (content.Contains("CcePolicy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IConfidentialComputePropertiesInternal)this).CcePolicy = (string) content.GetValueForProperty("CcePolicy",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IConfidentialComputePropertiesInternal)this).CcePolicy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfidentialComputePropertiesInternal)this).CcePolicy = (string) content.GetValueForProperty("CcePolicy",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfidentialComputePropertiesInternal)this).CcePolicy, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -99,35 +99,35 @@ internal ConfidentialComputeProperties(global::System.Management.Automation.PSOb // actually deserialize if (content.Contains("CcePolicy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IConfidentialComputePropertiesInternal)this).CcePolicy = (string) content.GetValueForProperty("CcePolicy",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IConfidentialComputePropertiesInternal)this).CcePolicy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfidentialComputePropertiesInternal)this).CcePolicy = (string) content.GetValueForProperty("CcePolicy",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfidentialComputePropertiesInternal)this).CcePolicy, global::System.Convert.ToString); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IConfidentialComputeProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfidentialComputeProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ConfidentialComputeProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IConfidentialComputeProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfidentialComputeProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ConfidentialComputeProperties(content); } @@ -137,7 +137,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api202 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IConfidentialComputeProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfidentialComputeProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ConfidentialComputeProperties.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ConfidentialComputeProperties.TypeConverter.cs similarity index 98% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ConfidentialComputeProperties.TypeConverter.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ConfidentialComputeProperties.TypeConverter.cs index ce2821abc67f..6819d6f2bf6a 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ConfidentialComputeProperties.TypeConverter.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ConfidentialComputeProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IConfidentialComputeProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfidentialComputeProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IConfidentialComputeProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfidentialComputeProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ConfidentialComputeProperties.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ConfidentialComputeProperties.cs similarity index 94% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ConfidentialComputeProperties.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ConfidentialComputeProperties.cs index 6414a67e6a08..f98b2b1e4707 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ConfidentialComputeProperties.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ConfidentialComputeProperties.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; /// The properties for confidential container group public partial class ConfidentialComputeProperties : - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IConfidentialComputeProperties, - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IConfidentialComputePropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfidentialComputeProperties, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfidentialComputePropertiesInternal { /// Backing field for property. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ConfidentialComputeProperties.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ConfidentialComputeProperties.json.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ConfidentialComputeProperties.json.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ConfidentialComputeProperties.json.cs index 64f6b434859d..7c55839f2496 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ConfidentialComputeProperties.json.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ConfidentialComputeProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -70,13 +70,13 @@ internal ConfidentialComputeProperties(Microsoft.Azure.PowerShell.Cmdlets.Contai } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IConfidentialComputeProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfidentialComputeProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IConfidentialComputeProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfidentialComputeProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IConfidentialComputeProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfidentialComputeProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new ConfidentialComputeProperties(json) : null; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ConfigMap.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ConfigMap.PowerShell.cs new file mode 100644 index 000000000000..dcb9fd74752b --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ConfigMap.PowerShell.cs @@ -0,0 +1,164 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; + + /// The container config map. + [System.ComponentModel.TypeConverter(typeof(ConfigMapTypeConverter))] + public partial class ConfigMap + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ConfigMap(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("KeyValuePair")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfigMapInternal)this).KeyValuePair = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfigMapKeyValuePairs) content.GetValueForProperty("KeyValuePair",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfigMapInternal)this).KeyValuePair, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ConfigMapKeyValuePairsTypeConverter.ConvertFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ConfigMap(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("KeyValuePair")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfigMapInternal)this).KeyValuePair = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfigMapKeyValuePairs) content.GetValueForProperty("KeyValuePair",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfigMapInternal)this).KeyValuePair, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ConfigMapKeyValuePairsTypeConverter.ConvertFrom); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfigMap DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ConfigMap(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfigMap DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ConfigMap(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfigMap FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// The container config map. + [System.ComponentModel.TypeConverter(typeof(ConfigMapTypeConverter))] + public partial interface IConfigMap + + { + + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ConfigMap.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ConfigMap.TypeConverter.cs new file mode 100644 index 000000000000..e7cc0d648ec6 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ConfigMap.TypeConverter.cs @@ -0,0 +1,146 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ConfigMapTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfigMap ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfigMap).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ConfigMap.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ConfigMap.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ConfigMap.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ConfigMap.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ConfigMap.cs new file mode 100644 index 000000000000..42250265c1fb --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ConfigMap.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; + + /// The container config map. + public partial class ConfigMap : + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfigMap, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfigMapInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfigMapKeyValuePairs _keyValuePair; + + /// The key value pairs dictionary in the config map. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfigMapKeyValuePairs KeyValuePair { get => (this._keyValuePair = this._keyValuePair ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ConfigMapKeyValuePairs()); set => this._keyValuePair = value; } + + /// Creates an new instance. + public ConfigMap() + { + + } + } + /// The container config map. + public partial interface IConfigMap : + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IJsonSerializable + { + /// The key value pairs dictionary in the config map. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The key value pairs dictionary in the config map.", + SerializedName = @"keyValuePairs", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfigMapKeyValuePairs) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfigMapKeyValuePairs KeyValuePair { get; set; } + + } + /// The container config map. + internal partial interface IConfigMapInternal + + { + /// The key value pairs dictionary in the config map. + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfigMapKeyValuePairs KeyValuePair { get; set; } + + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ConfigMap.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ConfigMap.json.cs new file mode 100644 index 000000000000..c6fbc240155a --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ConfigMap.json.cs @@ -0,0 +1,108 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; + + /// The container config map. + public partial class ConfigMap + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject instance to deserialize from. + internal ConfigMap(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_keyValuePair = If( json?.PropertyT("keyValuePairs"), out var __jsonKeyValuePairs) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ConfigMapKeyValuePairs.FromJson(__jsonKeyValuePairs) : KeyValuePair;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfigMap. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfigMap. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfigMap FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new ConfigMap(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._keyValuePair ? (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode) this._keyValuePair.ToJson(null,serializationMode) : null, "keyValuePairs" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ConfigMapKeyValuePairs.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ConfigMapKeyValuePairs.PowerShell.cs new file mode 100644 index 000000000000..3547d361e2d1 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ConfigMapKeyValuePairs.PowerShell.cs @@ -0,0 +1,162 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; + + /// The key value pairs dictionary in the config map. + [System.ComponentModel.TypeConverter(typeof(ConfigMapKeyValuePairsTypeConverter))] + public partial class ConfigMapKeyValuePairs + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ConfigMapKeyValuePairs(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + // this type is a dictionary; copy elements from source to here. + CopyFrom(content); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ConfigMapKeyValuePairs(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + // this type is a dictionary; copy elements from source to here. + CopyFrom(content); + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfigMapKeyValuePairs DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ConfigMapKeyValuePairs(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfigMapKeyValuePairs DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ConfigMapKeyValuePairs(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfigMapKeyValuePairs FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// The key value pairs dictionary in the config map. + [System.ComponentModel.TypeConverter(typeof(ConfigMapKeyValuePairsTypeConverter))] + public partial interface IConfigMapKeyValuePairs + + { + + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ConfigMapKeyValuePairs.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ConfigMapKeyValuePairs.TypeConverter.cs new file mode 100644 index 000000000000..1a9886b46dd2 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ConfigMapKeyValuePairs.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ConfigMapKeyValuePairsTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfigMapKeyValuePairs ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfigMapKeyValuePairs).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ConfigMapKeyValuePairs.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ConfigMapKeyValuePairs.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ConfigMapKeyValuePairs.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ConfigMapKeyValuePairs.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ConfigMapKeyValuePairs.cs new file mode 100644 index 000000000000..6ba4147b6736 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ConfigMapKeyValuePairs.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; + + /// The key value pairs dictionary in the config map. + public partial class ConfigMapKeyValuePairs : + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfigMapKeyValuePairs, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfigMapKeyValuePairsInternal + { + + /// Creates an new instance. + public ConfigMapKeyValuePairs() + { + + } + } + /// The key value pairs dictionary in the config map. + public partial interface IConfigMapKeyValuePairs : + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IAssociativeArray + { + + } + /// The key value pairs dictionary in the config map. + internal partial interface IConfigMapKeyValuePairsInternal + + { + + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ConfigMapKeyValuePairs.dictionary.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ConfigMapKeyValuePairs.dictionary.cs new file mode 100644 index 000000000000..e5f0db8dbec3 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ConfigMapKeyValuePairs.dictionary.cs @@ -0,0 +1,75 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; + + public partial class ConfigMapKeyValuePairs : + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IAssociativeArray + { + protected global::System.Collections.Generic.Dictionary __additionalProperties = new global::System.Collections.Generic.Dictionary(); + + global::System.Collections.Generic.IDictionary Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IAssociativeArray.AdditionalProperties { get => __additionalProperties; } + + int Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IAssociativeArray.Count { get => __additionalProperties.Count; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IAssociativeArray.Keys { get => __additionalProperties.Keys; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IAssociativeArray.Values { get => __additionalProperties.Values; } + + public string this[global::System.String index] { get => __additionalProperties[index]; set => __additionalProperties[index] = value; } + + /// + /// + public void Add(global::System.String key, string value) => __additionalProperties.Add( key, value); + + public void Clear() => __additionalProperties.Clear(); + + /// + public bool ContainsKey(global::System.String key) => __additionalProperties.ContainsKey( key); + + /// + public void CopyFrom(global::System.Collections.IDictionary source) + { + if (null != source) + { + foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) + { + if ((null != property.Key && null != property.Value)) + { + this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); + } + } + } + } + + /// + public void CopyFrom(global::System.Management.Automation.PSObject source) + { + if (null != source) + { + foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) + { + if ((null != property.Key && null != property.Value)) + { + this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); + } + } + } + } + + /// + public bool Remove(global::System.String key) => __additionalProperties.Remove( key); + + /// + /// + public bool TryGetValue(global::System.String key, out string value) => __additionalProperties.TryGetValue( key, out value); + + /// + + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ConfigMapKeyValuePairs source) => source.__additionalProperties; + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ConfigMapKeyValuePairs.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ConfigMapKeyValuePairs.json.cs new file mode 100644 index 000000000000..06f78724e364 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ConfigMapKeyValuePairs.json.cs @@ -0,0 +1,109 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; + + /// The key value pairs dictionary in the config map. + public partial class ConfigMapKeyValuePairs + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject instance to deserialize from. + /// + internal ConfigMapKeyValuePairs(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json, global::System.Collections.Generic.HashSet exclusions = null) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.JsonSerializable.FromJson( json, ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IAssociativeArray)this).AdditionalProperties, null ,exclusions ); + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfigMapKeyValuePairs. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfigMapKeyValuePairs. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfigMapKeyValuePairs FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new ConfigMapKeyValuePairs(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.JsonSerializable.ToJson( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IAssociativeArray)this).AdditionalProperties, container); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Container.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Container.PowerShell.cs similarity index 61% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Container.PowerShell.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Container.PowerShell.cs index f06937836cb9..be116f3321e8 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Container.PowerShell.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Container.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -63,7 +63,7 @@ public partial class Container partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -78,253 +78,297 @@ internal Container(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerPropertiesTypeConverter.ConvertFrom); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("ConfigMap")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).ConfigMap = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfigMap) content.GetValueForProperty("ConfigMap",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).ConfigMap, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ConfigMapTypeConverter.ConvertFrom); } if (content.Contains("InstanceView")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).InstanceView = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceView) content.GetValueForProperty("InstanceView",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).InstanceView, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerPropertiesInstanceViewTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).InstanceView = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceView) content.GetValueForProperty("InstanceView",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).InstanceView, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerPropertiesInstanceViewTypeConverter.ConvertFrom); } if (content.Contains("Resource")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).Resource = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirements) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).Resource, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ResourceRequirementsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).Resource = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirements) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).Resource, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ResourceRequirementsTypeConverter.ConvertFrom); } if (content.Contains("LivenessProbe")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LivenessProbe = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbe) content.GetValueForProperty("LivenessProbe",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LivenessProbe, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerProbeTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LivenessProbe = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbe) content.GetValueForProperty("LivenessProbe",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LivenessProbe, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerProbeTypeConverter.ConvertFrom); } if (content.Contains("ReadinessProbe")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).ReadinessProbe = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbe) content.GetValueForProperty("ReadinessProbe",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).ReadinessProbe, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerProbeTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).ReadinessProbe = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbe) content.GetValueForProperty("ReadinessProbe",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).ReadinessProbe, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerProbeTypeConverter.ConvertFrom); + } + if (content.Contains("SecurityContext")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).SecurityContext = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinition) content.GetValueForProperty("SecurityContext",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).SecurityContext, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.SecurityContextDefinitionTypeConverter.ConvertFrom); } if (content.Contains("Image")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).Image = (string) content.GetValueForProperty("Image",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).Image, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).Image = (string) content.GetValueForProperty("Image",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).Image, global::System.Convert.ToString); } if (content.Contains("Command")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).Command = (string[]) content.GetValueForProperty("Command",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).Command, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).Command = (string[]) content.GetValueForProperty("Command",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).Command, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("Port")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).Port = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPort[]) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).Port, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerPortTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).Port = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPort[]) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).Port, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerPortTypeConverter.ConvertFrom)); } if (content.Contains("EnvironmentVariable")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).EnvironmentVariable = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEnvironmentVariable[]) content.GetValueForProperty("EnvironmentVariable",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).EnvironmentVariable, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.EnvironmentVariableTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).EnvironmentVariable = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariable[]) content.GetValueForProperty("EnvironmentVariable",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).EnvironmentVariable, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.EnvironmentVariableTypeConverter.ConvertFrom)); } if (content.Contains("VolumeMount")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).VolumeMount = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeMount[]) content.GetValueForProperty("VolumeMount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).VolumeMount, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.VolumeMountTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).VolumeMount = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMount[]) content.GetValueForProperty("VolumeMount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).VolumeMount, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.VolumeMountTypeConverter.ConvertFrom)); } if (content.Contains("InstanceViewCurrentState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).InstanceViewCurrentState = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerState) content.GetValueForProperty("InstanceViewCurrentState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).InstanceViewCurrentState, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerStateTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).InstanceViewCurrentState = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerState) content.GetValueForProperty("InstanceViewCurrentState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).InstanceViewCurrentState, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerStateTypeConverter.ConvertFrom); } if (content.Contains("InstanceViewPreviousState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).InstanceViewPreviousState = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerState) content.GetValueForProperty("InstanceViewPreviousState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).InstanceViewPreviousState, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerStateTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).InstanceViewPreviousState = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerState) content.GetValueForProperty("InstanceViewPreviousState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).InstanceViewPreviousState, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerStateTypeConverter.ConvertFrom); } if (content.Contains("InstanceViewRestartCount")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).InstanceViewRestartCount = (int?) content.GetValueForProperty("InstanceViewRestartCount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).InstanceViewRestartCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).InstanceViewRestartCount = (int?) content.GetValueForProperty("InstanceViewRestartCount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).InstanceViewRestartCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("InstanceViewEvent")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).InstanceViewEvent = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent[]) content.GetValueForProperty("InstanceViewEvent",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).InstanceViewEvent, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.EventTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).InstanceViewEvent = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent[]) content.GetValueForProperty("InstanceViewEvent",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).InstanceViewEvent, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.EventTypeConverter.ConvertFrom)); } if (content.Contains("ResourceRequest")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).ResourceRequest = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequests) content.GetValueForProperty("ResourceRequest",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).ResourceRequest, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ResourceRequestsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).ResourceRequest = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequests) content.GetValueForProperty("ResourceRequest",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).ResourceRequest, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ResourceRequestsTypeConverter.ConvertFrom); } if (content.Contains("ResourceLimit")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).ResourceLimit = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceLimits) content.GetValueForProperty("ResourceLimit",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).ResourceLimit, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ResourceLimitsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).ResourceLimit = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceLimits) content.GetValueForProperty("ResourceLimit",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).ResourceLimit, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ResourceLimitsTypeConverter.ConvertFrom); } if (content.Contains("LivenessProbeExec")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LivenessProbeExec = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExec) content.GetValueForProperty("LivenessProbeExec",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LivenessProbeExec, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerExecTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LivenessProbeExec = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExec) content.GetValueForProperty("LivenessProbeExec",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LivenessProbeExec, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerExecTypeConverter.ConvertFrom); } if (content.Contains("LivenessProbeHttpGet")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LivenessProbeHttpGet = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerHttpGet) content.GetValueForProperty("LivenessProbeHttpGet",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LivenessProbeHttpGet, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerHttpGetTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LivenessProbeHttpGet = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerHttpGet) content.GetValueForProperty("LivenessProbeHttpGet",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LivenessProbeHttpGet, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerHttpGetTypeConverter.ConvertFrom); } if (content.Contains("LivenessProbeInitialDelaySecond")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LivenessProbeInitialDelaySecond = (int?) content.GetValueForProperty("LivenessProbeInitialDelaySecond",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LivenessProbeInitialDelaySecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LivenessProbeInitialDelaySecond = (int?) content.GetValueForProperty("LivenessProbeInitialDelaySecond",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LivenessProbeInitialDelaySecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("LivenessProbePeriodSecond")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LivenessProbePeriodSecond = (int?) content.GetValueForProperty("LivenessProbePeriodSecond",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LivenessProbePeriodSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LivenessProbePeriodSecond = (int?) content.GetValueForProperty("LivenessProbePeriodSecond",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LivenessProbePeriodSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("LivenessProbeFailureThreshold")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LivenessProbeFailureThreshold = (int?) content.GetValueForProperty("LivenessProbeFailureThreshold",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LivenessProbeFailureThreshold, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LivenessProbeFailureThreshold = (int?) content.GetValueForProperty("LivenessProbeFailureThreshold",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LivenessProbeFailureThreshold, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("LivenessProbeSuccessThreshold")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LivenessProbeSuccessThreshold = (int?) content.GetValueForProperty("LivenessProbeSuccessThreshold",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LivenessProbeSuccessThreshold, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LivenessProbeSuccessThreshold = (int?) content.GetValueForProperty("LivenessProbeSuccessThreshold",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LivenessProbeSuccessThreshold, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("LivenessProbeTimeoutSecond")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LivenessProbeTimeoutSecond = (int?) content.GetValueForProperty("LivenessProbeTimeoutSecond",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LivenessProbeTimeoutSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LivenessProbeTimeoutSecond = (int?) content.GetValueForProperty("LivenessProbeTimeoutSecond",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LivenessProbeTimeoutSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("LivenessProbeHttpGetScheme")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LivenessProbeHttpGetScheme = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme?) content.GetValueForProperty("LivenessProbeHttpGetScheme",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LivenessProbeHttpGetScheme, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LivenessProbeHttpGetScheme = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme?) content.GetValueForProperty("LivenessProbeHttpGetScheme",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LivenessProbeHttpGetScheme, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme.CreateFrom); } if (content.Contains("ReadinessProbeExec")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).ReadinessProbeExec = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExec) content.GetValueForProperty("ReadinessProbeExec",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).ReadinessProbeExec, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerExecTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).ReadinessProbeExec = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExec) content.GetValueForProperty("ReadinessProbeExec",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).ReadinessProbeExec, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerExecTypeConverter.ConvertFrom); } if (content.Contains("ReadinessProbeHttpGet")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).ReadinessProbeHttpGet = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerHttpGet) content.GetValueForProperty("ReadinessProbeHttpGet",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).ReadinessProbeHttpGet, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerHttpGetTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).ReadinessProbeHttpGet = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerHttpGet) content.GetValueForProperty("ReadinessProbeHttpGet",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).ReadinessProbeHttpGet, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerHttpGetTypeConverter.ConvertFrom); } if (content.Contains("ReadinessProbeInitialDelaySecond")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).ReadinessProbeInitialDelaySecond = (int?) content.GetValueForProperty("ReadinessProbeInitialDelaySecond",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).ReadinessProbeInitialDelaySecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).ReadinessProbeInitialDelaySecond = (int?) content.GetValueForProperty("ReadinessProbeInitialDelaySecond",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).ReadinessProbeInitialDelaySecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("ReadinessProbePeriodSecond")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).ReadinessProbePeriodSecond = (int?) content.GetValueForProperty("ReadinessProbePeriodSecond",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).ReadinessProbePeriodSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).ReadinessProbePeriodSecond = (int?) content.GetValueForProperty("ReadinessProbePeriodSecond",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).ReadinessProbePeriodSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("ReadinessProbeFailureThreshold")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).ReadinessProbeFailureThreshold = (int?) content.GetValueForProperty("ReadinessProbeFailureThreshold",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).ReadinessProbeFailureThreshold, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).ReadinessProbeFailureThreshold = (int?) content.GetValueForProperty("ReadinessProbeFailureThreshold",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).ReadinessProbeFailureThreshold, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("ReadinessProbeSuccessThreshold")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).ReadinessProbeSuccessThreshold = (int?) content.GetValueForProperty("ReadinessProbeSuccessThreshold",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).ReadinessProbeSuccessThreshold, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).ReadinessProbeSuccessThreshold = (int?) content.GetValueForProperty("ReadinessProbeSuccessThreshold",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).ReadinessProbeSuccessThreshold, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("ReadinessProbeTimeoutSecond")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).ReadinessProbeTimeoutSecond = (int?) content.GetValueForProperty("ReadinessProbeTimeoutSecond",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).ReadinessProbeTimeoutSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).ReadinessProbeTimeoutSecond = (int?) content.GetValueForProperty("ReadinessProbeTimeoutSecond",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).ReadinessProbeTimeoutSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("ReadinessProbeHttpGetScheme")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).ReadinessProbeHttpGetScheme = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme?) content.GetValueForProperty("ReadinessProbeHttpGetScheme",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).ReadinessProbeHttpGetScheme, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).ReadinessProbeHttpGetScheme = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme?) content.GetValueForProperty("ReadinessProbeHttpGetScheme",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).ReadinessProbeHttpGetScheme, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme.CreateFrom); + } + if (content.Contains("SecurityContextCapability")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).SecurityContextCapability = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextCapabilitiesDefinition) content.GetValueForProperty("SecurityContextCapability",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).SecurityContextCapability, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.SecurityContextCapabilitiesDefinitionTypeConverter.ConvertFrom); + } + if (content.Contains("SecurityContextPrivileged")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).SecurityContextPrivileged = (bool?) content.GetValueForProperty("SecurityContextPrivileged",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).SecurityContextPrivileged, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("SecurityContextAllowPrivilegeEscalation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).SecurityContextAllowPrivilegeEscalation = (bool?) content.GetValueForProperty("SecurityContextAllowPrivilegeEscalation",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).SecurityContextAllowPrivilegeEscalation, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("SecurityContextRunAsGroup")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).SecurityContextRunAsGroup = (int?) content.GetValueForProperty("SecurityContextRunAsGroup",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).SecurityContextRunAsGroup, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("SecurityContextRunAsUser")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).SecurityContextRunAsUser = (int?) content.GetValueForProperty("SecurityContextRunAsUser",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).SecurityContextRunAsUser, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("SecurityContextSeccompProfile")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).SecurityContextSeccompProfile = (string) content.GetValueForProperty("SecurityContextSeccompProfile",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).SecurityContextSeccompProfile, global::System.Convert.ToString); + } + if (content.Contains("ConfigMapKeyValuePair")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).ConfigMapKeyValuePair = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfigMapKeyValuePairs) content.GetValueForProperty("ConfigMapKeyValuePair",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).ConfigMapKeyValuePair, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ConfigMapKeyValuePairsTypeConverter.ConvertFrom); } if (content.Contains("CurrentState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).CurrentState = (string) content.GetValueForProperty("CurrentState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).CurrentState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).CurrentState = (string) content.GetValueForProperty("CurrentState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).CurrentState, global::System.Convert.ToString); } if (content.Contains("CurrentStateStartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).CurrentStateStartTime = (global::System.DateTime?) content.GetValueForProperty("CurrentStateStartTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).CurrentStateStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).CurrentStateStartTime = (global::System.DateTime?) content.GetValueForProperty("CurrentStateStartTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).CurrentStateStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("CurrentStateExitCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).CurrentStateExitCode = (int?) content.GetValueForProperty("CurrentStateExitCode",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).CurrentStateExitCode, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).CurrentStateExitCode = (int?) content.GetValueForProperty("CurrentStateExitCode",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).CurrentStateExitCode, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("CurrentStateFinishTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).CurrentStateFinishTime = (global::System.DateTime?) content.GetValueForProperty("CurrentStateFinishTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).CurrentStateFinishTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).CurrentStateFinishTime = (global::System.DateTime?) content.GetValueForProperty("CurrentStateFinishTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).CurrentStateFinishTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("CurrentStateDetailStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).CurrentStateDetailStatus = (string) content.GetValueForProperty("CurrentStateDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).CurrentStateDetailStatus, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).CurrentStateDetailStatus = (string) content.GetValueForProperty("CurrentStateDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).CurrentStateDetailStatus, global::System.Convert.ToString); } if (content.Contains("PreviousState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).PreviousState = (string) content.GetValueForProperty("PreviousState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).PreviousState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).PreviousState = (string) content.GetValueForProperty("PreviousState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).PreviousState, global::System.Convert.ToString); } if (content.Contains("PreviousStateStartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).PreviousStateStartTime = (global::System.DateTime?) content.GetValueForProperty("PreviousStateStartTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).PreviousStateStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).PreviousStateStartTime = (global::System.DateTime?) content.GetValueForProperty("PreviousStateStartTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).PreviousStateStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("PreviousStateExitCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).PreviousStateExitCode = (int?) content.GetValueForProperty("PreviousStateExitCode",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).PreviousStateExitCode, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).PreviousStateExitCode = (int?) content.GetValueForProperty("PreviousStateExitCode",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).PreviousStateExitCode, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("PreviousStateFinishTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).PreviousStateFinishTime = (global::System.DateTime?) content.GetValueForProperty("PreviousStateFinishTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).PreviousStateFinishTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).PreviousStateFinishTime = (global::System.DateTime?) content.GetValueForProperty("PreviousStateFinishTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).PreviousStateFinishTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("PreviousStateDetailStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).PreviousStateDetailStatus = (string) content.GetValueForProperty("PreviousStateDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).PreviousStateDetailStatus, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).PreviousStateDetailStatus = (string) content.GetValueForProperty("PreviousStateDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).PreviousStateDetailStatus, global::System.Convert.ToString); } if (content.Contains("RequestGpu")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).RequestGpu = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGpuResource) content.GetValueForProperty("RequestGpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).RequestGpu, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.GpuResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).RequestGpu = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGpuResource) content.GetValueForProperty("RequestGpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).RequestGpu, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.GpuResourceTypeConverter.ConvertFrom); } if (content.Contains("RequestMemoryInGb")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).RequestMemoryInGb = (double) content.GetValueForProperty("RequestMemoryInGb",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).RequestMemoryInGb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).RequestMemoryInGb = (double) content.GetValueForProperty("RequestMemoryInGb",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).RequestMemoryInGb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); } if (content.Contains("RequestCpu")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).RequestCpu = (double) content.GetValueForProperty("RequestCpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).RequestCpu, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).RequestCpu = (double) content.GetValueForProperty("RequestCpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).RequestCpu, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); } if (content.Contains("RequestsGpuSku")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).RequestsGpuSku = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku) content.GetValueForProperty("RequestsGpuSku",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).RequestsGpuSku, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).RequestsGpuSku = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku) content.GetValueForProperty("RequestsGpuSku",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).RequestsGpuSku, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku.CreateFrom); } if (content.Contains("LimitGpu")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LimitGpu = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGpuResource) content.GetValueForProperty("LimitGpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LimitGpu, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.GpuResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LimitGpu = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGpuResource) content.GetValueForProperty("LimitGpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LimitGpu, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.GpuResourceTypeConverter.ConvertFrom); } if (content.Contains("LimitMemoryInGb")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LimitMemoryInGb = (double?) content.GetValueForProperty("LimitMemoryInGb",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LimitMemoryInGb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LimitMemoryInGb = (double?) content.GetValueForProperty("LimitMemoryInGb",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LimitMemoryInGb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); } if (content.Contains("LimitCpu")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LimitCpu = (double?) content.GetValueForProperty("LimitCpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LimitCpu, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LimitCpu = (double?) content.GetValueForProperty("LimitCpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LimitCpu, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); } if (content.Contains("LimitsGpuSku")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LimitsGpuSku = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku) content.GetValueForProperty("LimitsGpuSku",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LimitsGpuSku, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LimitsGpuSku = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku) content.GetValueForProperty("LimitsGpuSku",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LimitsGpuSku, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku.CreateFrom); } if (content.Contains("LivenessProbeExecCommand")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LivenessProbeExecCommand = (string[]) content.GetValueForProperty("LivenessProbeExecCommand",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LivenessProbeExecCommand, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LivenessProbeExecCommand = (string[]) content.GetValueForProperty("LivenessProbeExecCommand",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LivenessProbeExecCommand, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("LivenessProbeHttpGetPath")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LivenessProbeHttpGetPath = (string) content.GetValueForProperty("LivenessProbeHttpGetPath",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LivenessProbeHttpGetPath, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LivenessProbeHttpGetPath = (string) content.GetValueForProperty("LivenessProbeHttpGetPath",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LivenessProbeHttpGetPath, global::System.Convert.ToString); } if (content.Contains("LivenessProbeHttpGetPort")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LivenessProbeHttpGetPort = (int) content.GetValueForProperty("LivenessProbeHttpGetPort",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LivenessProbeHttpGetPort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LivenessProbeHttpGetPort = (int) content.GetValueForProperty("LivenessProbeHttpGetPort",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LivenessProbeHttpGetPort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("LivenessProbeHttpGetHttpHeader")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LivenessProbeHttpGetHttpHeader = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IHttpHeader[]) content.GetValueForProperty("LivenessProbeHttpGetHttpHeader",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LivenessProbeHttpGetHttpHeader, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.HttpHeaderTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LivenessProbeHttpGetHttpHeader = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader[]) content.GetValueForProperty("LivenessProbeHttpGetHttpHeader",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LivenessProbeHttpGetHttpHeader, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.HttpHeaderTypeConverter.ConvertFrom)); } if (content.Contains("ReadinessProbeExecCommand")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).ReadinessProbeExecCommand = (string[]) content.GetValueForProperty("ReadinessProbeExecCommand",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).ReadinessProbeExecCommand, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).ReadinessProbeExecCommand = (string[]) content.GetValueForProperty("ReadinessProbeExecCommand",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).ReadinessProbeExecCommand, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("ReadinessProbeHttpGetPath")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).ReadinessProbeHttpGetPath = (string) content.GetValueForProperty("ReadinessProbeHttpGetPath",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).ReadinessProbeHttpGetPath, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).ReadinessProbeHttpGetPath = (string) content.GetValueForProperty("ReadinessProbeHttpGetPath",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).ReadinessProbeHttpGetPath, global::System.Convert.ToString); } if (content.Contains("ReadinessProbeHttpGetPort")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).ReadinessProbeHttpGetPort = (int) content.GetValueForProperty("ReadinessProbeHttpGetPort",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).ReadinessProbeHttpGetPort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).ReadinessProbeHttpGetPort = (int) content.GetValueForProperty("ReadinessProbeHttpGetPort",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).ReadinessProbeHttpGetPort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("ReadinessProbeHttpGetHttpHeader")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).ReadinessProbeHttpGetHttpHeader = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IHttpHeader[]) content.GetValueForProperty("ReadinessProbeHttpGetHttpHeader",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).ReadinessProbeHttpGetHttpHeader, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.HttpHeaderTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).ReadinessProbeHttpGetHttpHeader = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader[]) content.GetValueForProperty("ReadinessProbeHttpGetHttpHeader",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).ReadinessProbeHttpGetHttpHeader, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.HttpHeaderTypeConverter.ConvertFrom)); + } + if (content.Contains("CapabilityAdd")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).CapabilityAdd = (string[]) content.GetValueForProperty("CapabilityAdd",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).CapabilityAdd, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("CapabilityDrop")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).CapabilityDrop = (string[]) content.GetValueForProperty("CapabilityDrop",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).CapabilityDrop, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("RequestsGpuCount")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).RequestsGpuCount = (int) content.GetValueForProperty("RequestsGpuCount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).RequestsGpuCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).RequestsGpuCount = (int) content.GetValueForProperty("RequestsGpuCount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).RequestsGpuCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("LimitsGpuCount")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LimitsGpuCount = (int) content.GetValueForProperty("LimitsGpuCount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LimitsGpuCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LimitsGpuCount = (int) content.GetValueForProperty("LimitsGpuCount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LimitsGpuCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -339,273 +383,317 @@ internal Container(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerPropertiesTypeConverter.ConvertFrom); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("ConfigMap")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).ConfigMap = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfigMap) content.GetValueForProperty("ConfigMap",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).ConfigMap, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ConfigMapTypeConverter.ConvertFrom); } if (content.Contains("InstanceView")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).InstanceView = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceView) content.GetValueForProperty("InstanceView",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).InstanceView, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerPropertiesInstanceViewTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).InstanceView = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceView) content.GetValueForProperty("InstanceView",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).InstanceView, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerPropertiesInstanceViewTypeConverter.ConvertFrom); } if (content.Contains("Resource")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).Resource = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirements) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).Resource, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ResourceRequirementsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).Resource = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirements) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).Resource, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ResourceRequirementsTypeConverter.ConvertFrom); } if (content.Contains("LivenessProbe")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LivenessProbe = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbe) content.GetValueForProperty("LivenessProbe",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LivenessProbe, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerProbeTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LivenessProbe = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbe) content.GetValueForProperty("LivenessProbe",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LivenessProbe, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerProbeTypeConverter.ConvertFrom); } if (content.Contains("ReadinessProbe")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).ReadinessProbe = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbe) content.GetValueForProperty("ReadinessProbe",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).ReadinessProbe, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerProbeTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).ReadinessProbe = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbe) content.GetValueForProperty("ReadinessProbe",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).ReadinessProbe, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerProbeTypeConverter.ConvertFrom); + } + if (content.Contains("SecurityContext")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).SecurityContext = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinition) content.GetValueForProperty("SecurityContext",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).SecurityContext, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.SecurityContextDefinitionTypeConverter.ConvertFrom); } if (content.Contains("Image")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).Image = (string) content.GetValueForProperty("Image",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).Image, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).Image = (string) content.GetValueForProperty("Image",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).Image, global::System.Convert.ToString); } if (content.Contains("Command")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).Command = (string[]) content.GetValueForProperty("Command",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).Command, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).Command = (string[]) content.GetValueForProperty("Command",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).Command, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("Port")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).Port = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPort[]) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).Port, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerPortTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).Port = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPort[]) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).Port, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerPortTypeConverter.ConvertFrom)); } if (content.Contains("EnvironmentVariable")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).EnvironmentVariable = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEnvironmentVariable[]) content.GetValueForProperty("EnvironmentVariable",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).EnvironmentVariable, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.EnvironmentVariableTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).EnvironmentVariable = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariable[]) content.GetValueForProperty("EnvironmentVariable",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).EnvironmentVariable, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.EnvironmentVariableTypeConverter.ConvertFrom)); } if (content.Contains("VolumeMount")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).VolumeMount = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeMount[]) content.GetValueForProperty("VolumeMount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).VolumeMount, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.VolumeMountTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).VolumeMount = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMount[]) content.GetValueForProperty("VolumeMount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).VolumeMount, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.VolumeMountTypeConverter.ConvertFrom)); } if (content.Contains("InstanceViewCurrentState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).InstanceViewCurrentState = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerState) content.GetValueForProperty("InstanceViewCurrentState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).InstanceViewCurrentState, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerStateTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).InstanceViewCurrentState = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerState) content.GetValueForProperty("InstanceViewCurrentState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).InstanceViewCurrentState, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerStateTypeConverter.ConvertFrom); } if (content.Contains("InstanceViewPreviousState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).InstanceViewPreviousState = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerState) content.GetValueForProperty("InstanceViewPreviousState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).InstanceViewPreviousState, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerStateTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).InstanceViewPreviousState = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerState) content.GetValueForProperty("InstanceViewPreviousState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).InstanceViewPreviousState, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerStateTypeConverter.ConvertFrom); } if (content.Contains("InstanceViewRestartCount")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).InstanceViewRestartCount = (int?) content.GetValueForProperty("InstanceViewRestartCount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).InstanceViewRestartCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).InstanceViewRestartCount = (int?) content.GetValueForProperty("InstanceViewRestartCount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).InstanceViewRestartCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("InstanceViewEvent")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).InstanceViewEvent = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent[]) content.GetValueForProperty("InstanceViewEvent",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).InstanceViewEvent, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.EventTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).InstanceViewEvent = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent[]) content.GetValueForProperty("InstanceViewEvent",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).InstanceViewEvent, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.EventTypeConverter.ConvertFrom)); } if (content.Contains("ResourceRequest")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).ResourceRequest = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequests) content.GetValueForProperty("ResourceRequest",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).ResourceRequest, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ResourceRequestsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).ResourceRequest = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequests) content.GetValueForProperty("ResourceRequest",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).ResourceRequest, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ResourceRequestsTypeConverter.ConvertFrom); } if (content.Contains("ResourceLimit")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).ResourceLimit = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceLimits) content.GetValueForProperty("ResourceLimit",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).ResourceLimit, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ResourceLimitsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).ResourceLimit = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceLimits) content.GetValueForProperty("ResourceLimit",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).ResourceLimit, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ResourceLimitsTypeConverter.ConvertFrom); } if (content.Contains("LivenessProbeExec")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LivenessProbeExec = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExec) content.GetValueForProperty("LivenessProbeExec",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LivenessProbeExec, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerExecTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LivenessProbeExec = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExec) content.GetValueForProperty("LivenessProbeExec",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LivenessProbeExec, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerExecTypeConverter.ConvertFrom); } if (content.Contains("LivenessProbeHttpGet")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LivenessProbeHttpGet = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerHttpGet) content.GetValueForProperty("LivenessProbeHttpGet",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LivenessProbeHttpGet, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerHttpGetTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LivenessProbeHttpGet = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerHttpGet) content.GetValueForProperty("LivenessProbeHttpGet",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LivenessProbeHttpGet, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerHttpGetTypeConverter.ConvertFrom); } if (content.Contains("LivenessProbeInitialDelaySecond")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LivenessProbeInitialDelaySecond = (int?) content.GetValueForProperty("LivenessProbeInitialDelaySecond",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LivenessProbeInitialDelaySecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LivenessProbeInitialDelaySecond = (int?) content.GetValueForProperty("LivenessProbeInitialDelaySecond",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LivenessProbeInitialDelaySecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("LivenessProbePeriodSecond")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LivenessProbePeriodSecond = (int?) content.GetValueForProperty("LivenessProbePeriodSecond",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LivenessProbePeriodSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LivenessProbePeriodSecond = (int?) content.GetValueForProperty("LivenessProbePeriodSecond",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LivenessProbePeriodSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("LivenessProbeFailureThreshold")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LivenessProbeFailureThreshold = (int?) content.GetValueForProperty("LivenessProbeFailureThreshold",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LivenessProbeFailureThreshold, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LivenessProbeFailureThreshold = (int?) content.GetValueForProperty("LivenessProbeFailureThreshold",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LivenessProbeFailureThreshold, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("LivenessProbeSuccessThreshold")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LivenessProbeSuccessThreshold = (int?) content.GetValueForProperty("LivenessProbeSuccessThreshold",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LivenessProbeSuccessThreshold, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LivenessProbeSuccessThreshold = (int?) content.GetValueForProperty("LivenessProbeSuccessThreshold",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LivenessProbeSuccessThreshold, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("LivenessProbeTimeoutSecond")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LivenessProbeTimeoutSecond = (int?) content.GetValueForProperty("LivenessProbeTimeoutSecond",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LivenessProbeTimeoutSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LivenessProbeTimeoutSecond = (int?) content.GetValueForProperty("LivenessProbeTimeoutSecond",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LivenessProbeTimeoutSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("LivenessProbeHttpGetScheme")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LivenessProbeHttpGetScheme = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme?) content.GetValueForProperty("LivenessProbeHttpGetScheme",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LivenessProbeHttpGetScheme, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LivenessProbeHttpGetScheme = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme?) content.GetValueForProperty("LivenessProbeHttpGetScheme",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LivenessProbeHttpGetScheme, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme.CreateFrom); } if (content.Contains("ReadinessProbeExec")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).ReadinessProbeExec = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExec) content.GetValueForProperty("ReadinessProbeExec",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).ReadinessProbeExec, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerExecTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).ReadinessProbeExec = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExec) content.GetValueForProperty("ReadinessProbeExec",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).ReadinessProbeExec, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerExecTypeConverter.ConvertFrom); } if (content.Contains("ReadinessProbeHttpGet")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).ReadinessProbeHttpGet = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerHttpGet) content.GetValueForProperty("ReadinessProbeHttpGet",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).ReadinessProbeHttpGet, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerHttpGetTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).ReadinessProbeHttpGet = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerHttpGet) content.GetValueForProperty("ReadinessProbeHttpGet",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).ReadinessProbeHttpGet, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerHttpGetTypeConverter.ConvertFrom); } if (content.Contains("ReadinessProbeInitialDelaySecond")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).ReadinessProbeInitialDelaySecond = (int?) content.GetValueForProperty("ReadinessProbeInitialDelaySecond",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).ReadinessProbeInitialDelaySecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).ReadinessProbeInitialDelaySecond = (int?) content.GetValueForProperty("ReadinessProbeInitialDelaySecond",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).ReadinessProbeInitialDelaySecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("ReadinessProbePeriodSecond")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).ReadinessProbePeriodSecond = (int?) content.GetValueForProperty("ReadinessProbePeriodSecond",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).ReadinessProbePeriodSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).ReadinessProbePeriodSecond = (int?) content.GetValueForProperty("ReadinessProbePeriodSecond",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).ReadinessProbePeriodSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("ReadinessProbeFailureThreshold")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).ReadinessProbeFailureThreshold = (int?) content.GetValueForProperty("ReadinessProbeFailureThreshold",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).ReadinessProbeFailureThreshold, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).ReadinessProbeFailureThreshold = (int?) content.GetValueForProperty("ReadinessProbeFailureThreshold",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).ReadinessProbeFailureThreshold, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("ReadinessProbeSuccessThreshold")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).ReadinessProbeSuccessThreshold = (int?) content.GetValueForProperty("ReadinessProbeSuccessThreshold",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).ReadinessProbeSuccessThreshold, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).ReadinessProbeSuccessThreshold = (int?) content.GetValueForProperty("ReadinessProbeSuccessThreshold",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).ReadinessProbeSuccessThreshold, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("ReadinessProbeTimeoutSecond")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).ReadinessProbeTimeoutSecond = (int?) content.GetValueForProperty("ReadinessProbeTimeoutSecond",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).ReadinessProbeTimeoutSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).ReadinessProbeTimeoutSecond = (int?) content.GetValueForProperty("ReadinessProbeTimeoutSecond",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).ReadinessProbeTimeoutSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("ReadinessProbeHttpGetScheme")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).ReadinessProbeHttpGetScheme = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme?) content.GetValueForProperty("ReadinessProbeHttpGetScheme",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).ReadinessProbeHttpGetScheme, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).ReadinessProbeHttpGetScheme = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme?) content.GetValueForProperty("ReadinessProbeHttpGetScheme",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).ReadinessProbeHttpGetScheme, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme.CreateFrom); + } + if (content.Contains("SecurityContextCapability")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).SecurityContextCapability = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextCapabilitiesDefinition) content.GetValueForProperty("SecurityContextCapability",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).SecurityContextCapability, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.SecurityContextCapabilitiesDefinitionTypeConverter.ConvertFrom); + } + if (content.Contains("SecurityContextPrivileged")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).SecurityContextPrivileged = (bool?) content.GetValueForProperty("SecurityContextPrivileged",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).SecurityContextPrivileged, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("SecurityContextAllowPrivilegeEscalation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).SecurityContextAllowPrivilegeEscalation = (bool?) content.GetValueForProperty("SecurityContextAllowPrivilegeEscalation",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).SecurityContextAllowPrivilegeEscalation, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("SecurityContextRunAsGroup")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).SecurityContextRunAsGroup = (int?) content.GetValueForProperty("SecurityContextRunAsGroup",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).SecurityContextRunAsGroup, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("SecurityContextRunAsUser")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).SecurityContextRunAsUser = (int?) content.GetValueForProperty("SecurityContextRunAsUser",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).SecurityContextRunAsUser, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("SecurityContextSeccompProfile")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).SecurityContextSeccompProfile = (string) content.GetValueForProperty("SecurityContextSeccompProfile",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).SecurityContextSeccompProfile, global::System.Convert.ToString); + } + if (content.Contains("ConfigMapKeyValuePair")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).ConfigMapKeyValuePair = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfigMapKeyValuePairs) content.GetValueForProperty("ConfigMapKeyValuePair",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).ConfigMapKeyValuePair, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ConfigMapKeyValuePairsTypeConverter.ConvertFrom); } if (content.Contains("CurrentState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).CurrentState = (string) content.GetValueForProperty("CurrentState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).CurrentState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).CurrentState = (string) content.GetValueForProperty("CurrentState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).CurrentState, global::System.Convert.ToString); } if (content.Contains("CurrentStateStartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).CurrentStateStartTime = (global::System.DateTime?) content.GetValueForProperty("CurrentStateStartTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).CurrentStateStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).CurrentStateStartTime = (global::System.DateTime?) content.GetValueForProperty("CurrentStateStartTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).CurrentStateStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("CurrentStateExitCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).CurrentStateExitCode = (int?) content.GetValueForProperty("CurrentStateExitCode",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).CurrentStateExitCode, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).CurrentStateExitCode = (int?) content.GetValueForProperty("CurrentStateExitCode",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).CurrentStateExitCode, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("CurrentStateFinishTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).CurrentStateFinishTime = (global::System.DateTime?) content.GetValueForProperty("CurrentStateFinishTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).CurrentStateFinishTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).CurrentStateFinishTime = (global::System.DateTime?) content.GetValueForProperty("CurrentStateFinishTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).CurrentStateFinishTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("CurrentStateDetailStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).CurrentStateDetailStatus = (string) content.GetValueForProperty("CurrentStateDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).CurrentStateDetailStatus, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).CurrentStateDetailStatus = (string) content.GetValueForProperty("CurrentStateDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).CurrentStateDetailStatus, global::System.Convert.ToString); } if (content.Contains("PreviousState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).PreviousState = (string) content.GetValueForProperty("PreviousState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).PreviousState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).PreviousState = (string) content.GetValueForProperty("PreviousState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).PreviousState, global::System.Convert.ToString); } if (content.Contains("PreviousStateStartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).PreviousStateStartTime = (global::System.DateTime?) content.GetValueForProperty("PreviousStateStartTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).PreviousStateStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).PreviousStateStartTime = (global::System.DateTime?) content.GetValueForProperty("PreviousStateStartTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).PreviousStateStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("PreviousStateExitCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).PreviousStateExitCode = (int?) content.GetValueForProperty("PreviousStateExitCode",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).PreviousStateExitCode, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).PreviousStateExitCode = (int?) content.GetValueForProperty("PreviousStateExitCode",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).PreviousStateExitCode, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("PreviousStateFinishTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).PreviousStateFinishTime = (global::System.DateTime?) content.GetValueForProperty("PreviousStateFinishTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).PreviousStateFinishTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).PreviousStateFinishTime = (global::System.DateTime?) content.GetValueForProperty("PreviousStateFinishTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).PreviousStateFinishTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("PreviousStateDetailStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).PreviousStateDetailStatus = (string) content.GetValueForProperty("PreviousStateDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).PreviousStateDetailStatus, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).PreviousStateDetailStatus = (string) content.GetValueForProperty("PreviousStateDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).PreviousStateDetailStatus, global::System.Convert.ToString); } if (content.Contains("RequestGpu")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).RequestGpu = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGpuResource) content.GetValueForProperty("RequestGpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).RequestGpu, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.GpuResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).RequestGpu = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGpuResource) content.GetValueForProperty("RequestGpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).RequestGpu, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.GpuResourceTypeConverter.ConvertFrom); } if (content.Contains("RequestMemoryInGb")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).RequestMemoryInGb = (double) content.GetValueForProperty("RequestMemoryInGb",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).RequestMemoryInGb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).RequestMemoryInGb = (double) content.GetValueForProperty("RequestMemoryInGb",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).RequestMemoryInGb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); } if (content.Contains("RequestCpu")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).RequestCpu = (double) content.GetValueForProperty("RequestCpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).RequestCpu, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).RequestCpu = (double) content.GetValueForProperty("RequestCpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).RequestCpu, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); } if (content.Contains("RequestsGpuSku")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).RequestsGpuSku = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku) content.GetValueForProperty("RequestsGpuSku",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).RequestsGpuSku, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).RequestsGpuSku = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku) content.GetValueForProperty("RequestsGpuSku",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).RequestsGpuSku, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku.CreateFrom); } if (content.Contains("LimitGpu")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LimitGpu = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGpuResource) content.GetValueForProperty("LimitGpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LimitGpu, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.GpuResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LimitGpu = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGpuResource) content.GetValueForProperty("LimitGpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LimitGpu, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.GpuResourceTypeConverter.ConvertFrom); } if (content.Contains("LimitMemoryInGb")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LimitMemoryInGb = (double?) content.GetValueForProperty("LimitMemoryInGb",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LimitMemoryInGb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LimitMemoryInGb = (double?) content.GetValueForProperty("LimitMemoryInGb",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LimitMemoryInGb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); } if (content.Contains("LimitCpu")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LimitCpu = (double?) content.GetValueForProperty("LimitCpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LimitCpu, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LimitCpu = (double?) content.GetValueForProperty("LimitCpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LimitCpu, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); } if (content.Contains("LimitsGpuSku")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LimitsGpuSku = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku) content.GetValueForProperty("LimitsGpuSku",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LimitsGpuSku, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LimitsGpuSku = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku) content.GetValueForProperty("LimitsGpuSku",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LimitsGpuSku, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku.CreateFrom); } if (content.Contains("LivenessProbeExecCommand")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LivenessProbeExecCommand = (string[]) content.GetValueForProperty("LivenessProbeExecCommand",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LivenessProbeExecCommand, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LivenessProbeExecCommand = (string[]) content.GetValueForProperty("LivenessProbeExecCommand",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LivenessProbeExecCommand, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("LivenessProbeHttpGetPath")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LivenessProbeHttpGetPath = (string) content.GetValueForProperty("LivenessProbeHttpGetPath",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LivenessProbeHttpGetPath, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LivenessProbeHttpGetPath = (string) content.GetValueForProperty("LivenessProbeHttpGetPath",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LivenessProbeHttpGetPath, global::System.Convert.ToString); } if (content.Contains("LivenessProbeHttpGetPort")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LivenessProbeHttpGetPort = (int) content.GetValueForProperty("LivenessProbeHttpGetPort",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LivenessProbeHttpGetPort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LivenessProbeHttpGetPort = (int) content.GetValueForProperty("LivenessProbeHttpGetPort",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LivenessProbeHttpGetPort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("LivenessProbeHttpGetHttpHeader")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LivenessProbeHttpGetHttpHeader = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IHttpHeader[]) content.GetValueForProperty("LivenessProbeHttpGetHttpHeader",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LivenessProbeHttpGetHttpHeader, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.HttpHeaderTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LivenessProbeHttpGetHttpHeader = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader[]) content.GetValueForProperty("LivenessProbeHttpGetHttpHeader",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LivenessProbeHttpGetHttpHeader, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.HttpHeaderTypeConverter.ConvertFrom)); } if (content.Contains("ReadinessProbeExecCommand")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).ReadinessProbeExecCommand = (string[]) content.GetValueForProperty("ReadinessProbeExecCommand",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).ReadinessProbeExecCommand, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).ReadinessProbeExecCommand = (string[]) content.GetValueForProperty("ReadinessProbeExecCommand",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).ReadinessProbeExecCommand, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("ReadinessProbeHttpGetPath")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).ReadinessProbeHttpGetPath = (string) content.GetValueForProperty("ReadinessProbeHttpGetPath",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).ReadinessProbeHttpGetPath, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).ReadinessProbeHttpGetPath = (string) content.GetValueForProperty("ReadinessProbeHttpGetPath",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).ReadinessProbeHttpGetPath, global::System.Convert.ToString); } if (content.Contains("ReadinessProbeHttpGetPort")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).ReadinessProbeHttpGetPort = (int) content.GetValueForProperty("ReadinessProbeHttpGetPort",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).ReadinessProbeHttpGetPort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).ReadinessProbeHttpGetPort = (int) content.GetValueForProperty("ReadinessProbeHttpGetPort",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).ReadinessProbeHttpGetPort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("ReadinessProbeHttpGetHttpHeader")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).ReadinessProbeHttpGetHttpHeader = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IHttpHeader[]) content.GetValueForProperty("ReadinessProbeHttpGetHttpHeader",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).ReadinessProbeHttpGetHttpHeader, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.HttpHeaderTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).ReadinessProbeHttpGetHttpHeader = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader[]) content.GetValueForProperty("ReadinessProbeHttpGetHttpHeader",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).ReadinessProbeHttpGetHttpHeader, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.HttpHeaderTypeConverter.ConvertFrom)); + } + if (content.Contains("CapabilityAdd")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).CapabilityAdd = (string[]) content.GetValueForProperty("CapabilityAdd",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).CapabilityAdd, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("CapabilityDrop")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).CapabilityDrop = (string[]) content.GetValueForProperty("CapabilityDrop",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).CapabilityDrop, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("RequestsGpuCount")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).RequestsGpuCount = (int) content.GetValueForProperty("RequestsGpuCount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).RequestsGpuCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).RequestsGpuCount = (int) content.GetValueForProperty("RequestsGpuCount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).RequestsGpuCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("LimitsGpuCount")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LimitsGpuCount = (int) content.GetValueForProperty("LimitsGpuCount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal)this).LimitsGpuCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LimitsGpuCount = (int) content.GetValueForProperty("LimitsGpuCount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal)this).LimitsGpuCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainer DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainer DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new Container(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainer DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainer DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new Container(content); } @@ -615,7 +703,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api202 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainer FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainer FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Container.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Container.TypeConverter.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Container.TypeConverter.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Container.TypeConverter.cs index d37457894c2e..b684b25dcd42 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Container.TypeConverter.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Container.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainer ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainer ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainer).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainer).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Container.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Container.cs similarity index 67% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Container.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Container.cs index 612cb9bfe2e0..3018529a22eb 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Container.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Container.cs @@ -3,194 +3,215 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; /// A container instance. public partial class Container : - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainer, - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainer, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal { + /// The capabilities to add to the container. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public string[] CapabilityAdd { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).CapabilityAdd; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).CapabilityAdd = value ?? null /* arrayOf */; } + + /// The capabilities to drop from the container. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public string[] CapabilityDrop { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).CapabilityDrop; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).CapabilityDrop = value ?? null /* arrayOf */; } + /// The commands to execute within the container instance in exec form. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string[] Command { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).Command; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).Command = value ?? null /* arrayOf */; } + public string[] Command { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).Command; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).Command = value ?? null /* arrayOf */; } + + /// The key value pairs dictionary in the config map. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfigMapKeyValuePairs ConfigMapKeyValuePair { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).ConfigMapKeyValuePair; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).ConfigMapKeyValuePair = value ?? null /* model class */; } /// The state of the container instance. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string CurrentState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).CurrentState; } + public string CurrentState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).CurrentState; } /// The human-readable status of the container instance state. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string CurrentStateDetailStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).CurrentStateDetailStatus; } + public string CurrentStateDetailStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).CurrentStateDetailStatus; } /// /// The container instance exit codes correspond to those from the `docker run` command. /// [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public int? CurrentStateExitCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).CurrentStateExitCode; } + public int? CurrentStateExitCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).CurrentStateExitCode; } /// The date-time when the container instance state finished. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public global::System.DateTime? CurrentStateFinishTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).CurrentStateFinishTime; } + public global::System.DateTime? CurrentStateFinishTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).CurrentStateFinishTime; } /// The date-time when the container instance state started. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public global::System.DateTime? CurrentStateStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).CurrentStateStartTime; } + public global::System.DateTime? CurrentStateStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).CurrentStateStartTime; } /// The environment variables to set in the container instance. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEnvironmentVariable[] EnvironmentVariable { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).EnvironmentVariable; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).EnvironmentVariable = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariable[] EnvironmentVariable { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).EnvironmentVariable; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).EnvironmentVariable = value ?? null /* arrayOf */; } /// The name of the image used to create the container instance. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string Image { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).Image; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).Image = value ; } + public string Image { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).Image; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).Image = value ?? null; } /// The events of the container instance. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent[] InstanceViewEvent { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).InstanceViewEvent; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent[] InstanceViewEvent { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).InstanceViewEvent; } /// The number of times that the container instance has been restarted. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public int? InstanceViewRestartCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).InstanceViewRestartCount; } + public int? InstanceViewRestartCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).InstanceViewRestartCount; } /// The CPU limit of this container instance. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public double? LimitCpu { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).LimitCpu; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).LimitCpu = value ?? default(double); } + public double? LimitCpu { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).LimitCpu; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).LimitCpu = value ?? default(double); } /// The memory limit in GB of this container instance. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public double? LimitMemoryInGb { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).LimitMemoryInGb; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).LimitMemoryInGb = value ?? default(double); } + public double? LimitMemoryInGb { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).LimitMemoryInGb; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).LimitMemoryInGb = value ?? default(double); } /// The count of the GPU resource. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public int? LimitsGpuCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).LimitsGpuCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).LimitsGpuCount = value ?? default(int); } + public int? LimitsGpuCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).LimitsGpuCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).LimitsGpuCount = value ?? default(int); } /// The SKU of the GPU resource. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku? LimitsGpuSku { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).LimitsGpuSku; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).LimitsGpuSku = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku)""); } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku? LimitsGpuSku { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).LimitsGpuSku; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).LimitsGpuSku = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku)""); } /// The commands to execute within the container. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string[] LivenessProbeExecCommand { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).LivenessProbeExecCommand; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).LivenessProbeExecCommand = value ?? null /* arrayOf */; } + public string[] LivenessProbeExecCommand { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).LivenessProbeExecCommand; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).LivenessProbeExecCommand = value ?? null /* arrayOf */; } /// The failure threshold. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public int? LivenessProbeFailureThreshold { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).LivenessProbeFailureThreshold; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).LivenessProbeFailureThreshold = value ?? default(int); } + public int? LivenessProbeFailureThreshold { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).LivenessProbeFailureThreshold; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).LivenessProbeFailureThreshold = value ?? default(int); } /// The HTTP headers. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IHttpHeader[] LivenessProbeHttpGetHttpHeader { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).LivenessProbeHttpGetHttpHeader; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).LivenessProbeHttpGetHttpHeader = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader[] LivenessProbeHttpGetHttpHeader { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).LivenessProbeHttpGetHttpHeader; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).LivenessProbeHttpGetHttpHeader = value ?? null /* arrayOf */; } /// The path to probe. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string LivenessProbeHttpGetPath { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).LivenessProbeHttpGetPath; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).LivenessProbeHttpGetPath = value ?? null; } + public string LivenessProbeHttpGetPath { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).LivenessProbeHttpGetPath; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).LivenessProbeHttpGetPath = value ?? null; } /// The port number to probe. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public int? LivenessProbeHttpGetPort { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).LivenessProbeHttpGetPort; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).LivenessProbeHttpGetPort = value ?? default(int); } + public int? LivenessProbeHttpGetPort { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).LivenessProbeHttpGetPort; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).LivenessProbeHttpGetPort = value ?? default(int); } /// The scheme. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme? LivenessProbeHttpGetScheme { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).LivenessProbeHttpGetScheme; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).LivenessProbeHttpGetScheme = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme)""); } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme? LivenessProbeHttpGetScheme { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).LivenessProbeHttpGetScheme; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).LivenessProbeHttpGetScheme = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme)""); } /// The initial delay seconds. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public int? LivenessProbeInitialDelaySecond { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).LivenessProbeInitialDelaySecond; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).LivenessProbeInitialDelaySecond = value ?? default(int); } + public int? LivenessProbeInitialDelaySecond { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).LivenessProbeInitialDelaySecond; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).LivenessProbeInitialDelaySecond = value ?? default(int); } /// The period seconds. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public int? LivenessProbePeriodSecond { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).LivenessProbePeriodSecond; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).LivenessProbePeriodSecond = value ?? default(int); } + public int? LivenessProbePeriodSecond { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).LivenessProbePeriodSecond; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).LivenessProbePeriodSecond = value ?? default(int); } /// The success threshold. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public int? LivenessProbeSuccessThreshold { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).LivenessProbeSuccessThreshold; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).LivenessProbeSuccessThreshold = value ?? default(int); } + public int? LivenessProbeSuccessThreshold { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).LivenessProbeSuccessThreshold; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).LivenessProbeSuccessThreshold = value ?? default(int); } /// The timeout seconds. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public int? LivenessProbeTimeoutSecond { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).LivenessProbeTimeoutSecond; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).LivenessProbeTimeoutSecond = value ?? default(int); } + public int? LivenessProbeTimeoutSecond { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).LivenessProbeTimeoutSecond; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).LivenessProbeTimeoutSecond = value ?? default(int); } + + /// Internal Acessors for ConfigMap + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfigMap Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal.ConfigMap { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).ConfigMap; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).ConfigMap = value; } /// Internal Acessors for CurrentState - string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal.CurrentState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).CurrentState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).CurrentState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal.CurrentState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).CurrentState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).CurrentState = value; } /// Internal Acessors for CurrentStateDetailStatus - string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal.CurrentStateDetailStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).CurrentStateDetailStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).CurrentStateDetailStatus = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal.CurrentStateDetailStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).CurrentStateDetailStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).CurrentStateDetailStatus = value; } /// Internal Acessors for CurrentStateExitCode - int? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal.CurrentStateExitCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).CurrentStateExitCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).CurrentStateExitCode = value; } + int? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal.CurrentStateExitCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).CurrentStateExitCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).CurrentStateExitCode = value; } /// Internal Acessors for CurrentStateFinishTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal.CurrentStateFinishTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).CurrentStateFinishTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).CurrentStateFinishTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal.CurrentStateFinishTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).CurrentStateFinishTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).CurrentStateFinishTime = value; } /// Internal Acessors for CurrentStateStartTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal.CurrentStateStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).CurrentStateStartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).CurrentStateStartTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal.CurrentStateStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).CurrentStateStartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).CurrentStateStartTime = value; } /// Internal Acessors for InstanceView - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceView Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal.InstanceView { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).InstanceView; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).InstanceView = value; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceView Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal.InstanceView { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).InstanceView; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).InstanceView = value; } /// Internal Acessors for InstanceViewCurrentState - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerState Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal.InstanceViewCurrentState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).InstanceViewCurrentState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).InstanceViewCurrentState = value; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerState Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal.InstanceViewCurrentState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).InstanceViewCurrentState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).InstanceViewCurrentState = value; } /// Internal Acessors for InstanceViewEvent - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent[] Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal.InstanceViewEvent { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).InstanceViewEvent; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).InstanceViewEvent = value; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent[] Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal.InstanceViewEvent { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).InstanceViewEvent; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).InstanceViewEvent = value; } /// Internal Acessors for InstanceViewPreviousState - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerState Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal.InstanceViewPreviousState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).InstanceViewPreviousState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).InstanceViewPreviousState = value; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerState Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal.InstanceViewPreviousState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).InstanceViewPreviousState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).InstanceViewPreviousState = value; } /// Internal Acessors for InstanceViewRestartCount - int? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal.InstanceViewRestartCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).InstanceViewRestartCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).InstanceViewRestartCount = value; } + int? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal.InstanceViewRestartCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).InstanceViewRestartCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).InstanceViewRestartCount = value; } /// Internal Acessors for LimitGpu - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGpuResource Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal.LimitGpu { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).LimitGpu; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).LimitGpu = value; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGpuResource Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal.LimitGpu { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).LimitGpu; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).LimitGpu = value; } /// Internal Acessors for LivenessProbe - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbe Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal.LivenessProbe { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).LivenessProbe; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).LivenessProbe = value; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbe Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal.LivenessProbe { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).LivenessProbe; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).LivenessProbe = value; } /// Internal Acessors for LivenessProbeExec - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExec Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal.LivenessProbeExec { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).LivenessProbeExec; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).LivenessProbeExec = value; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExec Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal.LivenessProbeExec { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).LivenessProbeExec; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).LivenessProbeExec = value; } /// Internal Acessors for LivenessProbeHttpGet - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerHttpGet Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal.LivenessProbeHttpGet { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).LivenessProbeHttpGet; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).LivenessProbeHttpGet = value; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerHttpGet Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal.LivenessProbeHttpGet { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).LivenessProbeHttpGet; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).LivenessProbeHttpGet = value; } /// Internal Acessors for PreviousState - string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal.PreviousState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).PreviousState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).PreviousState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal.PreviousState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).PreviousState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).PreviousState = value; } /// Internal Acessors for PreviousStateDetailStatus - string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal.PreviousStateDetailStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).PreviousStateDetailStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).PreviousStateDetailStatus = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal.PreviousStateDetailStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).PreviousStateDetailStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).PreviousStateDetailStatus = value; } /// Internal Acessors for PreviousStateExitCode - int? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal.PreviousStateExitCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).PreviousStateExitCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).PreviousStateExitCode = value; } + int? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal.PreviousStateExitCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).PreviousStateExitCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).PreviousStateExitCode = value; } /// Internal Acessors for PreviousStateFinishTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal.PreviousStateFinishTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).PreviousStateFinishTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).PreviousStateFinishTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal.PreviousStateFinishTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).PreviousStateFinishTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).PreviousStateFinishTime = value; } /// Internal Acessors for PreviousStateStartTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal.PreviousStateStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).PreviousStateStartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).PreviousStateStartTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal.PreviousStateStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).PreviousStateStartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).PreviousStateStartTime = value; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProperties Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProperties Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerProperties()); set { {_property = value;} } } /// Internal Acessors for ReadinessProbe - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbe Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal.ReadinessProbe { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).ReadinessProbe; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).ReadinessProbe = value; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbe Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal.ReadinessProbe { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).ReadinessProbe; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).ReadinessProbe = value; } /// Internal Acessors for ReadinessProbeExec - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExec Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal.ReadinessProbeExec { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).ReadinessProbeExec; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).ReadinessProbeExec = value; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExec Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal.ReadinessProbeExec { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).ReadinessProbeExec; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).ReadinessProbeExec = value; } /// Internal Acessors for ReadinessProbeHttpGet - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerHttpGet Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal.ReadinessProbeHttpGet { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).ReadinessProbeHttpGet; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).ReadinessProbeHttpGet = value; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerHttpGet Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal.ReadinessProbeHttpGet { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).ReadinessProbeHttpGet; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).ReadinessProbeHttpGet = value; } /// Internal Acessors for RequestGpu - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGpuResource Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal.RequestGpu { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).RequestGpu; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).RequestGpu = value; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGpuResource Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal.RequestGpu { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).RequestGpu; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).RequestGpu = value; } /// Internal Acessors for Resource - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirements Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal.Resource { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).Resource = value; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirements Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal.Resource { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).Resource = value; } /// Internal Acessors for ResourceLimit - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceLimits Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal.ResourceLimit { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).ResourceLimit; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).ResourceLimit = value; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceLimits Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal.ResourceLimit { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).ResourceLimit; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).ResourceLimit = value; } /// Internal Acessors for ResourceRequest - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequests Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerInternal.ResourceRequest { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).ResourceRequest; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).ResourceRequest = value; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequests Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal.ResourceRequest { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).ResourceRequest; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).ResourceRequest = value; } + + /// Internal Acessors for SecurityContext + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinition Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal.SecurityContext { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).SecurityContext; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).SecurityContext = value; } + + /// Internal Acessors for SecurityContextCapability + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextCapabilitiesDefinition Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerInternal.SecurityContextCapability { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).SecurityContextCapability; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).SecurityContextCapability = value; } /// Backing field for property. private string _name; @@ -201,96 +222,118 @@ public partial class Container : /// The exposed ports on the container instance. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPort[] Port { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).Port; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).Port = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPort[] Port { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).Port; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).Port = value ?? null /* arrayOf */; } /// The state of the container instance. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string PreviousState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).PreviousState; } + public string PreviousState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).PreviousState; } /// The human-readable status of the container instance state. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string PreviousStateDetailStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).PreviousStateDetailStatus; } + public string PreviousStateDetailStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).PreviousStateDetailStatus; } /// /// The container instance exit codes correspond to those from the `docker run` command. /// [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public int? PreviousStateExitCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).PreviousStateExitCode; } + public int? PreviousStateExitCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).PreviousStateExitCode; } /// The date-time when the container instance state finished. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public global::System.DateTime? PreviousStateFinishTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).PreviousStateFinishTime; } + public global::System.DateTime? PreviousStateFinishTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).PreviousStateFinishTime; } /// The date-time when the container instance state started. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public global::System.DateTime? PreviousStateStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).PreviousStateStartTime; } + public global::System.DateTime? PreviousStateStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).PreviousStateStartTime; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProperties _property; /// The properties of the container instance. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerProperties()); set => this._property = value; } /// The commands to execute within the container. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string[] ReadinessProbeExecCommand { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).ReadinessProbeExecCommand; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).ReadinessProbeExecCommand = value ?? null /* arrayOf */; } + public string[] ReadinessProbeExecCommand { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).ReadinessProbeExecCommand; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).ReadinessProbeExecCommand = value ?? null /* arrayOf */; } /// The failure threshold. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public int? ReadinessProbeFailureThreshold { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).ReadinessProbeFailureThreshold; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).ReadinessProbeFailureThreshold = value ?? default(int); } + public int? ReadinessProbeFailureThreshold { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).ReadinessProbeFailureThreshold; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).ReadinessProbeFailureThreshold = value ?? default(int); } /// The HTTP headers. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IHttpHeader[] ReadinessProbeHttpGetHttpHeader { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).ReadinessProbeHttpGetHttpHeader; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).ReadinessProbeHttpGetHttpHeader = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader[] ReadinessProbeHttpGetHttpHeader { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).ReadinessProbeHttpGetHttpHeader; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).ReadinessProbeHttpGetHttpHeader = value ?? null /* arrayOf */; } /// The path to probe. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string ReadinessProbeHttpGetPath { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).ReadinessProbeHttpGetPath; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).ReadinessProbeHttpGetPath = value ?? null; } + public string ReadinessProbeHttpGetPath { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).ReadinessProbeHttpGetPath; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).ReadinessProbeHttpGetPath = value ?? null; } /// The port number to probe. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public int? ReadinessProbeHttpGetPort { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).ReadinessProbeHttpGetPort; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).ReadinessProbeHttpGetPort = value ?? default(int); } + public int? ReadinessProbeHttpGetPort { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).ReadinessProbeHttpGetPort; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).ReadinessProbeHttpGetPort = value ?? default(int); } /// The scheme. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme? ReadinessProbeHttpGetScheme { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).ReadinessProbeHttpGetScheme; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).ReadinessProbeHttpGetScheme = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme)""); } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme? ReadinessProbeHttpGetScheme { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).ReadinessProbeHttpGetScheme; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).ReadinessProbeHttpGetScheme = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme)""); } /// The initial delay seconds. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public int? ReadinessProbeInitialDelaySecond { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).ReadinessProbeInitialDelaySecond; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).ReadinessProbeInitialDelaySecond = value ?? default(int); } + public int? ReadinessProbeInitialDelaySecond { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).ReadinessProbeInitialDelaySecond; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).ReadinessProbeInitialDelaySecond = value ?? default(int); } /// The period seconds. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public int? ReadinessProbePeriodSecond { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).ReadinessProbePeriodSecond; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).ReadinessProbePeriodSecond = value ?? default(int); } + public int? ReadinessProbePeriodSecond { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).ReadinessProbePeriodSecond; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).ReadinessProbePeriodSecond = value ?? default(int); } /// The success threshold. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public int? ReadinessProbeSuccessThreshold { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).ReadinessProbeSuccessThreshold; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).ReadinessProbeSuccessThreshold = value ?? default(int); } + public int? ReadinessProbeSuccessThreshold { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).ReadinessProbeSuccessThreshold; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).ReadinessProbeSuccessThreshold = value ?? default(int); } /// The timeout seconds. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public int? ReadinessProbeTimeoutSecond { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).ReadinessProbeTimeoutSecond; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).ReadinessProbeTimeoutSecond = value ?? default(int); } + public int? ReadinessProbeTimeoutSecond { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).ReadinessProbeTimeoutSecond; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).ReadinessProbeTimeoutSecond = value ?? default(int); } /// The CPU request of this container instance. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public double RequestCpu { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).RequestCpu; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).RequestCpu = value ; } + public double? RequestCpu { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).RequestCpu; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).RequestCpu = value ?? default(double); } /// The memory request in GB of this container instance. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public double RequestMemoryInGb { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).RequestMemoryInGb; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).RequestMemoryInGb = value ; } + public double? RequestMemoryInGb { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).RequestMemoryInGb; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).RequestMemoryInGb = value ?? default(double); } /// The count of the GPU resource. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public int? RequestsGpuCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).RequestsGpuCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).RequestsGpuCount = value ?? default(int); } + public int? RequestsGpuCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).RequestsGpuCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).RequestsGpuCount = value ?? default(int); } /// The SKU of the GPU resource. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku? RequestsGpuSku { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).RequestsGpuSku; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).RequestsGpuSku = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku)""); } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku? RequestsGpuSku { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).RequestsGpuSku; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).RequestsGpuSku = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku)""); } + + /// A boolean value indicating whether the init process can elevate its privileges + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public bool? SecurityContextAllowPrivilegeEscalation { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).SecurityContextAllowPrivilegeEscalation; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).SecurityContextAllowPrivilegeEscalation = value ?? default(bool); } + + /// The flag to determine if the container permissions is elevated to Privileged. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public bool? SecurityContextPrivileged { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).SecurityContextPrivileged; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).SecurityContextPrivileged = value ?? default(bool); } + + /// Sets the User GID for the container. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public int? SecurityContextRunAsGroup { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).SecurityContextRunAsGroup; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).SecurityContextRunAsGroup = value ?? default(int); } + + /// Sets the User UID for the container. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public int? SecurityContextRunAsUser { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).SecurityContextRunAsUser; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).SecurityContextRunAsUser = value ?? default(int); } + + /// + /// a base64 encoded string containing the contents of the JSON in the seccomp profile + /// + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public string SecurityContextSeccompProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).SecurityContextSeccompProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).SecurityContextSeccompProfile = value ?? null; } /// The volume mounts available to the container instance. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeMount[] VolumeMount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).VolumeMount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)Property).VolumeMount = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMount[] VolumeMount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).VolumeMount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)Property).VolumeMount = value ?? null /* arrayOf */; } /// Creates an new instance. public Container() @@ -302,6 +345,22 @@ public Container() public partial interface IContainer : Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IJsonSerializable { + /// The capabilities to add to the container. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The capabilities to add to the container.", + SerializedName = @"add", + PossibleTypes = new [] { typeof(string) })] + string[] CapabilityAdd { get; set; } + /// The capabilities to drop from the container. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The capabilities to drop from the container.", + SerializedName = @"drop", + PossibleTypes = new [] { typeof(string) })] + string[] CapabilityDrop { get; set; } /// The commands to execute within the container instance in exec form. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = false, @@ -310,6 +369,14 @@ public partial interface IContainer : SerializedName = @"command", PossibleTypes = new [] { typeof(string) })] string[] Command { get; set; } + /// The key value pairs dictionary in the config map. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The key value pairs dictionary in the config map.", + SerializedName = @"keyValuePairs", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfigMapKeyValuePairs) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfigMapKeyValuePairs ConfigMapKeyValuePair { get; set; } /// The state of the container instance. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = false, @@ -358,11 +425,11 @@ public partial interface IContainer : ReadOnly = false, Description = @"The environment variables to set in the container instance.", SerializedName = @"environmentVariables", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEnvironmentVariable) })] - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEnvironmentVariable[] EnvironmentVariable { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariable) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariable[] EnvironmentVariable { get; set; } /// The name of the image used to create the container instance. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Description = @"The name of the image used to create the container instance.", SerializedName = @"image", @@ -374,8 +441,8 @@ public partial interface IContainer : ReadOnly = true, Description = @"The events of the container instance.", SerializedName = @"events", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent) })] - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent[] InstanceViewEvent { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent[] InstanceViewEvent { get; } /// The number of times that the container instance has been restarted. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = false, @@ -438,8 +505,8 @@ public partial interface IContainer : ReadOnly = false, Description = @"The HTTP headers.", SerializedName = @"httpHeaders", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IHttpHeader) })] - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IHttpHeader[] LivenessProbeHttpGetHttpHeader { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader[] LivenessProbeHttpGetHttpHeader { get; set; } /// The path to probe. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = false, @@ -510,8 +577,8 @@ public partial interface IContainer : ReadOnly = false, Description = @"The exposed ports on the container instance.", SerializedName = @"ports", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPort) })] - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPort[] Port { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPort) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPort[] Port { get; set; } /// The state of the container instance. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = false, @@ -576,8 +643,8 @@ public partial interface IContainer : ReadOnly = false, Description = @"The HTTP headers.", SerializedName = @"httpHeaders", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IHttpHeader) })] - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IHttpHeader[] ReadinessProbeHttpGetHttpHeader { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader[] ReadinessProbeHttpGetHttpHeader { get; set; } /// The path to probe. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = false, @@ -636,20 +703,20 @@ public partial interface IContainer : int? ReadinessProbeTimeoutSecond { get; set; } /// The CPU request of this container instance. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Description = @"The CPU request of this container instance.", SerializedName = @"cpu", PossibleTypes = new [] { typeof(double) })] - double RequestCpu { get; set; } + double? RequestCpu { get; set; } /// The memory request in GB of this container instance. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Description = @"The memory request in GB of this container instance.", SerializedName = @"memoryInGB", PossibleTypes = new [] { typeof(double) })] - double RequestMemoryInGb { get; set; } + double? RequestMemoryInGb { get; set; } /// The count of the GPU resource. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = false, @@ -666,22 +733,72 @@ public partial interface IContainer : SerializedName = @"sku", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku) })] Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku? RequestsGpuSku { get; set; } + /// A boolean value indicating whether the init process can elevate its privileges + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A boolean value indicating whether the init process can elevate its privileges", + SerializedName = @"allowPrivilegeEscalation", + PossibleTypes = new [] { typeof(bool) })] + bool? SecurityContextAllowPrivilegeEscalation { get; set; } + /// The flag to determine if the container permissions is elevated to Privileged. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The flag to determine if the container permissions is elevated to Privileged.", + SerializedName = @"privileged", + PossibleTypes = new [] { typeof(bool) })] + bool? SecurityContextPrivileged { get; set; } + /// Sets the User GID for the container. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Sets the User GID for the container.", + SerializedName = @"runAsGroup", + PossibleTypes = new [] { typeof(int) })] + int? SecurityContextRunAsGroup { get; set; } + /// Sets the User UID for the container. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Sets the User UID for the container.", + SerializedName = @"runAsUser", + PossibleTypes = new [] { typeof(int) })] + int? SecurityContextRunAsUser { get; set; } + /// + /// a base64 encoded string containing the contents of the JSON in the seccomp profile + /// + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"a base64 encoded string containing the contents of the JSON in the seccomp profile", + SerializedName = @"seccompProfile", + PossibleTypes = new [] { typeof(string) })] + string SecurityContextSeccompProfile { get; set; } /// The volume mounts available to the container instance. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = false, ReadOnly = false, Description = @"The volume mounts available to the container instance.", SerializedName = @"volumeMounts", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeMount) })] - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeMount[] VolumeMount { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMount) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMount[] VolumeMount { get; set; } } /// A container instance. internal partial interface IContainerInternal { + /// The capabilities to add to the container. + string[] CapabilityAdd { get; set; } + /// The capabilities to drop from the container. + string[] CapabilityDrop { get; set; } /// The commands to execute within the container instance in exec form. string[] Command { get; set; } + /// The config map. + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfigMap ConfigMap { get; set; } + /// The key value pairs dictionary in the config map. + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfigMapKeyValuePairs ConfigMapKeyValuePair { get; set; } /// The state of the container instance. string CurrentState { get; set; } /// The human-readable status of the container instance state. @@ -695,23 +812,23 @@ internal partial interface IContainerInternal /// The date-time when the container instance state started. global::System.DateTime? CurrentStateStartTime { get; set; } /// The environment variables to set in the container instance. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEnvironmentVariable[] EnvironmentVariable { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariable[] EnvironmentVariable { get; set; } /// The name of the image used to create the container instance. string Image { get; set; } /// The instance view of the container instance. Only valid in response. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceView InstanceView { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceView InstanceView { get; set; } /// Current container instance state. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerState InstanceViewCurrentState { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerState InstanceViewCurrentState { get; set; } /// The events of the container instance. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent[] InstanceViewEvent { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent[] InstanceViewEvent { get; set; } /// Previous container instance state. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerState InstanceViewPreviousState { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerState InstanceViewPreviousState { get; set; } /// The number of times that the container instance has been restarted. int? InstanceViewRestartCount { get; set; } /// The CPU limit of this container instance. double? LimitCpu { get; set; } /// The GPU limit of this container instance. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGpuResource LimitGpu { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGpuResource LimitGpu { get; set; } /// The memory limit in GB of this container instance. double? LimitMemoryInGb { get; set; } /// The count of the GPU resource. @@ -719,17 +836,17 @@ internal partial interface IContainerInternal /// The SKU of the GPU resource. Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku? LimitsGpuSku { get; set; } /// The liveness probe. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbe LivenessProbe { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbe LivenessProbe { get; set; } /// The execution command to probe - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExec LivenessProbeExec { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExec LivenessProbeExec { get; set; } /// The commands to execute within the container. string[] LivenessProbeExecCommand { get; set; } /// The failure threshold. int? LivenessProbeFailureThreshold { get; set; } /// The Http Get settings to probe - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerHttpGet LivenessProbeHttpGet { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerHttpGet LivenessProbeHttpGet { get; set; } /// The HTTP headers. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IHttpHeader[] LivenessProbeHttpGetHttpHeader { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader[] LivenessProbeHttpGetHttpHeader { get; set; } /// The path to probe. string LivenessProbeHttpGetPath { get; set; } /// The port number to probe. @@ -747,7 +864,7 @@ internal partial interface IContainerInternal /// The user-provided name of the container instance. string Name { get; set; } /// The exposed ports on the container instance. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPort[] Port { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPort[] Port { get; set; } /// The state of the container instance. string PreviousState { get; set; } /// The human-readable status of the container instance state. @@ -761,19 +878,19 @@ internal partial interface IContainerInternal /// The date-time when the container instance state started. global::System.DateTime? PreviousStateStartTime { get; set; } /// The properties of the container instance. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProperties Property { get; set; } /// The readiness probe. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbe ReadinessProbe { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbe ReadinessProbe { get; set; } /// The execution command to probe - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExec ReadinessProbeExec { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExec ReadinessProbeExec { get; set; } /// The commands to execute within the container. string[] ReadinessProbeExecCommand { get; set; } /// The failure threshold. int? ReadinessProbeFailureThreshold { get; set; } /// The Http Get settings to probe - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerHttpGet ReadinessProbeHttpGet { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerHttpGet ReadinessProbeHttpGet { get; set; } /// The HTTP headers. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IHttpHeader[] ReadinessProbeHttpGetHttpHeader { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader[] ReadinessProbeHttpGetHttpHeader { get; set; } /// The path to probe. string ReadinessProbeHttpGetPath { get; set; } /// The port number to probe. @@ -789,23 +906,39 @@ internal partial interface IContainerInternal /// The timeout seconds. int? ReadinessProbeTimeoutSecond { get; set; } /// The CPU request of this container instance. - double RequestCpu { get; set; } + double? RequestCpu { get; set; } /// The GPU request of this container instance. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGpuResource RequestGpu { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGpuResource RequestGpu { get; set; } /// The memory request in GB of this container instance. - double RequestMemoryInGb { get; set; } + double? RequestMemoryInGb { get; set; } /// The count of the GPU resource. int? RequestsGpuCount { get; set; } /// The SKU of the GPU resource. Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku? RequestsGpuSku { get; set; } /// The resource requirements of the container instance. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirements Resource { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirements Resource { get; set; } /// The resource limits of this container instance. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceLimits ResourceLimit { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceLimits ResourceLimit { get; set; } /// The resource requests of this container instance. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequests ResourceRequest { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequests ResourceRequest { get; set; } + /// The container security properties. + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinition SecurityContext { get; set; } + /// A boolean value indicating whether the init process can elevate its privileges + bool? SecurityContextAllowPrivilegeEscalation { get; set; } + /// The capabilities to add or drop from a container. + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextCapabilitiesDefinition SecurityContextCapability { get; set; } + /// The flag to determine if the container permissions is elevated to Privileged. + bool? SecurityContextPrivileged { get; set; } + /// Sets the User GID for the container. + int? SecurityContextRunAsGroup { get; set; } + /// Sets the User UID for the container. + int? SecurityContextRunAsUser { get; set; } + /// + /// a base64 encoded string containing the contents of the JSON in the seccomp profile + /// + string SecurityContextSeccompProfile { get; set; } /// The volume mounts available to the container instance. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeMount[] VolumeMount { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMount[] VolumeMount { get; set; } } } \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Container.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Container.json.cs similarity index 96% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Container.json.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Container.json.cs index 3970ee5c8134..19e535285889 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Container.json.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Container.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -65,19 +65,19 @@ internal Container(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime. { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerProperties.FromJson(__jsonProperties) : Property;} {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainer. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainer. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainer. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainer. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainer FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainer FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new Container(json) : null; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerAttachResponse.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerAttachResponse.PowerShell.cs similarity index 89% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerAttachResponse.PowerShell.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerAttachResponse.PowerShell.cs index a444504cfa52..5ebce16d287c 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerAttachResponse.PowerShell.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerAttachResponse.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -63,7 +63,7 @@ public partial class ContainerAttachResponse partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -78,17 +78,17 @@ internal ContainerAttachResponse(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("WebSocketUri")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerAttachResponseInternal)this).WebSocketUri = (string) content.GetValueForProperty("WebSocketUri",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerAttachResponseInternal)this).WebSocketUri, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerAttachResponseInternal)this).WebSocketUri = (string) content.GetValueForProperty("WebSocketUri",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerAttachResponseInternal)this).WebSocketUri, global::System.Convert.ToString); } if (content.Contains("Password")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerAttachResponseInternal)this).Password = (string) content.GetValueForProperty("Password",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerAttachResponseInternal)this).Password, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerAttachResponseInternal)this).Password = (string) content.GetValueForProperty("Password",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerAttachResponseInternal)this).Password, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -103,39 +103,39 @@ internal ContainerAttachResponse(global::System.Management.Automation.PSObject c // actually deserialize if (content.Contains("WebSocketUri")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerAttachResponseInternal)this).WebSocketUri = (string) content.GetValueForProperty("WebSocketUri",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerAttachResponseInternal)this).WebSocketUri, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerAttachResponseInternal)this).WebSocketUri = (string) content.GetValueForProperty("WebSocketUri",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerAttachResponseInternal)this).WebSocketUri, global::System.Convert.ToString); } if (content.Contains("Password")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerAttachResponseInternal)this).Password = (string) content.GetValueForProperty("Password",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerAttachResponseInternal)this).Password, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerAttachResponseInternal)this).Password = (string) content.GetValueForProperty("Password",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerAttachResponseInternal)this).Password, global::System.Convert.ToString); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerAttachResponse DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerAttachResponse DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ContainerAttachResponse(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerAttachResponse DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerAttachResponse DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ContainerAttachResponse(content); } @@ -145,7 +145,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api202 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerAttachResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerAttachResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerAttachResponse.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerAttachResponse.TypeConverter.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerAttachResponse.TypeConverter.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerAttachResponse.TypeConverter.cs index 3b15dc48f34a..2b593364d14e 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerAttachResponse.TypeConverter.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerAttachResponse.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerAttachResponse ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerAttachResponse ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerAttachResponse).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerAttachResponse).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerAttachResponse.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerAttachResponse.cs similarity index 96% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerAttachResponse.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerAttachResponse.cs index ddd423c1b22e..3878c39859cb 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerAttachResponse.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerAttachResponse.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; /// The information for the output stream from container attach. public partial class ContainerAttachResponse : - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerAttachResponse, - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerAttachResponseInternal + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerAttachResponse, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerAttachResponseInternal { /// Backing field for property. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerAttachResponse.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerAttachResponse.json.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerAttachResponse.json.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerAttachResponse.json.cs index 5a092b32183f..999bc299e7e3 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerAttachResponse.json.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerAttachResponse.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -71,13 +71,13 @@ internal ContainerAttachResponse(Microsoft.Azure.PowerShell.Cmdlets.ContainerIns } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerAttachResponse. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerAttachResponse. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerAttachResponse. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerAttachResponse. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerAttachResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerAttachResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new ContainerAttachResponse(json) : null; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerExec.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerExec.PowerShell.cs similarity index 91% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerExec.PowerShell.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerExec.PowerShell.cs index a6f1b41d475a..4efb450b24cf 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerExec.PowerShell.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerExec.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -63,7 +63,7 @@ public partial class ContainerExec partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -78,13 +78,13 @@ internal ContainerExec(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Command")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecInternal)this).Command = (string[]) content.GetValueForProperty("Command",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecInternal)this).Command, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecInternal)this).Command = (string[]) content.GetValueForProperty("Command",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecInternal)this).Command, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -99,35 +99,35 @@ internal ContainerExec(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Command")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecInternal)this).Command = (string[]) content.GetValueForProperty("Command",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecInternal)this).Command, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecInternal)this).Command = (string[]) content.GetValueForProperty("Command",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecInternal)this).Command, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExec DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExec DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ContainerExec(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExec DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExec DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ContainerExec(content); } @@ -137,7 +137,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api202 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExec FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExec FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerExec.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerExec.TypeConverter.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerExec.TypeConverter.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerExec.TypeConverter.cs index d84745e86490..1c4860a814f4 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerExec.TypeConverter.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerExec.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExec ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExec ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExec).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExec).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerExec.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerExec.cs similarity index 95% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerExec.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerExec.cs index b2f315c7de25..7df05c3852b6 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerExec.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerExec.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; /// The container execution command, for liveness or readiness probe public partial class ContainerExec : - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExec, - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecInternal + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExec, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecInternal { /// Backing field for property. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerExec.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerExec.json.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerExec.json.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerExec.json.cs index 8e094c16eaa6..84979cb45111 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerExec.json.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerExec.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -70,13 +70,13 @@ internal ContainerExec(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runt } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExec. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExec. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExec. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExec. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExec FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExec FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new ContainerExec(json) : null; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerExecRequest.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerExecRequest.PowerShell.cs similarity index 85% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerExecRequest.PowerShell.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerExecRequest.PowerShell.cs index 47bc058a469c..3da6d6c747a9 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerExecRequest.PowerShell.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerExecRequest.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -63,7 +63,7 @@ public partial class ContainerExecRequest partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -78,25 +78,25 @@ internal ContainerExecRequest(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("TerminalSize")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecRequestInternal)this).TerminalSize = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecRequestTerminalSize) content.GetValueForProperty("TerminalSize",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecRequestInternal)this).TerminalSize, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerExecRequestTerminalSizeTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecRequestInternal)this).TerminalSize = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecRequestTerminalSize) content.GetValueForProperty("TerminalSize",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecRequestInternal)this).TerminalSize, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerExecRequestTerminalSizeTypeConverter.ConvertFrom); } if (content.Contains("Command")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecRequestInternal)this).Command = (string) content.GetValueForProperty("Command",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecRequestInternal)this).Command, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecRequestInternal)this).Command = (string) content.GetValueForProperty("Command",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecRequestInternal)this).Command, global::System.Convert.ToString); } if (content.Contains("TerminalSizeRow")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecRequestInternal)this).TerminalSizeRow = (int?) content.GetValueForProperty("TerminalSizeRow",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecRequestInternal)this).TerminalSizeRow, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecRequestInternal)this).TerminalSizeRow = (int?) content.GetValueForProperty("TerminalSizeRow",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecRequestInternal)this).TerminalSizeRow, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("TerminalSizeCol")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecRequestInternal)this).TerminalSizeCol = (int?) content.GetValueForProperty("TerminalSizeCol",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecRequestInternal)this).TerminalSizeCol, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecRequestInternal)this).TerminalSizeCol = (int?) content.GetValueForProperty("TerminalSizeCol",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecRequestInternal)this).TerminalSizeCol, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -111,47 +111,47 @@ internal ContainerExecRequest(global::System.Management.Automation.PSObject cont // actually deserialize if (content.Contains("TerminalSize")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecRequestInternal)this).TerminalSize = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecRequestTerminalSize) content.GetValueForProperty("TerminalSize",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecRequestInternal)this).TerminalSize, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerExecRequestTerminalSizeTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecRequestInternal)this).TerminalSize = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecRequestTerminalSize) content.GetValueForProperty("TerminalSize",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecRequestInternal)this).TerminalSize, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerExecRequestTerminalSizeTypeConverter.ConvertFrom); } if (content.Contains("Command")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecRequestInternal)this).Command = (string) content.GetValueForProperty("Command",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecRequestInternal)this).Command, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecRequestInternal)this).Command = (string) content.GetValueForProperty("Command",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecRequestInternal)this).Command, global::System.Convert.ToString); } if (content.Contains("TerminalSizeRow")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecRequestInternal)this).TerminalSizeRow = (int?) content.GetValueForProperty("TerminalSizeRow",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecRequestInternal)this).TerminalSizeRow, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecRequestInternal)this).TerminalSizeRow = (int?) content.GetValueForProperty("TerminalSizeRow",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecRequestInternal)this).TerminalSizeRow, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("TerminalSizeCol")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecRequestInternal)this).TerminalSizeCol = (int?) content.GetValueForProperty("TerminalSizeCol",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecRequestInternal)this).TerminalSizeCol, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecRequestInternal)this).TerminalSizeCol = (int?) content.GetValueForProperty("TerminalSizeCol",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecRequestInternal)this).TerminalSizeCol, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ContainerExecRequest(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ContainerExecRequest(content); } @@ -161,7 +161,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api202 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerExecRequest.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerExecRequest.TypeConverter.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerExecRequest.TypeConverter.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerExecRequest.TypeConverter.cs index 44092aa15558..4031d478b6dc 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerExecRequest.TypeConverter.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerExecRequest.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecRequest ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecRequest ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecRequest).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecRequest).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerExecRequest.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerExecRequest.cs similarity index 85% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerExecRequest.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerExecRequest.cs index 8dcaa4976c41..2a06fab0932c 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerExecRequest.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerExecRequest.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; /// The container exec request. public partial class ContainerExecRequest : - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecRequest, - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecRequestInternal + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecRequest, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecRequestInternal { /// Backing field for property. @@ -21,22 +21,22 @@ public partial class ContainerExecRequest : public string Command { get => this._command; set => this._command = value; } /// Internal Acessors for TerminalSize - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecRequestTerminalSize Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecRequestInternal.TerminalSize { get => (this._terminalSize = this._terminalSize ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerExecRequestTerminalSize()); set { {_terminalSize = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecRequestTerminalSize Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecRequestInternal.TerminalSize { get => (this._terminalSize = this._terminalSize ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerExecRequestTerminalSize()); set { {_terminalSize = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecRequestTerminalSize _terminalSize; + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecRequestTerminalSize _terminalSize; /// The size of the terminal. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecRequestTerminalSize TerminalSize { get => (this._terminalSize = this._terminalSize ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerExecRequestTerminalSize()); set => this._terminalSize = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecRequestTerminalSize TerminalSize { get => (this._terminalSize = this._terminalSize ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerExecRequestTerminalSize()); set => this._terminalSize = value; } /// The column size of the terminal [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public int? TerminalSizeCol { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecRequestTerminalSizeInternal)TerminalSize).Col; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecRequestTerminalSizeInternal)TerminalSize).Col = value ?? default(int); } + public int? TerminalSizeCol { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecRequestTerminalSizeInternal)TerminalSize).Col; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecRequestTerminalSizeInternal)TerminalSize).Col = value ?? default(int); } /// The row size of the terminal [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public int? TerminalSizeRow { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecRequestTerminalSizeInternal)TerminalSize).Row; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecRequestTerminalSizeInternal)TerminalSize).Row = value ?? default(int); } + public int? TerminalSizeRow { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecRequestTerminalSizeInternal)TerminalSize).Row; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecRequestTerminalSizeInternal)TerminalSize).Row = value ?? default(int); } /// Creates an new instance. public ContainerExecRequest() @@ -81,7 +81,7 @@ internal partial interface IContainerExecRequestInternal /// The command to be executed. string Command { get; set; } /// The size of the terminal. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecRequestTerminalSize TerminalSize { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecRequestTerminalSize TerminalSize { get; set; } /// The column size of the terminal int? TerminalSizeCol { get; set; } /// The row size of the terminal diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerExecRequest.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerExecRequest.json.cs similarity index 96% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerExecRequest.json.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerExecRequest.json.cs index f6f2111c149c..10c29ae16c06 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerExecRequest.json.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerExecRequest.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -65,19 +65,19 @@ internal ContainerExecRequest(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstan { return; } - {_terminalSize = If( json?.PropertyT("terminalSize"), out var __jsonTerminalSize) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerExecRequestTerminalSize.FromJson(__jsonTerminalSize) : TerminalSize;} + {_terminalSize = If( json?.PropertyT("terminalSize"), out var __jsonTerminalSize) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerExecRequestTerminalSize.FromJson(__jsonTerminalSize) : TerminalSize;} {_command = If( json?.PropertyT("command"), out var __jsonCommand) ? (string)__jsonCommand : (string)Command;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecRequest. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecRequest. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecRequest. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecRequest. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new ContainerExecRequest(json) : null; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerExecRequestTerminalSize.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerExecRequestTerminalSize.PowerShell.cs similarity index 89% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerExecRequestTerminalSize.PowerShell.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerExecRequestTerminalSize.PowerShell.cs index d300cecf1042..25a2a3aae852 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerExecRequestTerminalSize.PowerShell.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerExecRequestTerminalSize.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -63,7 +63,7 @@ public partial class ContainerExecRequestTerminalSize partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -78,17 +78,17 @@ internal ContainerExecRequestTerminalSize(global::System.Collections.IDictionary // actually deserialize if (content.Contains("Row")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecRequestTerminalSizeInternal)this).Row = (int?) content.GetValueForProperty("Row",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecRequestTerminalSizeInternal)this).Row, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecRequestTerminalSizeInternal)this).Row = (int?) content.GetValueForProperty("Row",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecRequestTerminalSizeInternal)this).Row, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("Col")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecRequestTerminalSizeInternal)this).Col = (int?) content.GetValueForProperty("Col",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecRequestTerminalSizeInternal)this).Col, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecRequestTerminalSizeInternal)this).Col = (int?) content.GetValueForProperty("Col",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecRequestTerminalSizeInternal)this).Col, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -103,39 +103,39 @@ internal ContainerExecRequestTerminalSize(global::System.Management.Automation.P // actually deserialize if (content.Contains("Row")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecRequestTerminalSizeInternal)this).Row = (int?) content.GetValueForProperty("Row",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecRequestTerminalSizeInternal)this).Row, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecRequestTerminalSizeInternal)this).Row = (int?) content.GetValueForProperty("Row",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecRequestTerminalSizeInternal)this).Row, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("Col")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecRequestTerminalSizeInternal)this).Col = (int?) content.GetValueForProperty("Col",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecRequestTerminalSizeInternal)this).Col, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecRequestTerminalSizeInternal)this).Col = (int?) content.GetValueForProperty("Col",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecRequestTerminalSizeInternal)this).Col, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecRequestTerminalSize DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecRequestTerminalSize DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ContainerExecRequestTerminalSize(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecRequestTerminalSize DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecRequestTerminalSize DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ContainerExecRequestTerminalSize(content); } @@ -145,7 +145,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api202 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecRequestTerminalSize FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecRequestTerminalSize FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerExecRequestTerminalSize.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerExecRequestTerminalSize.TypeConverter.cs similarity index 98% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerExecRequestTerminalSize.TypeConverter.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerExecRequestTerminalSize.TypeConverter.cs index 8494a446f3d4..725a8d4bff74 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerExecRequestTerminalSize.TypeConverter.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerExecRequestTerminalSize.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -107,14 +107,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecRequestTerminalSize ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecRequestTerminalSize ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecRequestTerminalSize).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecRequestTerminalSize).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerExecRequestTerminalSize.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerExecRequestTerminalSize.cs similarity index 95% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerExecRequestTerminalSize.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerExecRequestTerminalSize.cs index 7794b28c7d1f..33e4a2686b9e 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerExecRequestTerminalSize.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerExecRequestTerminalSize.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; /// The size of the terminal. public partial class ContainerExecRequestTerminalSize : - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecRequestTerminalSize, - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecRequestTerminalSizeInternal + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecRequestTerminalSize, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecRequestTerminalSizeInternal { /// Backing field for property. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerExecRequestTerminalSize.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerExecRequestTerminalSize.json.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerExecRequestTerminalSize.json.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerExecRequestTerminalSize.json.cs index bee944751e50..5e43e547d75e 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerExecRequestTerminalSize.json.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerExecRequestTerminalSize.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -71,13 +71,13 @@ internal ContainerExecRequestTerminalSize(Microsoft.Azure.PowerShell.Cmdlets.Con } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecRequestTerminalSize. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecRequestTerminalSize. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecRequestTerminalSize. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecRequestTerminalSize. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecRequestTerminalSize FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecRequestTerminalSize FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new ContainerExecRequestTerminalSize(json) : null; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerExecResponse.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerExecResponse.PowerShell.cs similarity index 89% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerExecResponse.PowerShell.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerExecResponse.PowerShell.cs index abdbe6034750..2397c9a23f92 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerExecResponse.PowerShell.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerExecResponse.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -63,7 +63,7 @@ public partial class ContainerExecResponse partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -78,17 +78,17 @@ internal ContainerExecResponse(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("WebSocketUri")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecResponseInternal)this).WebSocketUri = (string) content.GetValueForProperty("WebSocketUri",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecResponseInternal)this).WebSocketUri, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecResponseInternal)this).WebSocketUri = (string) content.GetValueForProperty("WebSocketUri",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecResponseInternal)this).WebSocketUri, global::System.Convert.ToString); } if (content.Contains("Password")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecResponseInternal)this).Password = (string) content.GetValueForProperty("Password",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecResponseInternal)this).Password, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecResponseInternal)this).Password = (string) content.GetValueForProperty("Password",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecResponseInternal)this).Password, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -103,39 +103,39 @@ internal ContainerExecResponse(global::System.Management.Automation.PSObject con // actually deserialize if (content.Contains("WebSocketUri")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecResponseInternal)this).WebSocketUri = (string) content.GetValueForProperty("WebSocketUri",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecResponseInternal)this).WebSocketUri, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecResponseInternal)this).WebSocketUri = (string) content.GetValueForProperty("WebSocketUri",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecResponseInternal)this).WebSocketUri, global::System.Convert.ToString); } if (content.Contains("Password")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecResponseInternal)this).Password = (string) content.GetValueForProperty("Password",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecResponseInternal)this).Password, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecResponseInternal)this).Password = (string) content.GetValueForProperty("Password",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecResponseInternal)this).Password, global::System.Convert.ToString); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecResponse DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecResponse DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ContainerExecResponse(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecResponse DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecResponse DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ContainerExecResponse(content); } @@ -145,7 +145,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api202 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerExecResponse.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerExecResponse.TypeConverter.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerExecResponse.TypeConverter.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerExecResponse.TypeConverter.cs index 9742cceab169..1903ca17efe7 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerExecResponse.TypeConverter.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerExecResponse.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecResponse ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecResponse ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecResponse).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecResponse).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerExecResponse.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerExecResponse.cs similarity index 96% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerExecResponse.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerExecResponse.cs index 6265c96d6dc4..1d6a1a4f514c 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerExecResponse.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerExecResponse.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; /// The information for the container exec command. public partial class ContainerExecResponse : - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecResponse, - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecResponseInternal + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecResponse, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecResponseInternal { /// Backing field for property. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerExecResponse.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerExecResponse.json.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerExecResponse.json.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerExecResponse.json.cs index cd2090493ff9..e8d61c8284f5 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerExecResponse.json.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerExecResponse.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -71,13 +71,13 @@ internal ContainerExecResponse(Microsoft.Azure.PowerShell.Cmdlets.ContainerInsta } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecResponse. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecResponse. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecResponse. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecResponse. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new ContainerExecResponse(json) : null; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroup.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroup.PowerShell.cs similarity index 62% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroup.PowerShell.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroup.PowerShell.cs index 7f4de69fa5c9..3f99b33e5a60 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroup.PowerShell.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroup.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -63,7 +63,7 @@ public partial class ContainerGroup partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -78,213 +78,241 @@ internal ContainerGroup(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("Location")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Location, global::System.Convert.ToString); } if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ResourceTagsTypeConverter.ConvertFrom); } if (content.Contains("Zone")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal)this).Zone = (string[]) content.GetValueForProperty("Zone",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal)this).Zone, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Zone = (string[]) content.GetValueForProperty("Zone",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Zone, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("IPAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IPAddress = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IIPAddress) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IPAddress, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IPAddressTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IPAddress = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddress) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IPAddress, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPAddressTypeConverter.ConvertFrom); } if (content.Contains("EncryptionProperty")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).EncryptionProperty = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEncryptionProperties) content.GetValueForProperty("EncryptionProperty",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).EncryptionProperty, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.EncryptionPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).EncryptionProperty = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEncryptionProperties) content.GetValueForProperty("EncryptionProperty",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).EncryptionProperty, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.EncryptionPropertiesTypeConverter.ConvertFrom); } if (content.Contains("IdentityPrincipalId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IdentityPrincipalId, global::System.Convert.ToString); } if (content.Contains("IdentityTenantId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IdentityTenantId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IdentityTenantId, global::System.Convert.ToString); } if (content.Contains("IdentityType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ResourceIdentityType?) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ResourceIdentityType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ResourceIdentityType?) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ResourceIdentityType.CreateFrom); } if (content.Contains("IdentityUserAssignedIdentity")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentityUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroupIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentityUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); } if (content.Contains("InstanceView")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).InstanceView = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInstanceView) content.GetValueForProperty("InstanceView",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).InstanceView, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroupPropertiesInstanceViewTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).InstanceView = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInstanceView) content.GetValueForProperty("InstanceView",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).InstanceView, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupPropertiesInstanceViewTypeConverter.ConvertFrom); } if (content.Contains("Diagnostic")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).Diagnostic = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupDiagnostics) content.GetValueForProperty("Diagnostic",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).Diagnostic, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroupDiagnosticsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Diagnostic = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnostics) content.GetValueForProperty("Diagnostic",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Diagnostic, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupDiagnosticsTypeConverter.ConvertFrom); } if (content.Contains("DnsConfig")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).DnsConfig = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDnsConfiguration) content.GetValueForProperty("DnsConfig",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).DnsConfig, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.DnsConfigurationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).DnsConfig = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDnsConfiguration) content.GetValueForProperty("DnsConfig",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).DnsConfig, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.DnsConfigurationTypeConverter.ConvertFrom); } if (content.Contains("ConfidentialComputeProperty")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).ConfidentialComputeProperty = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IConfidentialComputeProperties) content.GetValueForProperty("ConfidentialComputeProperty",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).ConfidentialComputeProperty, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ConfidentialComputePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).ConfidentialComputeProperty = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfidentialComputeProperties) content.GetValueForProperty("ConfidentialComputeProperty",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).ConfidentialComputeProperty, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ConfidentialComputePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Profile")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Profile = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileReferenceDefinition) content.GetValueForProperty("Profile",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Profile, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupProfileReferenceDefinitionTypeConverter.ConvertFrom); + } + if (content.Contains("StandbyPoolProfile")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).StandbyPoolProfile = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IStandbyPoolProfileDefinition) content.GetValueForProperty("StandbyPoolProfile",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).StandbyPoolProfile, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.StandbyPoolProfileDefinitionTypeConverter.ConvertFrom); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); } if (content.Contains("Container")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).Container = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainer[]) content.GetValueForProperty("Container",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).Container, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Container = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainer[]) content.GetValueForProperty("Container",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Container, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerTypeConverter.ConvertFrom)); } if (content.Contains("ImageRegistryCredentials")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).ImageRegistryCredentials = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IImageRegistryCredential[]) content.GetValueForProperty("ImageRegistryCredentials",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).ImageRegistryCredentials, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ImageRegistryCredentialTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).ImageRegistryCredentials = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredential[]) content.GetValueForProperty("ImageRegistryCredentials",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).ImageRegistryCredentials, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ImageRegistryCredentialTypeConverter.ConvertFrom)); } if (content.Contains("RestartPolicy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).RestartPolicy = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy?) content.GetValueForProperty("RestartPolicy",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).RestartPolicy, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).RestartPolicy = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy?) content.GetValueForProperty("RestartPolicy",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).RestartPolicy, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy.CreateFrom); } if (content.Contains("OSType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).OSType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).OSType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).OSType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes?) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).OSType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes.CreateFrom); } if (content.Contains("Volume")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).Volume = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolume[]) content.GetValueForProperty("Volume",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).Volume, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.VolumeTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Volume = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolume[]) content.GetValueForProperty("Volume",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Volume, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.VolumeTypeConverter.ConvertFrom)); } if (content.Contains("SubnetId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).SubnetId = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupSubnetId[]) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).SubnetId, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroupSubnetIdTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).SubnetId = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupSubnetId[]) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).SubnetId, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupSubnetIdTypeConverter.ConvertFrom)); } if (content.Contains("Sku")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku?) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku?) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku.CreateFrom); } if (content.Contains("InitContainer")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).InitContainer = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinition[]) content.GetValueForProperty("InitContainer",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).InitContainer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.InitContainerDefinitionTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).InitContainer = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinition[]) content.GetValueForProperty("InitContainer",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).InitContainer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.InitContainerDefinitionTypeConverter.ConvertFrom)); } if (content.Contains("Extension")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).Extension = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpec[]) content.GetValueForProperty("Extension",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).Extension, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.DeploymentExtensionSpecTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Extension = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpec[]) content.GetValueForProperty("Extension",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Extension, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.DeploymentExtensionSpecTypeConverter.ConvertFrom)); } if (content.Contains("Priority")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).Priority = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority?) content.GetValueForProperty("Priority",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).Priority, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Priority = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority?) content.GetValueForProperty("Priority",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Priority, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority.CreateFrom); + } + if (content.Contains("IsCreatedFromStandbyPool")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IsCreatedFromStandbyPool = (bool?) content.GetValueForProperty("IsCreatedFromStandbyPool",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IsCreatedFromStandbyPool, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("DiagnosticLogAnalytic")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).DiagnosticLogAnalytic = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalytics) content.GetValueForProperty("DiagnosticLogAnalytic",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).DiagnosticLogAnalytic, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.LogAnalyticsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).DiagnosticLogAnalytic = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalytics) content.GetValueForProperty("DiagnosticLogAnalytic",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).DiagnosticLogAnalytic, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.LogAnalyticsTypeConverter.ConvertFrom); } if (content.Contains("EncryptionPropertyKeyName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).EncryptionPropertyKeyName = (string) content.GetValueForProperty("EncryptionPropertyKeyName",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).EncryptionPropertyKeyName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).EncryptionPropertyKeyName = (string) content.GetValueForProperty("EncryptionPropertyKeyName",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).EncryptionPropertyKeyName, global::System.Convert.ToString); } if (content.Contains("EncryptionPropertyKeyVersion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).EncryptionPropertyKeyVersion = (string) content.GetValueForProperty("EncryptionPropertyKeyVersion",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).EncryptionPropertyKeyVersion, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).EncryptionPropertyKeyVersion = (string) content.GetValueForProperty("EncryptionPropertyKeyVersion",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).EncryptionPropertyKeyVersion, global::System.Convert.ToString); } if (content.Contains("EncryptionPropertyIdentity")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).EncryptionPropertyIdentity = (string) content.GetValueForProperty("EncryptionPropertyIdentity",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).EncryptionPropertyIdentity, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).EncryptionPropertyIdentity = (string) content.GetValueForProperty("EncryptionPropertyIdentity",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).EncryptionPropertyIdentity, global::System.Convert.ToString); } if (content.Contains("ConfidentialComputePropertyCcePolicy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).ConfidentialComputePropertyCcePolicy = (string) content.GetValueForProperty("ConfidentialComputePropertyCcePolicy",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).ConfidentialComputePropertyCcePolicy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).ConfidentialComputePropertyCcePolicy = (string) content.GetValueForProperty("ConfidentialComputePropertyCcePolicy",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).ConfidentialComputePropertyCcePolicy, global::System.Convert.ToString); } if (content.Contains("IPAddressPort")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IPAddressPort = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IPort[]) content.GetValueForProperty("IPAddressPort",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IPAddressPort, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.PortTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IPAddressPort = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPort[]) content.GetValueForProperty("IPAddressPort",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IPAddressPort, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.PortTypeConverter.ConvertFrom)); } if (content.Contains("IPAddressType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IPAddressType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType) content.GetValueForProperty("IPAddressType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IPAddressType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IPAddressType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType) content.GetValueForProperty("IPAddressType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IPAddressType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType.CreateFrom); } if (content.Contains("IPAddressIP")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IPAddressIP = (string) content.GetValueForProperty("IPAddressIP",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IPAddressIP, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IPAddressIP = (string) content.GetValueForProperty("IPAddressIP",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IPAddressIP, global::System.Convert.ToString); } if (content.Contains("IPAddressDnsNameLabel")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IPAddressDnsNameLabel = (string) content.GetValueForProperty("IPAddressDnsNameLabel",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IPAddressDnsNameLabel, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IPAddressDnsNameLabel = (string) content.GetValueForProperty("IPAddressDnsNameLabel",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IPAddressDnsNameLabel, global::System.Convert.ToString); } if (content.Contains("IPAddressAutoGeneratedDomainNameLabelScope")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IPAddressAutoGeneratedDomainNameLabelScope = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy?) content.GetValueForProperty("IPAddressAutoGeneratedDomainNameLabelScope",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IPAddressAutoGeneratedDomainNameLabelScope, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IPAddressAutoGeneratedDomainNameLabelScope = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy?) content.GetValueForProperty("IPAddressAutoGeneratedDomainNameLabelScope",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IPAddressAutoGeneratedDomainNameLabelScope, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy.CreateFrom); } if (content.Contains("IPAddressFqdn")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IPAddressFqdn = (string) content.GetValueForProperty("IPAddressFqdn",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IPAddressFqdn, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IPAddressFqdn = (string) content.GetValueForProperty("IPAddressFqdn",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IPAddressFqdn, global::System.Convert.ToString); } if (content.Contains("InstanceViewEvent")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).InstanceViewEvent = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent[]) content.GetValueForProperty("InstanceViewEvent",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).InstanceViewEvent, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.EventTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).InstanceViewEvent = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent[]) content.GetValueForProperty("InstanceViewEvent",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).InstanceViewEvent, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.EventTypeConverter.ConvertFrom)); } if (content.Contains("InstanceViewState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).InstanceViewState = (string) content.GetValueForProperty("InstanceViewState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).InstanceViewState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).InstanceViewState = (string) content.GetValueForProperty("InstanceViewState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).InstanceViewState, global::System.Convert.ToString); } if (content.Contains("LogAnalyticWorkspaceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).LogAnalyticWorkspaceId = (string) content.GetValueForProperty("LogAnalyticWorkspaceId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).LogAnalyticWorkspaceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).LogAnalyticWorkspaceId = (string) content.GetValueForProperty("LogAnalyticWorkspaceId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).LogAnalyticWorkspaceId, global::System.Convert.ToString); } if (content.Contains("LogAnalyticWorkspaceKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).LogAnalyticWorkspaceKey = (string) content.GetValueForProperty("LogAnalyticWorkspaceKey",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).LogAnalyticWorkspaceKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).LogAnalyticWorkspaceKey = (string) content.GetValueForProperty("LogAnalyticWorkspaceKey",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).LogAnalyticWorkspaceKey, global::System.Convert.ToString); } if (content.Contains("LogAnalyticLogType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).LogAnalyticLogType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType?) content.GetValueForProperty("LogAnalyticLogType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).LogAnalyticLogType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).LogAnalyticLogType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType?) content.GetValueForProperty("LogAnalyticLogType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).LogAnalyticLogType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType.CreateFrom); } if (content.Contains("LogAnalyticMetadata")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).LogAnalyticMetadata = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsMetadata) content.GetValueForProperty("LogAnalyticMetadata",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).LogAnalyticMetadata, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.LogAnalyticsMetadataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).LogAnalyticMetadata = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsMetadata) content.GetValueForProperty("LogAnalyticMetadata",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).LogAnalyticMetadata, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.LogAnalyticsMetadataTypeConverter.ConvertFrom); } if (content.Contains("DnsConfigNameServer")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).DnsConfigNameServer = (string[]) content.GetValueForProperty("DnsConfigNameServer",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).DnsConfigNameServer, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).DnsConfigNameServer = (string[]) content.GetValueForProperty("DnsConfigNameServer",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).DnsConfigNameServer, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("DnsConfigSearchDomain")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).DnsConfigSearchDomain = (string) content.GetValueForProperty("DnsConfigSearchDomain",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).DnsConfigSearchDomain, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).DnsConfigSearchDomain = (string) content.GetValueForProperty("DnsConfigSearchDomain",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).DnsConfigSearchDomain, global::System.Convert.ToString); } if (content.Contains("DnsConfigOption")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).DnsConfigOption = (string) content.GetValueForProperty("DnsConfigOption",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).DnsConfigOption, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).DnsConfigOption = (string) content.GetValueForProperty("DnsConfigOption",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).DnsConfigOption, global::System.Convert.ToString); } if (content.Contains("EncryptionPropertyVaultBaseUrl")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).EncryptionPropertyVaultBaseUrl = (string) content.GetValueForProperty("EncryptionPropertyVaultBaseUrl",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).EncryptionPropertyVaultBaseUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).EncryptionPropertyVaultBaseUrl = (string) content.GetValueForProperty("EncryptionPropertyVaultBaseUrl",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).EncryptionPropertyVaultBaseUrl, global::System.Convert.ToString); + } + if (content.Contains("ProfileId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).ProfileId = (string) content.GetValueForProperty("ProfileId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).ProfileId, global::System.Convert.ToString); + } + if (content.Contains("ProfileRevision")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).ProfileRevision = (int?) content.GetValueForProperty("ProfileRevision",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).ProfileRevision, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("StandbyPoolProfileId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).StandbyPoolProfileId = (string) content.GetValueForProperty("StandbyPoolProfileId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).StandbyPoolProfileId, global::System.Convert.ToString); + } + if (content.Contains("StandbyPoolProfileFailContainerGroupCreateOnReuseFailure")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).StandbyPoolProfileFailContainerGroupCreateOnReuseFailure = (bool?) content.GetValueForProperty("StandbyPoolProfileFailContainerGroupCreateOnReuseFailure",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).StandbyPoolProfileFailContainerGroupCreateOnReuseFailure, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("LogAnalyticWorkspaceResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).LogAnalyticWorkspaceResourceId = (string) content.GetValueForProperty("LogAnalyticWorkspaceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).LogAnalyticWorkspaceResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).LogAnalyticWorkspaceResourceId = (string) content.GetValueForProperty("LogAnalyticWorkspaceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).LogAnalyticWorkspaceResourceId, global::System.Convert.ToString); } if (content.Contains("Identity")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroupIdentityTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupIdentityTypeConverter.ConvertFrom); } if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGenerated) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroupPropertiesAutoGeneratedTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGenerated) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupPropertiesAutoGeneratedTypeConverter.ConvertFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -299,235 +327,263 @@ internal ContainerGroup(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("Location")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Location, global::System.Convert.ToString); } if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ResourceTagsTypeConverter.ConvertFrom); } if (content.Contains("Zone")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal)this).Zone = (string[]) content.GetValueForProperty("Zone",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal)this).Zone, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Zone = (string[]) content.GetValueForProperty("Zone",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Zone, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("IPAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IPAddress = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IIPAddress) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IPAddress, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IPAddressTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IPAddress = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddress) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IPAddress, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPAddressTypeConverter.ConvertFrom); } if (content.Contains("EncryptionProperty")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).EncryptionProperty = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEncryptionProperties) content.GetValueForProperty("EncryptionProperty",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).EncryptionProperty, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.EncryptionPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).EncryptionProperty = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEncryptionProperties) content.GetValueForProperty("EncryptionProperty",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).EncryptionProperty, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.EncryptionPropertiesTypeConverter.ConvertFrom); } if (content.Contains("IdentityPrincipalId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IdentityPrincipalId, global::System.Convert.ToString); } if (content.Contains("IdentityTenantId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IdentityTenantId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IdentityTenantId, global::System.Convert.ToString); } if (content.Contains("IdentityType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ResourceIdentityType?) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ResourceIdentityType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ResourceIdentityType?) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ResourceIdentityType.CreateFrom); } if (content.Contains("IdentityUserAssignedIdentity")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentityUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroupIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentityUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); } if (content.Contains("InstanceView")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).InstanceView = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInstanceView) content.GetValueForProperty("InstanceView",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).InstanceView, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroupPropertiesInstanceViewTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).InstanceView = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInstanceView) content.GetValueForProperty("InstanceView",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).InstanceView, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupPropertiesInstanceViewTypeConverter.ConvertFrom); } if (content.Contains("Diagnostic")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).Diagnostic = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupDiagnostics) content.GetValueForProperty("Diagnostic",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).Diagnostic, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroupDiagnosticsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Diagnostic = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnostics) content.GetValueForProperty("Diagnostic",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Diagnostic, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupDiagnosticsTypeConverter.ConvertFrom); } if (content.Contains("DnsConfig")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).DnsConfig = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDnsConfiguration) content.GetValueForProperty("DnsConfig",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).DnsConfig, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.DnsConfigurationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).DnsConfig = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDnsConfiguration) content.GetValueForProperty("DnsConfig",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).DnsConfig, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.DnsConfigurationTypeConverter.ConvertFrom); } if (content.Contains("ConfidentialComputeProperty")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).ConfidentialComputeProperty = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IConfidentialComputeProperties) content.GetValueForProperty("ConfidentialComputeProperty",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).ConfidentialComputeProperty, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ConfidentialComputePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).ConfidentialComputeProperty = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfidentialComputeProperties) content.GetValueForProperty("ConfidentialComputeProperty",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).ConfidentialComputeProperty, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ConfidentialComputePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Profile")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Profile = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileReferenceDefinition) content.GetValueForProperty("Profile",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Profile, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupProfileReferenceDefinitionTypeConverter.ConvertFrom); + } + if (content.Contains("StandbyPoolProfile")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).StandbyPoolProfile = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IStandbyPoolProfileDefinition) content.GetValueForProperty("StandbyPoolProfile",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).StandbyPoolProfile, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.StandbyPoolProfileDefinitionTypeConverter.ConvertFrom); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); } if (content.Contains("Container")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).Container = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainer[]) content.GetValueForProperty("Container",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).Container, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Container = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainer[]) content.GetValueForProperty("Container",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Container, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerTypeConverter.ConvertFrom)); } if (content.Contains("ImageRegistryCredentials")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).ImageRegistryCredentials = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IImageRegistryCredential[]) content.GetValueForProperty("ImageRegistryCredentials",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).ImageRegistryCredentials, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ImageRegistryCredentialTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).ImageRegistryCredentials = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredential[]) content.GetValueForProperty("ImageRegistryCredentials",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).ImageRegistryCredentials, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ImageRegistryCredentialTypeConverter.ConvertFrom)); } if (content.Contains("RestartPolicy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).RestartPolicy = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy?) content.GetValueForProperty("RestartPolicy",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).RestartPolicy, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).RestartPolicy = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy?) content.GetValueForProperty("RestartPolicy",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).RestartPolicy, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy.CreateFrom); } if (content.Contains("OSType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).OSType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).OSType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).OSType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes?) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).OSType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes.CreateFrom); } if (content.Contains("Volume")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).Volume = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolume[]) content.GetValueForProperty("Volume",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).Volume, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.VolumeTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Volume = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolume[]) content.GetValueForProperty("Volume",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Volume, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.VolumeTypeConverter.ConvertFrom)); } if (content.Contains("SubnetId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).SubnetId = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupSubnetId[]) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).SubnetId, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroupSubnetIdTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).SubnetId = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupSubnetId[]) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).SubnetId, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupSubnetIdTypeConverter.ConvertFrom)); } if (content.Contains("Sku")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku?) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku?) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku.CreateFrom); } if (content.Contains("InitContainer")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).InitContainer = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinition[]) content.GetValueForProperty("InitContainer",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).InitContainer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.InitContainerDefinitionTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).InitContainer = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinition[]) content.GetValueForProperty("InitContainer",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).InitContainer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.InitContainerDefinitionTypeConverter.ConvertFrom)); } if (content.Contains("Extension")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).Extension = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpec[]) content.GetValueForProperty("Extension",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).Extension, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.DeploymentExtensionSpecTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Extension = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpec[]) content.GetValueForProperty("Extension",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Extension, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.DeploymentExtensionSpecTypeConverter.ConvertFrom)); } if (content.Contains("Priority")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).Priority = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority?) content.GetValueForProperty("Priority",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).Priority, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Priority = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority?) content.GetValueForProperty("Priority",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Priority, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority.CreateFrom); + } + if (content.Contains("IsCreatedFromStandbyPool")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IsCreatedFromStandbyPool = (bool?) content.GetValueForProperty("IsCreatedFromStandbyPool",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IsCreatedFromStandbyPool, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("DiagnosticLogAnalytic")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).DiagnosticLogAnalytic = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalytics) content.GetValueForProperty("DiagnosticLogAnalytic",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).DiagnosticLogAnalytic, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.LogAnalyticsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).DiagnosticLogAnalytic = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalytics) content.GetValueForProperty("DiagnosticLogAnalytic",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).DiagnosticLogAnalytic, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.LogAnalyticsTypeConverter.ConvertFrom); } if (content.Contains("EncryptionPropertyKeyName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).EncryptionPropertyKeyName = (string) content.GetValueForProperty("EncryptionPropertyKeyName",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).EncryptionPropertyKeyName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).EncryptionPropertyKeyName = (string) content.GetValueForProperty("EncryptionPropertyKeyName",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).EncryptionPropertyKeyName, global::System.Convert.ToString); } if (content.Contains("EncryptionPropertyKeyVersion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).EncryptionPropertyKeyVersion = (string) content.GetValueForProperty("EncryptionPropertyKeyVersion",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).EncryptionPropertyKeyVersion, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).EncryptionPropertyKeyVersion = (string) content.GetValueForProperty("EncryptionPropertyKeyVersion",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).EncryptionPropertyKeyVersion, global::System.Convert.ToString); } if (content.Contains("EncryptionPropertyIdentity")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).EncryptionPropertyIdentity = (string) content.GetValueForProperty("EncryptionPropertyIdentity",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).EncryptionPropertyIdentity, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).EncryptionPropertyIdentity = (string) content.GetValueForProperty("EncryptionPropertyIdentity",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).EncryptionPropertyIdentity, global::System.Convert.ToString); } if (content.Contains("ConfidentialComputePropertyCcePolicy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).ConfidentialComputePropertyCcePolicy = (string) content.GetValueForProperty("ConfidentialComputePropertyCcePolicy",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).ConfidentialComputePropertyCcePolicy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).ConfidentialComputePropertyCcePolicy = (string) content.GetValueForProperty("ConfidentialComputePropertyCcePolicy",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).ConfidentialComputePropertyCcePolicy, global::System.Convert.ToString); } if (content.Contains("IPAddressPort")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IPAddressPort = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IPort[]) content.GetValueForProperty("IPAddressPort",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IPAddressPort, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.PortTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IPAddressPort = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPort[]) content.GetValueForProperty("IPAddressPort",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IPAddressPort, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.PortTypeConverter.ConvertFrom)); } if (content.Contains("IPAddressType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IPAddressType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType) content.GetValueForProperty("IPAddressType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IPAddressType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IPAddressType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType) content.GetValueForProperty("IPAddressType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IPAddressType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType.CreateFrom); } if (content.Contains("IPAddressIP")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IPAddressIP = (string) content.GetValueForProperty("IPAddressIP",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IPAddressIP, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IPAddressIP = (string) content.GetValueForProperty("IPAddressIP",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IPAddressIP, global::System.Convert.ToString); } if (content.Contains("IPAddressDnsNameLabel")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IPAddressDnsNameLabel = (string) content.GetValueForProperty("IPAddressDnsNameLabel",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IPAddressDnsNameLabel, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IPAddressDnsNameLabel = (string) content.GetValueForProperty("IPAddressDnsNameLabel",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IPAddressDnsNameLabel, global::System.Convert.ToString); } if (content.Contains("IPAddressAutoGeneratedDomainNameLabelScope")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IPAddressAutoGeneratedDomainNameLabelScope = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy?) content.GetValueForProperty("IPAddressAutoGeneratedDomainNameLabelScope",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IPAddressAutoGeneratedDomainNameLabelScope, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IPAddressAutoGeneratedDomainNameLabelScope = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy?) content.GetValueForProperty("IPAddressAutoGeneratedDomainNameLabelScope",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IPAddressAutoGeneratedDomainNameLabelScope, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy.CreateFrom); } if (content.Contains("IPAddressFqdn")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IPAddressFqdn = (string) content.GetValueForProperty("IPAddressFqdn",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IPAddressFqdn, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IPAddressFqdn = (string) content.GetValueForProperty("IPAddressFqdn",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IPAddressFqdn, global::System.Convert.ToString); } if (content.Contains("InstanceViewEvent")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).InstanceViewEvent = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent[]) content.GetValueForProperty("InstanceViewEvent",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).InstanceViewEvent, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.EventTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).InstanceViewEvent = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent[]) content.GetValueForProperty("InstanceViewEvent",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).InstanceViewEvent, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.EventTypeConverter.ConvertFrom)); } if (content.Contains("InstanceViewState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).InstanceViewState = (string) content.GetValueForProperty("InstanceViewState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).InstanceViewState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).InstanceViewState = (string) content.GetValueForProperty("InstanceViewState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).InstanceViewState, global::System.Convert.ToString); } if (content.Contains("LogAnalyticWorkspaceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).LogAnalyticWorkspaceId = (string) content.GetValueForProperty("LogAnalyticWorkspaceId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).LogAnalyticWorkspaceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).LogAnalyticWorkspaceId = (string) content.GetValueForProperty("LogAnalyticWorkspaceId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).LogAnalyticWorkspaceId, global::System.Convert.ToString); } if (content.Contains("LogAnalyticWorkspaceKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).LogAnalyticWorkspaceKey = (string) content.GetValueForProperty("LogAnalyticWorkspaceKey",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).LogAnalyticWorkspaceKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).LogAnalyticWorkspaceKey = (string) content.GetValueForProperty("LogAnalyticWorkspaceKey",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).LogAnalyticWorkspaceKey, global::System.Convert.ToString); } if (content.Contains("LogAnalyticLogType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).LogAnalyticLogType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType?) content.GetValueForProperty("LogAnalyticLogType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).LogAnalyticLogType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).LogAnalyticLogType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType?) content.GetValueForProperty("LogAnalyticLogType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).LogAnalyticLogType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType.CreateFrom); } if (content.Contains("LogAnalyticMetadata")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).LogAnalyticMetadata = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsMetadata) content.GetValueForProperty("LogAnalyticMetadata",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).LogAnalyticMetadata, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.LogAnalyticsMetadataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).LogAnalyticMetadata = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsMetadata) content.GetValueForProperty("LogAnalyticMetadata",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).LogAnalyticMetadata, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.LogAnalyticsMetadataTypeConverter.ConvertFrom); } if (content.Contains("DnsConfigNameServer")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).DnsConfigNameServer = (string[]) content.GetValueForProperty("DnsConfigNameServer",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).DnsConfigNameServer, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).DnsConfigNameServer = (string[]) content.GetValueForProperty("DnsConfigNameServer",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).DnsConfigNameServer, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("DnsConfigSearchDomain")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).DnsConfigSearchDomain = (string) content.GetValueForProperty("DnsConfigSearchDomain",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).DnsConfigSearchDomain, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).DnsConfigSearchDomain = (string) content.GetValueForProperty("DnsConfigSearchDomain",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).DnsConfigSearchDomain, global::System.Convert.ToString); } if (content.Contains("DnsConfigOption")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).DnsConfigOption = (string) content.GetValueForProperty("DnsConfigOption",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).DnsConfigOption, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).DnsConfigOption = (string) content.GetValueForProperty("DnsConfigOption",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).DnsConfigOption, global::System.Convert.ToString); } if (content.Contains("EncryptionPropertyVaultBaseUrl")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).EncryptionPropertyVaultBaseUrl = (string) content.GetValueForProperty("EncryptionPropertyVaultBaseUrl",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).EncryptionPropertyVaultBaseUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).EncryptionPropertyVaultBaseUrl = (string) content.GetValueForProperty("EncryptionPropertyVaultBaseUrl",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).EncryptionPropertyVaultBaseUrl, global::System.Convert.ToString); + } + if (content.Contains("ProfileId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).ProfileId = (string) content.GetValueForProperty("ProfileId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).ProfileId, global::System.Convert.ToString); + } + if (content.Contains("ProfileRevision")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).ProfileRevision = (int?) content.GetValueForProperty("ProfileRevision",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).ProfileRevision, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("StandbyPoolProfileId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).StandbyPoolProfileId = (string) content.GetValueForProperty("StandbyPoolProfileId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).StandbyPoolProfileId, global::System.Convert.ToString); + } + if (content.Contains("StandbyPoolProfileFailContainerGroupCreateOnReuseFailure")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).StandbyPoolProfileFailContainerGroupCreateOnReuseFailure = (bool?) content.GetValueForProperty("StandbyPoolProfileFailContainerGroupCreateOnReuseFailure",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).StandbyPoolProfileFailContainerGroupCreateOnReuseFailure, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("LogAnalyticWorkspaceResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).LogAnalyticWorkspaceResourceId = (string) content.GetValueForProperty("LogAnalyticWorkspaceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).LogAnalyticWorkspaceResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).LogAnalyticWorkspaceResourceId = (string) content.GetValueForProperty("LogAnalyticWorkspaceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).LogAnalyticWorkspaceResourceId, global::System.Convert.ToString); } if (content.Contains("Identity")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroupIdentityTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupIdentityTypeConverter.ConvertFrom); } if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGenerated) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroupPropertiesAutoGeneratedTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGenerated) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupPropertiesAutoGeneratedTypeConverter.ConvertFrom); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ContainerGroup(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ContainerGroup(content); } @@ -537,7 +593,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api202 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroup.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroup.TypeConverter.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroup.TypeConverter.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroup.TypeConverter.cs index 6c31884b1de1..785cf1b9136f 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroup.TypeConverter.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroup.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroup.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroup.cs similarity index 67% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroup.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroup.cs index 4181ac51a637..33c814555e92 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroup.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroup.cs @@ -3,91 +3,91 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; /// A container group. public partial class ContainerGroup : - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup, - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupInternal, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupInternal, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupProperties __containerGroupProperties = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroupProperties(); + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProperties __containerGroupProperties = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupProperties(); /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.Resource(); + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Resource(); /// The properties for confidential container group [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IConfidentialComputeProperties ConfidentialComputeProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).ConfidentialComputeProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).ConfidentialComputeProperty = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfidentialComputeProperties ConfidentialComputeProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).ConfidentialComputeProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).ConfidentialComputeProperty = value ?? null /* model class */; } /// The base64 encoded confidential compute enforcement policy [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] - public string ConfidentialComputePropertyCcePolicy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).ConfidentialComputePropertyCcePolicy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).ConfidentialComputePropertyCcePolicy = value ?? null; } + public string ConfidentialComputePropertyCcePolicy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).ConfidentialComputePropertyCcePolicy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).ConfidentialComputePropertyCcePolicy = value ?? null; } /// The containers within the container group. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainer[] Container { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).Container; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).Container = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainer[] Container { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).Container; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).Container = value ; } /// The diagnostic information for a container group. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupDiagnostics Diagnostic { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).Diagnostic; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).Diagnostic = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnostics Diagnostic { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).Diagnostic; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).Diagnostic = value ?? null /* model class */; } /// Container group log analytics information. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalytics DiagnosticLogAnalytic { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).DiagnosticLogAnalytic; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).DiagnosticLogAnalytic = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalytics DiagnosticLogAnalytic { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).DiagnosticLogAnalytic; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).DiagnosticLogAnalytic = value ?? null /* model class */; } /// The DNS config information for a container group. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDnsConfiguration DnsConfig { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).DnsConfig; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).DnsConfig = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDnsConfiguration DnsConfig { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).DnsConfig; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).DnsConfig = value ?? null /* model class */; } /// The DNS servers for the container group. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] - public string[] DnsConfigNameServer { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).DnsConfigNameServer; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).DnsConfigNameServer = value ?? null /* arrayOf */; } + public string[] DnsConfigNameServer { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).DnsConfigNameServer; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).DnsConfigNameServer = value ?? null /* arrayOf */; } /// The DNS options for the container group. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] - public string DnsConfigOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).DnsConfigOption; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).DnsConfigOption = value ?? null; } + public string DnsConfigOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).DnsConfigOption; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).DnsConfigOption = value ?? null; } /// The DNS search domains for hostname lookup in the container group. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] - public string DnsConfigSearchDomain { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).DnsConfigSearchDomain; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).DnsConfigSearchDomain = value ?? null; } + public string DnsConfigSearchDomain { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).DnsConfigSearchDomain; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).DnsConfigSearchDomain = value ?? null; } /// The encryption properties for a container group. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEncryptionProperties EncryptionProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).EncryptionProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).EncryptionProperty = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEncryptionProperties EncryptionProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).EncryptionProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).EncryptionProperty = value ?? null /* model class */; } /// The keyvault managed identity. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] - public string EncryptionPropertyIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).EncryptionPropertyIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).EncryptionPropertyIdentity = value ?? null; } + public string EncryptionPropertyIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).EncryptionPropertyIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).EncryptionPropertyIdentity = value ?? null; } /// The encryption key name. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] - public string EncryptionPropertyKeyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).EncryptionPropertyKeyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).EncryptionPropertyKeyName = value ?? null; } + public string EncryptionPropertyKeyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).EncryptionPropertyKeyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).EncryptionPropertyKeyName = value ?? null; } /// The encryption key version. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] - public string EncryptionPropertyKeyVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).EncryptionPropertyKeyVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).EncryptionPropertyKeyVersion = value ?? null; } + public string EncryptionPropertyKeyVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).EncryptionPropertyKeyVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).EncryptionPropertyKeyVersion = value ?? null; } /// The keyvault base url. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] - public string EncryptionPropertyVaultBaseUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).EncryptionPropertyVaultBaseUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).EncryptionPropertyVaultBaseUrl = value ?? null; } + public string EncryptionPropertyVaultBaseUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).EncryptionPropertyVaultBaseUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).EncryptionPropertyVaultBaseUrl = value ?? null; } /// extensions used by virtual kubelet [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpec[] Extension { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).Extension; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).Extension = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpec[] Extension { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).Extension; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).Extension = value ?? null /* arrayOf */; } /// The IP address type of the container group. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IIPAddress IPAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).IPAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).IPAddress = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddress IPAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).IPAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).IPAddress = value ?? null /* model class */; } /// /// The value representing the security enum. The 'Unsecure' value is the default value if not selected and means the object's @@ -98,47 +98,47 @@ public partial class ContainerGroup : /// cannot be reused within the same resource group, subscription, or tenant. /// [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy? IPAddressAutoGeneratedDomainNameLabelScope { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).IPAddressAutoGeneratedDomainNameLabelScope; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).IPAddressAutoGeneratedDomainNameLabelScope = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy)""); } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy? IPAddressAutoGeneratedDomainNameLabelScope { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).IPAddressAutoGeneratedDomainNameLabelScope; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).IPAddressAutoGeneratedDomainNameLabelScope = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy)""); } /// The Dns name label for the IP. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] - public string IPAddressDnsNameLabel { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).IPAddressDnsNameLabel; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).IPAddressDnsNameLabel = value ?? null; } + public string IPAddressDnsNameLabel { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).IPAddressDnsNameLabel; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).IPAddressDnsNameLabel = value ?? null; } /// The FQDN for the IP. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] - public string IPAddressFqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).IPAddressFqdn; } + public string IPAddressFqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).IPAddressFqdn; } /// The IP exposed to the public internet. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] - public string IPAddressIP { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).IPAddressIP; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).IPAddressIP = value ?? null; } + public string IPAddressIP { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).IPAddressIP; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).IPAddressIP = value ?? null; } /// The list of ports exposed on the container group. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IPort[] IPAddressPort { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).IPAddressPort; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).IPAddressPort = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPort[] IPAddressPort { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).IPAddressPort; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).IPAddressPort = value ?? null /* arrayOf */; } /// Specifies if the IP is exposed to the public internet or private VNET. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType? IPAddressType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).IPAddressType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).IPAddressType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType? IPAddressType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).IPAddressType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).IPAddressType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType)""); } /// The resource id. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal)__resource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)__resource).Id; } /// The identity of the container group, if configured. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentity Identity { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).Identity; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).Identity = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentity Identity { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).Identity; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).Identity = value ?? null /* model class */; } /// /// The principal id of the container group identity. This property will only be provided for a system assigned identity. /// [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] - public string IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).IdentityPrincipalId; } + public string IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).IdentityPrincipalId; } /// /// The tenant id associated with the container group. This property will only be provided for a system assigned identity. /// [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] - public string IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).IdentityTenantId; } + public string IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).IdentityTenantId; } /// /// The type of identity used for the container group. The type 'SystemAssigned, UserAssigned' includes both an implicitly @@ -146,107 +146,128 @@ public partial class ContainerGroup : /// group. /// [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ResourceIdentityType? IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).IdentityType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).IdentityType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ResourceIdentityType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ResourceIdentityType? IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).IdentityType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).IdentityType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ResourceIdentityType)""); } /// The list of user identities associated with the container group. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentityUserAssignedIdentities IdentityUserAssignedIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).IdentityUserAssignedIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).IdentityUserAssignedIdentity = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentityUserAssignedIdentities IdentityUserAssignedIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).IdentityUserAssignedIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).IdentityUserAssignedIdentity = value ?? null /* model class */; } /// The image registry credentials by which the container group is created from. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IImageRegistryCredential[] ImageRegistryCredentials { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).ImageRegistryCredentials; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).ImageRegistryCredentials = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredential[] ImageRegistryCredentials { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).ImageRegistryCredentials; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).ImageRegistryCredentials = value ?? null /* arrayOf */; } /// The init containers for a container group. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinition[] InitContainer { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).InitContainer; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).InitContainer = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinition[] InitContainer { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).InitContainer; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).InitContainer = value ?? null /* arrayOf */; } /// The instance view of the container group. Only valid in response. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInstanceView InstanceView { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).InstanceView; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInstanceView InstanceView { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).InstanceView; } /// The events of this container group. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent[] InstanceViewEvent { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).InstanceViewEvent; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent[] InstanceViewEvent { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).InstanceViewEvent; } /// The state of the container group. Only valid in response. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] - public string InstanceViewState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).InstanceViewState; } + public string InstanceViewState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).InstanceViewState; } + + /// The flag indicating whether the container group is created by standby pool. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] + public bool? IsCreatedFromStandbyPool { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).IsCreatedFromStandbyPool; } /// The resource location. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal)__resource).Location = value ?? null; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)__resource).Location = value ?? null; } /// The log type to be used. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType? LogAnalyticLogType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).LogAnalyticLogType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).LogAnalyticLogType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType? LogAnalyticLogType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).LogAnalyticLogType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).LogAnalyticLogType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType)""); } /// Metadata for log analytics. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsMetadata LogAnalyticMetadata { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).LogAnalyticMetadata; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).LogAnalyticMetadata = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsMetadata LogAnalyticMetadata { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).LogAnalyticMetadata; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).LogAnalyticMetadata = value ?? null /* model class */; } /// The workspace id for log analytics [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] - public string LogAnalyticWorkspaceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).LogAnalyticWorkspaceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).LogAnalyticWorkspaceId = value ?? null; } + public string LogAnalyticWorkspaceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).LogAnalyticWorkspaceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).LogAnalyticWorkspaceId = value ?? null; } /// The workspace key for log analytics [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] - public string LogAnalyticWorkspaceKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).LogAnalyticWorkspaceKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).LogAnalyticWorkspaceKey = value ?? null; } + public string LogAnalyticWorkspaceKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).LogAnalyticWorkspaceKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).LogAnalyticWorkspaceKey = value ?? null; } /// The workspace resource id for log analytics [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] - public string LogAnalyticWorkspaceResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).LogAnalyticWorkspaceResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).LogAnalyticWorkspaceResourceId = value ?? null; } + public string LogAnalyticWorkspaceResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).LogAnalyticWorkspaceResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).LogAnalyticWorkspaceResourceId = value ?? null; } /// Internal Acessors for IPAddressFqdn - string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal.IPAddressFqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).IPAddressFqdn; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).IPAddressFqdn = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal.IPAddressFqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).IPAddressFqdn; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).IPAddressFqdn = value; } /// Internal Acessors for IdentityPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).IdentityPrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).IdentityPrincipalId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).IdentityPrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).IdentityPrincipalId = value; } /// Internal Acessors for IdentityTenantId - string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).IdentityTenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).IdentityTenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).IdentityTenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).IdentityTenantId = value; } /// Internal Acessors for InstanceView - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInstanceView Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal.InstanceView { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).InstanceView; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).InstanceView = value; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInstanceView Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal.InstanceView { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).InstanceView; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).InstanceView = value; } /// Internal Acessors for InstanceViewEvent - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent[] Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal.InstanceViewEvent { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).InstanceViewEvent; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).InstanceViewEvent = value; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent[] Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal.InstanceViewEvent { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).InstanceViewEvent; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).InstanceViewEvent = value; } /// Internal Acessors for InstanceViewState - string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal.InstanceViewState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).InstanceViewState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).InstanceViewState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal.InstanceViewState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).InstanceViewState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).InstanceViewState = value; } + + /// Internal Acessors for IsCreatedFromStandbyPool + bool? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal.IsCreatedFromStandbyPool { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).IsCreatedFromStandbyPool; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).IsCreatedFromStandbyPool = value; } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).ProvisioningState = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)__resource).Id = value; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)__resource).Name = value; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)__resource).Type = value; } /// The resource name. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal)__resource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)__resource).Name; } /// The operating system type required by the containers in the container group. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes OSType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).OSType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).OSType = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes? OSType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).OSType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).OSType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes)""); } /// The priority of the container group. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority? Priority { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).Priority; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).Priority = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority)""); } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority? Priority { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).Priority; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).Priority = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority)""); } + + /// The reference container group profile properties. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileReferenceDefinition Profile { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).Profile; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).Profile = value ?? null /* model class */; } + + /// + /// The container group profile reference id.This will be an ARM resource id in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}'. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] + public string ProfileId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).ProfileId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).ProfileId = value ?? null; } + + /// The container group profile reference revision. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] + public int? ProfileRevision { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).ProfileRevision; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).ProfileRevision = value ?? default(int); } /// The container group properties [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGenerated Property { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).Property; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).Property = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGenerated Property { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).Property; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).Property = value ; } /// /// The provisioning state of the container group. This only appears in the response. /// [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] - public string ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).ProvisioningState; } + public string ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).ProvisioningState; } /// Gets the resource group name [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] @@ -259,31 +280,48 @@ public partial class ContainerGroup : /// - `Never` Never restart /// [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy? RestartPolicy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).RestartPolicy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).RestartPolicy = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy)""); } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy? RestartPolicy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).RestartPolicy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).RestartPolicy = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy)""); } /// The SKU for a container group. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku? Sku { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).Sku; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).Sku = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku)""); } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku? Sku { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).Sku; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).Sku = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku)""); } + + /// The reference standby pool profile properties. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IStandbyPoolProfileDefinition StandbyPoolProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).StandbyPoolProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).StandbyPoolProfile = value ?? null /* model class */; } + + /// + /// The flag to determine whether ACI should fail the create request if the container group can not be obtained from standby + /// pool. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] + public bool? StandbyPoolProfileFailContainerGroupCreateOnReuseFailure { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).StandbyPoolProfileFailContainerGroupCreateOnReuseFailure; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).StandbyPoolProfileFailContainerGroupCreateOnReuseFailure = value ?? default(bool); } + + /// + /// The standby pool profile reference id.This will be an ARM resource id in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyContainerGroupPools/{standbyPoolName}'. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] + public string StandbyPoolProfileId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).StandbyPoolProfileId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).StandbyPoolProfileId = value ?? null; } /// The subnet resource IDs for a container group. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupSubnetId[] SubnetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).SubnetId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).SubnetId = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupSubnetId[] SubnetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).SubnetId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).SubnetId = value ?? null /* arrayOf */; } /// The resource tags. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal)__resource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal)__resource).Tag = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)__resource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)__resource).Tag = value ?? null /* model class */; } /// The resource type. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal)__resource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)__resource).Type; } /// The list of volumes that can be mounted by containers in this container group. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolume[] Volume { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).Volume; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).Volume = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolume[] Volume { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).Volume; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)__containerGroupProperties).Volume = value ?? null /* arrayOf */; } /// The zones for the container group. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] - public string[] Zone { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal)__resource).Zone; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal)__resource).Zone = value ?? null /* arrayOf */; } + public string[] Zone { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)__resource).Zone; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)__resource).Zone = value ?? null /* arrayOf */; } /// Creates an new instance. public ContainerGroup() @@ -308,15 +346,15 @@ public ContainerGroup() /// A container group. public partial interface IContainerGroup : Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResource, - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupProperties + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResource, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProperties { } /// A container group. internal partial interface IContainerGroupInternal : - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal, - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal { } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroup.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroup.json.cs similarity index 95% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroup.json.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroup.json.cs index 1207d3af0460..9e1febeead37 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroup.json.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroup.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -65,19 +65,19 @@ internal ContainerGroup(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Run { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.Resource(json); - __containerGroupProperties = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroupProperties(json); + __resource = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Resource(json); + __containerGroupProperties = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupProperties(json); AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new ContainerGroup(json) : null; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupDiagnostics.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupDiagnostics.PowerShell.cs similarity index 83% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupDiagnostics.PowerShell.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupDiagnostics.PowerShell.cs index b5359ba784c6..2b4e30c03dba 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupDiagnostics.PowerShell.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupDiagnostics.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -63,7 +63,7 @@ public partial class ContainerGroupDiagnostics partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -78,33 +78,33 @@ internal ContainerGroupDiagnostics(global::System.Collections.IDictionary conten // actually deserialize if (content.Contains("LogAnalytic")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupDiagnosticsInternal)this).LogAnalytic = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalytics) content.GetValueForProperty("LogAnalytic",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupDiagnosticsInternal)this).LogAnalytic, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.LogAnalyticsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnosticsInternal)this).LogAnalytic = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalytics) content.GetValueForProperty("LogAnalytic",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnosticsInternal)this).LogAnalytic, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.LogAnalyticsTypeConverter.ConvertFrom); } if (content.Contains("LogAnalyticWorkspaceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupDiagnosticsInternal)this).LogAnalyticWorkspaceId = (string) content.GetValueForProperty("LogAnalyticWorkspaceId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupDiagnosticsInternal)this).LogAnalyticWorkspaceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnosticsInternal)this).LogAnalyticWorkspaceId = (string) content.GetValueForProperty("LogAnalyticWorkspaceId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnosticsInternal)this).LogAnalyticWorkspaceId, global::System.Convert.ToString); } if (content.Contains("LogAnalyticWorkspaceKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupDiagnosticsInternal)this).LogAnalyticWorkspaceKey = (string) content.GetValueForProperty("LogAnalyticWorkspaceKey",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupDiagnosticsInternal)this).LogAnalyticWorkspaceKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnosticsInternal)this).LogAnalyticWorkspaceKey = (string) content.GetValueForProperty("LogAnalyticWorkspaceKey",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnosticsInternal)this).LogAnalyticWorkspaceKey, global::System.Convert.ToString); } if (content.Contains("LogAnalyticLogType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupDiagnosticsInternal)this).LogAnalyticLogType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType?) content.GetValueForProperty("LogAnalyticLogType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupDiagnosticsInternal)this).LogAnalyticLogType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnosticsInternal)this).LogAnalyticLogType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType?) content.GetValueForProperty("LogAnalyticLogType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnosticsInternal)this).LogAnalyticLogType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType.CreateFrom); } if (content.Contains("LogAnalyticMetadata")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupDiagnosticsInternal)this).LogAnalyticMetadata = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsMetadata) content.GetValueForProperty("LogAnalyticMetadata",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupDiagnosticsInternal)this).LogAnalyticMetadata, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.LogAnalyticsMetadataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnosticsInternal)this).LogAnalyticMetadata = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsMetadata) content.GetValueForProperty("LogAnalyticMetadata",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnosticsInternal)this).LogAnalyticMetadata, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.LogAnalyticsMetadataTypeConverter.ConvertFrom); } if (content.Contains("LogAnalyticWorkspaceResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupDiagnosticsInternal)this).LogAnalyticWorkspaceResourceId = (string) content.GetValueForProperty("LogAnalyticWorkspaceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupDiagnosticsInternal)this).LogAnalyticWorkspaceResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnosticsInternal)this).LogAnalyticWorkspaceResourceId = (string) content.GetValueForProperty("LogAnalyticWorkspaceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnosticsInternal)this).LogAnalyticWorkspaceResourceId, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -119,55 +119,55 @@ internal ContainerGroupDiagnostics(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("LogAnalytic")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupDiagnosticsInternal)this).LogAnalytic = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalytics) content.GetValueForProperty("LogAnalytic",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupDiagnosticsInternal)this).LogAnalytic, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.LogAnalyticsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnosticsInternal)this).LogAnalytic = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalytics) content.GetValueForProperty("LogAnalytic",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnosticsInternal)this).LogAnalytic, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.LogAnalyticsTypeConverter.ConvertFrom); } if (content.Contains("LogAnalyticWorkspaceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupDiagnosticsInternal)this).LogAnalyticWorkspaceId = (string) content.GetValueForProperty("LogAnalyticWorkspaceId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupDiagnosticsInternal)this).LogAnalyticWorkspaceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnosticsInternal)this).LogAnalyticWorkspaceId = (string) content.GetValueForProperty("LogAnalyticWorkspaceId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnosticsInternal)this).LogAnalyticWorkspaceId, global::System.Convert.ToString); } if (content.Contains("LogAnalyticWorkspaceKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupDiagnosticsInternal)this).LogAnalyticWorkspaceKey = (string) content.GetValueForProperty("LogAnalyticWorkspaceKey",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupDiagnosticsInternal)this).LogAnalyticWorkspaceKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnosticsInternal)this).LogAnalyticWorkspaceKey = (string) content.GetValueForProperty("LogAnalyticWorkspaceKey",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnosticsInternal)this).LogAnalyticWorkspaceKey, global::System.Convert.ToString); } if (content.Contains("LogAnalyticLogType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupDiagnosticsInternal)this).LogAnalyticLogType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType?) content.GetValueForProperty("LogAnalyticLogType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupDiagnosticsInternal)this).LogAnalyticLogType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnosticsInternal)this).LogAnalyticLogType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType?) content.GetValueForProperty("LogAnalyticLogType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnosticsInternal)this).LogAnalyticLogType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType.CreateFrom); } if (content.Contains("LogAnalyticMetadata")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupDiagnosticsInternal)this).LogAnalyticMetadata = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsMetadata) content.GetValueForProperty("LogAnalyticMetadata",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupDiagnosticsInternal)this).LogAnalyticMetadata, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.LogAnalyticsMetadataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnosticsInternal)this).LogAnalyticMetadata = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsMetadata) content.GetValueForProperty("LogAnalyticMetadata",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnosticsInternal)this).LogAnalyticMetadata, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.LogAnalyticsMetadataTypeConverter.ConvertFrom); } if (content.Contains("LogAnalyticWorkspaceResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupDiagnosticsInternal)this).LogAnalyticWorkspaceResourceId = (string) content.GetValueForProperty("LogAnalyticWorkspaceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupDiagnosticsInternal)this).LogAnalyticWorkspaceResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnosticsInternal)this).LogAnalyticWorkspaceResourceId = (string) content.GetValueForProperty("LogAnalyticWorkspaceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnosticsInternal)this).LogAnalyticWorkspaceResourceId, global::System.Convert.ToString); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupDiagnostics DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnostics DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ContainerGroupDiagnostics(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupDiagnostics DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnostics DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ContainerGroupDiagnostics(content); } @@ -177,7 +177,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api202 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupDiagnostics FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnostics FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupDiagnostics.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupDiagnostics.TypeConverter.cs similarity index 98% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupDiagnostics.TypeConverter.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupDiagnostics.TypeConverter.cs index 46f71ba8c5b6..9d7cfd0644e2 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupDiagnostics.TypeConverter.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupDiagnostics.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupDiagnostics ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnostics ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupDiagnostics).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnostics).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupDiagnostics.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupDiagnostics.cs similarity index 83% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupDiagnostics.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupDiagnostics.cs index ab74924d9b3b..4734ef57bf64 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupDiagnostics.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupDiagnostics.cs @@ -3,45 +3,45 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; /// Container group diagnostic information. public partial class ContainerGroupDiagnostics : - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupDiagnostics, - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupDiagnosticsInternal + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnostics, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnosticsInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalytics _logAnalytic; + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalytics _logAnalytic; /// Container group log analytics information. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalytics LogAnalytic { get => (this._logAnalytic = this._logAnalytic ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.LogAnalytics()); set => this._logAnalytic = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalytics LogAnalytic { get => (this._logAnalytic = this._logAnalytic ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.LogAnalytics()); set => this._logAnalytic = value; } /// The log type to be used. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType? LogAnalyticLogType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsInternal)LogAnalytic).LogType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsInternal)LogAnalytic).LogType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType? LogAnalyticLogType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsInternal)LogAnalytic).LogType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsInternal)LogAnalytic).LogType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType)""); } /// Metadata for log analytics. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsMetadata LogAnalyticMetadata { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsInternal)LogAnalytic).Metadata; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsInternal)LogAnalytic).Metadata = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsMetadata LogAnalyticMetadata { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsInternal)LogAnalytic).Metadata; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsInternal)LogAnalytic).Metadata = value ?? null /* model class */; } /// The workspace id for log analytics [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string LogAnalyticWorkspaceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsInternal)LogAnalytic).WorkspaceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsInternal)LogAnalytic).WorkspaceId = value ?? null; } + public string LogAnalyticWorkspaceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsInternal)LogAnalytic).WorkspaceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsInternal)LogAnalytic).WorkspaceId = value ?? null; } /// The workspace key for log analytics [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string LogAnalyticWorkspaceKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsInternal)LogAnalytic).WorkspaceKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsInternal)LogAnalytic).WorkspaceKey = value ?? null; } + public string LogAnalyticWorkspaceKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsInternal)LogAnalytic).WorkspaceKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsInternal)LogAnalytic).WorkspaceKey = value ?? null; } /// The workspace resource id for log analytics [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string LogAnalyticWorkspaceResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsInternal)LogAnalytic).WorkspaceResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsInternal)LogAnalytic).WorkspaceResourceId = value ?? null; } + public string LogAnalyticWorkspaceResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsInternal)LogAnalytic).WorkspaceResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsInternal)LogAnalytic).WorkspaceResourceId = value ?? null; } /// Internal Acessors for LogAnalytic - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalytics Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupDiagnosticsInternal.LogAnalytic { get => (this._logAnalytic = this._logAnalytic ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.LogAnalytics()); set { {_logAnalytic = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalytics Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnosticsInternal.LogAnalytic { get => (this._logAnalytic = this._logAnalytic ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.LogAnalytics()); set { {_logAnalytic = value;} } } /// Creates an new instance. public ContainerGroupDiagnostics() @@ -67,8 +67,8 @@ public partial interface IContainerGroupDiagnostics : ReadOnly = false, Description = @"Metadata for log analytics.", SerializedName = @"metadata", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsMetadata) })] - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsMetadata LogAnalyticMetadata { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsMetadata) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsMetadata LogAnalyticMetadata { get; set; } /// The workspace id for log analytics [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = false, @@ -100,11 +100,11 @@ internal partial interface IContainerGroupDiagnosticsInternal { /// Container group log analytics information. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalytics LogAnalytic { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalytics LogAnalytic { get; set; } /// The log type to be used. Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType? LogAnalyticLogType { get; set; } /// Metadata for log analytics. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsMetadata LogAnalyticMetadata { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsMetadata LogAnalyticMetadata { get; set; } /// The workspace id for log analytics string LogAnalyticWorkspaceId { get; set; } /// The workspace key for log analytics diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupDiagnostics.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupDiagnostics.json.cs similarity index 96% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupDiagnostics.json.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupDiagnostics.json.cs index 28058f72ed2a..c01955ed4ae5 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupDiagnostics.json.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupDiagnostics.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -65,18 +65,18 @@ internal ContainerGroupDiagnostics(Microsoft.Azure.PowerShell.Cmdlets.ContainerI { return; } - {_logAnalytic = If( json?.PropertyT("logAnalytics"), out var __jsonLogAnalytics) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.LogAnalytics.FromJson(__jsonLogAnalytics) : LogAnalytic;} + {_logAnalytic = If( json?.PropertyT("logAnalytics"), out var __jsonLogAnalytics) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.LogAnalytics.FromJson(__jsonLogAnalytics) : LogAnalytic;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupDiagnostics. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnostics. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupDiagnostics. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnostics. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupDiagnostics FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnostics FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new ContainerGroupDiagnostics(json) : null; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupIdentity.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupIdentity.PowerShell.cs similarity index 85% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupIdentity.PowerShell.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupIdentity.PowerShell.cs index 7fad0a980008..27ea899be2ac 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupIdentity.PowerShell.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupIdentity.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -63,7 +63,7 @@ public partial class ContainerGroupIdentity partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -78,25 +78,25 @@ internal ContainerGroupIdentity(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("PrincipalId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentityInternal)this).PrincipalId = (string) content.GetValueForProperty("PrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentityInternal)this).PrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentityInternal)this).PrincipalId = (string) content.GetValueForProperty("PrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentityInternal)this).PrincipalId, global::System.Convert.ToString); } if (content.Contains("TenantId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentityInternal)this).TenantId = (string) content.GetValueForProperty("TenantId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentityInternal)this).TenantId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentityInternal)this).TenantId = (string) content.GetValueForProperty("TenantId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentityInternal)this).TenantId, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentityInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ResourceIdentityType?) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentityInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ResourceIdentityType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentityInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ResourceIdentityType?) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentityInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ResourceIdentityType.CreateFrom); } if (content.Contains("UserAssignedIdentity")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentityInternal)this).UserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentityUserAssignedIdentities) content.GetValueForProperty("UserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentityInternal)this).UserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroupIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentityInternal)this).UserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentityUserAssignedIdentities) content.GetValueForProperty("UserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentityInternal)this).UserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -111,47 +111,47 @@ internal ContainerGroupIdentity(global::System.Management.Automation.PSObject co // actually deserialize if (content.Contains("PrincipalId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentityInternal)this).PrincipalId = (string) content.GetValueForProperty("PrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentityInternal)this).PrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentityInternal)this).PrincipalId = (string) content.GetValueForProperty("PrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentityInternal)this).PrincipalId, global::System.Convert.ToString); } if (content.Contains("TenantId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentityInternal)this).TenantId = (string) content.GetValueForProperty("TenantId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentityInternal)this).TenantId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentityInternal)this).TenantId = (string) content.GetValueForProperty("TenantId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentityInternal)this).TenantId, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentityInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ResourceIdentityType?) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentityInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ResourceIdentityType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentityInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ResourceIdentityType?) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentityInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ResourceIdentityType.CreateFrom); } if (content.Contains("UserAssignedIdentity")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentityInternal)this).UserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentityUserAssignedIdentities) content.GetValueForProperty("UserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentityInternal)this).UserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroupIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentityInternal)this).UserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentityUserAssignedIdentities) content.GetValueForProperty("UserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentityInternal)this).UserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentity DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentity DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ContainerGroupIdentity(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentity DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentity DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ContainerGroupIdentity(content); } @@ -161,7 +161,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api202 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentity FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentity FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupIdentity.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupIdentity.TypeConverter.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupIdentity.TypeConverter.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupIdentity.TypeConverter.cs index 27a029e62113..704557030bf6 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupIdentity.TypeConverter.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupIdentity.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentity ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentity ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentity).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentity).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupIdentity.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupIdentity.cs similarity index 92% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupIdentity.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupIdentity.cs index 72d766052c3d..7b88d280c1fe 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupIdentity.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupIdentity.cs @@ -3,21 +3,21 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; /// Identity for the container group. public partial class ContainerGroupIdentity : - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentity, - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentityInternal + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentity, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentityInternal { /// Internal Acessors for PrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentityInternal.PrincipalId { get => this._principalId; set { {_principalId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentityInternal.PrincipalId { get => this._principalId; set { {_principalId = value;} } } /// Internal Acessors for TenantId - string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentityInternal.TenantId { get => this._tenantId; set { {_tenantId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentityInternal.TenantId { get => this._tenantId; set { {_tenantId = value;} } } /// Backing field for property. private string _principalId; @@ -49,11 +49,11 @@ public partial class ContainerGroupIdentity : public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ResourceIdentityType? Type { get => this._type; set => this._type = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentityUserAssignedIdentities _userAssignedIdentity; + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentityUserAssignedIdentities _userAssignedIdentity; /// The list of user identities associated with the container group. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentityUserAssignedIdentities UserAssignedIdentity { get => (this._userAssignedIdentity = this._userAssignedIdentity ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroupIdentityUserAssignedIdentities()); set => this._userAssignedIdentity = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentityUserAssignedIdentities UserAssignedIdentity { get => (this._userAssignedIdentity = this._userAssignedIdentity ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupIdentityUserAssignedIdentities()); set => this._userAssignedIdentity = value; } /// Creates an new instance. public ContainerGroupIdentity() @@ -103,8 +103,8 @@ public partial interface IContainerGroupIdentity : ReadOnly = false, Description = @"The list of user identities associated with the container group.", SerializedName = @"userAssignedIdentities", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentityUserAssignedIdentities) })] - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentityUserAssignedIdentities UserAssignedIdentity { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentityUserAssignedIdentities) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentityUserAssignedIdentities UserAssignedIdentity { get; set; } } /// Identity for the container group. @@ -126,7 +126,7 @@ internal partial interface IContainerGroupIdentityInternal /// Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ResourceIdentityType? Type { get; set; } /// The list of user identities associated with the container group. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentityUserAssignedIdentities UserAssignedIdentity { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentityUserAssignedIdentities UserAssignedIdentity { get; set; } } } \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupIdentity.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupIdentity.json.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupIdentity.json.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupIdentity.json.cs index a03ec827991c..e76887468312 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupIdentity.json.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupIdentity.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -68,18 +68,18 @@ internal ContainerGroupIdentity(Microsoft.Azure.PowerShell.Cmdlets.ContainerInst {_principalId = If( json?.PropertyT("principalId"), out var __jsonPrincipalId) ? (string)__jsonPrincipalId : (string)PrincipalId;} {_tenantId = If( json?.PropertyT("tenantId"), out var __jsonTenantId) ? (string)__jsonTenantId : (string)TenantId;} {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;} - {_userAssignedIdentity = If( json?.PropertyT("userAssignedIdentities"), out var __jsonUserAssignedIdentities) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroupIdentityUserAssignedIdentities.FromJson(__jsonUserAssignedIdentities) : UserAssignedIdentity;} + {_userAssignedIdentity = If( json?.PropertyT("userAssignedIdentities"), out var __jsonUserAssignedIdentities) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupIdentityUserAssignedIdentities.FromJson(__jsonUserAssignedIdentities) : UserAssignedIdentity;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentity. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentity. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentity. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentity. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentity FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentity FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new ContainerGroupIdentity(json) : null; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupIdentityUserAssignedIdentities.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupIdentityUserAssignedIdentities.PowerShell.cs similarity index 93% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupIdentityUserAssignedIdentities.PowerShell.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupIdentityUserAssignedIdentities.PowerShell.cs index 99d475abe119..9884e73d96eb 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupIdentityUserAssignedIdentities.PowerShell.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupIdentityUserAssignedIdentities.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -63,7 +63,7 @@ public partial class ContainerGroupIdentityUserAssignedIdentities partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -82,7 +82,7 @@ internal ContainerGroupIdentityUserAssignedIdentities(global::System.Collections } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -101,29 +101,29 @@ internal ContainerGroupIdentityUserAssignedIdentities(global::System.Management. } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentityUserAssignedIdentities DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentityUserAssignedIdentities DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ContainerGroupIdentityUserAssignedIdentities(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentityUserAssignedIdentities DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentityUserAssignedIdentities DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ContainerGroupIdentityUserAssignedIdentities(content); } @@ -136,7 +136,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api202 /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentityUserAssignedIdentities FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentityUserAssignedIdentities FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupIdentityUserAssignedIdentities.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupIdentityUserAssignedIdentities.TypeConverter.cs similarity index 98% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupIdentityUserAssignedIdentities.TypeConverter.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupIdentityUserAssignedIdentities.TypeConverter.cs index 1db265c067eb..e910b53009ee 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupIdentityUserAssignedIdentities.TypeConverter.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupIdentityUserAssignedIdentities.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -110,14 +110,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentityUserAssignedIdentities ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentityUserAssignedIdentities ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentityUserAssignedIdentities).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentityUserAssignedIdentities).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupIdentityUserAssignedIdentities.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupIdentityUserAssignedIdentities.cs similarity index 87% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupIdentityUserAssignedIdentities.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupIdentityUserAssignedIdentities.cs index 7d3aea9cc909..0ff6df4a6799 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupIdentityUserAssignedIdentities.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupIdentityUserAssignedIdentities.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; /// The list of user identities associated with the container group. public partial class ContainerGroupIdentityUserAssignedIdentities : - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentityUserAssignedIdentities, - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentityUserAssignedIdentitiesInternal + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentityUserAssignedIdentities, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentityUserAssignedIdentitiesInternal { /// @@ -24,7 +24,7 @@ public ContainerGroupIdentityUserAssignedIdentities() /// The list of user identities associated with the container group. public partial interface IContainerGroupIdentityUserAssignedIdentities : Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IAssociativeArray + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IAssociativeArray { } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupIdentityUserAssignedIdentities.dictionary.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupIdentityUserAssignedIdentities.dictionary.cs similarity index 82% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupIdentityUserAssignedIdentities.dictionary.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupIdentityUserAssignedIdentities.dictionary.cs index 515a40b462cb..0e8209548146 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupIdentityUserAssignedIdentities.dictionary.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupIdentityUserAssignedIdentities.dictionary.cs @@ -3,28 +3,28 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; public partial class ContainerGroupIdentityUserAssignedIdentities : - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IAssociativeArray + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IAssociativeArray { - protected global::System.Collections.Generic.Dictionary __additionalProperties = new global::System.Collections.Generic.Dictionary(); + protected global::System.Collections.Generic.Dictionary __additionalProperties = new global::System.Collections.Generic.Dictionary(); - global::System.Collections.Generic.IDictionary Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IAssociativeArray.AdditionalProperties { get => __additionalProperties; } + global::System.Collections.Generic.IDictionary Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IAssociativeArray.AdditionalProperties { get => __additionalProperties; } - int Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IAssociativeArray.Count { get => __additionalProperties.Count; } + int Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IAssociativeArray.Count { get => __additionalProperties.Count; } - global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IAssociativeArray.Keys { get => __additionalProperties.Keys; } + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IAssociativeArray.Keys { get => __additionalProperties.Keys; } - global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IAssociativeArray.Values { get => __additionalProperties.Values; } + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IAssociativeArray.Values { get => __additionalProperties.Values; } - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUserAssignedIdentities this[global::System.String index] { get => __additionalProperties[index]; set => __additionalProperties[index] = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUserAssignedIdentities this[global::System.String index] { get => __additionalProperties[index]; set => __additionalProperties[index] = value; } /// /// - public void Add(global::System.String key, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUserAssignedIdentities value) => __additionalProperties.Add( key, value); + public void Add(global::System.String key, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUserAssignedIdentities value) => __additionalProperties.Add( key, value); public void Clear() => __additionalProperties.Clear(); @@ -40,7 +40,7 @@ public void CopyFrom(global::System.Collections.IDictionary source) { if ((null != property.Key && null != property.Value)) { - this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); + this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); } } } @@ -55,7 +55,7 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) { if ((null != property.Key && null != property.Value)) { - this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); + this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); } } } @@ -66,10 +66,10 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// /// - public bool TryGetValue(global::System.String key, out Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUserAssignedIdentities value) => __additionalProperties.TryGetValue( key, out value); + public bool TryGetValue(global::System.String key, out Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUserAssignedIdentities value) => __additionalProperties.TryGetValue( key, out value); /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroupIdentityUserAssignedIdentities source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupIdentityUserAssignedIdentities source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupIdentityUserAssignedIdentities.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupIdentityUserAssignedIdentities.json.cs similarity index 94% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupIdentityUserAssignedIdentities.json.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupIdentityUserAssignedIdentities.json.cs index f4fdb3fadd73..1cbff8a4e95a 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupIdentityUserAssignedIdentities.json.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupIdentityUserAssignedIdentities.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -67,18 +67,18 @@ internal ContainerGroupIdentityUserAssignedIdentities(Microsoft.Azure.PowerShell { return; } - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.JsonSerializable.FromJson( json, ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IAssociativeArray)this).AdditionalProperties, (j) => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.UserAssignedIdentities.FromJson(j) ,exclusions ); + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.JsonSerializable.FromJson( json, ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IAssociativeArray)this).AdditionalProperties, (j) => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.UserAssignedIdentities.FromJson(j) ,exclusions ); AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentityUserAssignedIdentities. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentityUserAssignedIdentities. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentityUserAssignedIdentities. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentityUserAssignedIdentities. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentityUserAssignedIdentities FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentityUserAssignedIdentities FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new ContainerGroupIdentityUserAssignedIdentities(json) : null; } @@ -104,7 +104,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNod { return container; } - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.JsonSerializable.ToJson( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IAssociativeArray)this).AdditionalProperties, container); + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.JsonSerializable.ToJson( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IAssociativeArray)this).AdditionalProperties, container); AfterToJson(ref container); return container; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupListResult.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupListResult.PowerShell.cs similarity index 86% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupListResult.PowerShell.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupListResult.PowerShell.cs index f673cad6a8d2..5f733a3f9d4d 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupListResult.PowerShell.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupListResult.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -63,7 +63,7 @@ public partial class ContainerGroupListResult partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -78,17 +78,17 @@ internal ContainerGroupListResult(global::System.Collections.IDictionary content // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroupTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -103,39 +103,39 @@ internal ContainerGroupListResult(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroupTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ContainerGroupListResult(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ContainerGroupListResult(content); } @@ -145,7 +145,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api202 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupListResult.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupListResult.TypeConverter.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupListResult.TypeConverter.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupListResult.TypeConverter.cs index 33659e0c3844..c67d6cd0fc2c 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupListResult.TypeConverter.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupListResult.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupListResult.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupListResult.cs similarity index 88% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupListResult.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupListResult.cs index 22d7b648e2dd..0072b9e59e8f 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupListResult.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupListResult.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; /// The container group list response that contains the container group properties. public partial class ContainerGroupListResult : - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupListResult, - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupListResult, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupListResultInternal { /// Backing field for property. @@ -21,11 +21,11 @@ public partial class ContainerGroupListResult : public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup[] _value; /// The list of container groups. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public ContainerGroupListResult() @@ -51,8 +51,8 @@ public partial interface IContainerGroupListResult : ReadOnly = false, Description = @"The list of container groups.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup) })] - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup[] Value { get; set; } } /// The container group list response that contains the container group properties. @@ -62,7 +62,7 @@ internal partial interface IContainerGroupListResultInternal /// The URI to fetch the next page of container groups. string NextLink { get; set; } /// The list of container groups. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup[] Value { get; set; } } } \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupListResult.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupListResult.json.cs similarity index 95% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupListResult.json.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupListResult.json.cs index dcca7b5a34b9..2ef7770cfab8 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupListResult.json.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupListResult.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -65,19 +65,19 @@ internal ContainerGroupListResult(Microsoft.Azure.PowerShell.Cmdlets.ContainerIn { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup) (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroup.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup) (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroup.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new ContainerGroupListResult(json) : null; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfile.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfile.PowerShell.cs new file mode 100644 index 000000000000..335149672d6c --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfile.PowerShell.cs @@ -0,0 +1,462 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; + + /// A container group profile. + [System.ComponentModel.TypeConverter(typeof(ContainerGroupProfileTypeConverter))] + public partial class ContainerGroupProfile + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ContainerGroupProfile(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ResourceTagsTypeConverter.ConvertFrom); + } + if (content.Contains("Zone")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Zone = (string[]) content.GetValueForProperty("Zone",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Zone, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("IPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).IPAddress = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddress) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).IPAddress, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPAddressTypeConverter.ConvertFrom); + } + if (content.Contains("EncryptionProperty")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).EncryptionProperty = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEncryptionProperties) content.GetValueForProperty("EncryptionProperty",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).EncryptionProperty, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.EncryptionPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Diagnostic")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).Diagnostic = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnostics) content.GetValueForProperty("Diagnostic",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).Diagnostic, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupDiagnosticsTypeConverter.ConvertFrom); + } + if (content.Contains("ConfidentialComputeProperty")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).ConfidentialComputeProperty = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfidentialComputeProperties) content.GetValueForProperty("ConfidentialComputeProperty",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).ConfidentialComputeProperty, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ConfidentialComputePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Container")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).Container = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainer[]) content.GetValueForProperty("Container",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).Container, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerTypeConverter.ConvertFrom)); + } + if (content.Contains("ImageRegistryCredentials")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).ImageRegistryCredentials = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredential[]) content.GetValueForProperty("ImageRegistryCredentials",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).ImageRegistryCredentials, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ImageRegistryCredentialTypeConverter.ConvertFrom)); + } + if (content.Contains("RestartPolicy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).RestartPolicy = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy?) content.GetValueForProperty("RestartPolicy",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).RestartPolicy, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy.CreateFrom); + } + if (content.Contains("OSType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).OSType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).OSType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes.CreateFrom); + } + if (content.Contains("Volume")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).Volume = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolume[]) content.GetValueForProperty("Volume",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).Volume, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.VolumeTypeConverter.ConvertFrom)); + } + if (content.Contains("Sku")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku?) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku.CreateFrom); + } + if (content.Contains("InitContainer")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).InitContainer = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinition[]) content.GetValueForProperty("InitContainer",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).InitContainer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.InitContainerDefinitionTypeConverter.ConvertFrom)); + } + if (content.Contains("Extension")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).Extension = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpec[]) content.GetValueForProperty("Extension",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).Extension, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.DeploymentExtensionSpecTypeConverter.ConvertFrom)); + } + if (content.Contains("Priority")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).Priority = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority?) content.GetValueForProperty("Priority",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).Priority, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority.CreateFrom); + } + if (content.Contains("Revision")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).Revision = (int?) content.GetValueForProperty("Revision",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).Revision, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("DiagnosticLogAnalytic")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).DiagnosticLogAnalytic = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalytics) content.GetValueForProperty("DiagnosticLogAnalytic",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).DiagnosticLogAnalytic, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.LogAnalyticsTypeConverter.ConvertFrom); + } + if (content.Contains("EncryptionPropertyKeyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).EncryptionPropertyKeyName = (string) content.GetValueForProperty("EncryptionPropertyKeyName",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).EncryptionPropertyKeyName, global::System.Convert.ToString); + } + if (content.Contains("EncryptionPropertyKeyVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).EncryptionPropertyKeyVersion = (string) content.GetValueForProperty("EncryptionPropertyKeyVersion",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).EncryptionPropertyKeyVersion, global::System.Convert.ToString); + } + if (content.Contains("EncryptionPropertyIdentity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).EncryptionPropertyIdentity = (string) content.GetValueForProperty("EncryptionPropertyIdentity",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).EncryptionPropertyIdentity, global::System.Convert.ToString); + } + if (content.Contains("ConfidentialComputePropertyCcePolicy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).ConfidentialComputePropertyCcePolicy = (string) content.GetValueForProperty("ConfidentialComputePropertyCcePolicy",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).ConfidentialComputePropertyCcePolicy, global::System.Convert.ToString); + } + if (content.Contains("IPAddressPort")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).IPAddressPort = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPort[]) content.GetValueForProperty("IPAddressPort",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).IPAddressPort, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.PortTypeConverter.ConvertFrom)); + } + if (content.Contains("IPAddressType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).IPAddressType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType) content.GetValueForProperty("IPAddressType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).IPAddressType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType.CreateFrom); + } + if (content.Contains("IPAddressIP")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).IPAddressIP = (string) content.GetValueForProperty("IPAddressIP",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).IPAddressIP, global::System.Convert.ToString); + } + if (content.Contains("IPAddressDnsNameLabel")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).IPAddressDnsNameLabel = (string) content.GetValueForProperty("IPAddressDnsNameLabel",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).IPAddressDnsNameLabel, global::System.Convert.ToString); + } + if (content.Contains("IPAddressAutoGeneratedDomainNameLabelScope")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).IPAddressAutoGeneratedDomainNameLabelScope = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy?) content.GetValueForProperty("IPAddressAutoGeneratedDomainNameLabelScope",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).IPAddressAutoGeneratedDomainNameLabelScope, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy.CreateFrom); + } + if (content.Contains("IPAddressFqdn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).IPAddressFqdn = (string) content.GetValueForProperty("IPAddressFqdn",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).IPAddressFqdn, global::System.Convert.ToString); + } + if (content.Contains("LogAnalyticWorkspaceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).LogAnalyticWorkspaceId = (string) content.GetValueForProperty("LogAnalyticWorkspaceId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).LogAnalyticWorkspaceId, global::System.Convert.ToString); + } + if (content.Contains("LogAnalyticWorkspaceKey")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).LogAnalyticWorkspaceKey = (string) content.GetValueForProperty("LogAnalyticWorkspaceKey",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).LogAnalyticWorkspaceKey, global::System.Convert.ToString); + } + if (content.Contains("LogAnalyticLogType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).LogAnalyticLogType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType?) content.GetValueForProperty("LogAnalyticLogType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).LogAnalyticLogType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType.CreateFrom); + } + if (content.Contains("LogAnalyticMetadata")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).LogAnalyticMetadata = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsMetadata) content.GetValueForProperty("LogAnalyticMetadata",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).LogAnalyticMetadata, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.LogAnalyticsMetadataTypeConverter.ConvertFrom); + } + if (content.Contains("EncryptionPropertyVaultBaseUrl")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).EncryptionPropertyVaultBaseUrl = (string) content.GetValueForProperty("EncryptionPropertyVaultBaseUrl",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).EncryptionPropertyVaultBaseUrl, global::System.Convert.ToString); + } + if (content.Contains("LogAnalyticWorkspaceResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).LogAnalyticWorkspaceResourceId = (string) content.GetValueForProperty("LogAnalyticWorkspaceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).LogAnalyticWorkspaceResourceId, global::System.Convert.ToString); + } + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGenerated) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupProfilePropertiesAutoGeneratedTypeConverter.ConvertFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ContainerGroupProfile(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ResourceTagsTypeConverter.ConvertFrom); + } + if (content.Contains("Zone")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Zone = (string[]) content.GetValueForProperty("Zone",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Zone, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("IPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).IPAddress = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddress) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).IPAddress, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPAddressTypeConverter.ConvertFrom); + } + if (content.Contains("EncryptionProperty")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).EncryptionProperty = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEncryptionProperties) content.GetValueForProperty("EncryptionProperty",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).EncryptionProperty, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.EncryptionPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Diagnostic")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).Diagnostic = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnostics) content.GetValueForProperty("Diagnostic",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).Diagnostic, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupDiagnosticsTypeConverter.ConvertFrom); + } + if (content.Contains("ConfidentialComputeProperty")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).ConfidentialComputeProperty = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfidentialComputeProperties) content.GetValueForProperty("ConfidentialComputeProperty",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).ConfidentialComputeProperty, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ConfidentialComputePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Container")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).Container = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainer[]) content.GetValueForProperty("Container",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).Container, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerTypeConverter.ConvertFrom)); + } + if (content.Contains("ImageRegistryCredentials")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).ImageRegistryCredentials = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredential[]) content.GetValueForProperty("ImageRegistryCredentials",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).ImageRegistryCredentials, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ImageRegistryCredentialTypeConverter.ConvertFrom)); + } + if (content.Contains("RestartPolicy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).RestartPolicy = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy?) content.GetValueForProperty("RestartPolicy",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).RestartPolicy, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy.CreateFrom); + } + if (content.Contains("OSType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).OSType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).OSType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes.CreateFrom); + } + if (content.Contains("Volume")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).Volume = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolume[]) content.GetValueForProperty("Volume",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).Volume, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.VolumeTypeConverter.ConvertFrom)); + } + if (content.Contains("Sku")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku?) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku.CreateFrom); + } + if (content.Contains("InitContainer")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).InitContainer = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinition[]) content.GetValueForProperty("InitContainer",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).InitContainer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.InitContainerDefinitionTypeConverter.ConvertFrom)); + } + if (content.Contains("Extension")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).Extension = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpec[]) content.GetValueForProperty("Extension",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).Extension, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.DeploymentExtensionSpecTypeConverter.ConvertFrom)); + } + if (content.Contains("Priority")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).Priority = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority?) content.GetValueForProperty("Priority",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).Priority, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority.CreateFrom); + } + if (content.Contains("Revision")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).Revision = (int?) content.GetValueForProperty("Revision",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).Revision, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("DiagnosticLogAnalytic")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).DiagnosticLogAnalytic = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalytics) content.GetValueForProperty("DiagnosticLogAnalytic",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).DiagnosticLogAnalytic, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.LogAnalyticsTypeConverter.ConvertFrom); + } + if (content.Contains("EncryptionPropertyKeyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).EncryptionPropertyKeyName = (string) content.GetValueForProperty("EncryptionPropertyKeyName",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).EncryptionPropertyKeyName, global::System.Convert.ToString); + } + if (content.Contains("EncryptionPropertyKeyVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).EncryptionPropertyKeyVersion = (string) content.GetValueForProperty("EncryptionPropertyKeyVersion",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).EncryptionPropertyKeyVersion, global::System.Convert.ToString); + } + if (content.Contains("EncryptionPropertyIdentity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).EncryptionPropertyIdentity = (string) content.GetValueForProperty("EncryptionPropertyIdentity",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).EncryptionPropertyIdentity, global::System.Convert.ToString); + } + if (content.Contains("ConfidentialComputePropertyCcePolicy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).ConfidentialComputePropertyCcePolicy = (string) content.GetValueForProperty("ConfidentialComputePropertyCcePolicy",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).ConfidentialComputePropertyCcePolicy, global::System.Convert.ToString); + } + if (content.Contains("IPAddressPort")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).IPAddressPort = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPort[]) content.GetValueForProperty("IPAddressPort",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).IPAddressPort, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.PortTypeConverter.ConvertFrom)); + } + if (content.Contains("IPAddressType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).IPAddressType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType) content.GetValueForProperty("IPAddressType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).IPAddressType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType.CreateFrom); + } + if (content.Contains("IPAddressIP")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).IPAddressIP = (string) content.GetValueForProperty("IPAddressIP",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).IPAddressIP, global::System.Convert.ToString); + } + if (content.Contains("IPAddressDnsNameLabel")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).IPAddressDnsNameLabel = (string) content.GetValueForProperty("IPAddressDnsNameLabel",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).IPAddressDnsNameLabel, global::System.Convert.ToString); + } + if (content.Contains("IPAddressAutoGeneratedDomainNameLabelScope")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).IPAddressAutoGeneratedDomainNameLabelScope = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy?) content.GetValueForProperty("IPAddressAutoGeneratedDomainNameLabelScope",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).IPAddressAutoGeneratedDomainNameLabelScope, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy.CreateFrom); + } + if (content.Contains("IPAddressFqdn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).IPAddressFqdn = (string) content.GetValueForProperty("IPAddressFqdn",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).IPAddressFqdn, global::System.Convert.ToString); + } + if (content.Contains("LogAnalyticWorkspaceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).LogAnalyticWorkspaceId = (string) content.GetValueForProperty("LogAnalyticWorkspaceId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).LogAnalyticWorkspaceId, global::System.Convert.ToString); + } + if (content.Contains("LogAnalyticWorkspaceKey")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).LogAnalyticWorkspaceKey = (string) content.GetValueForProperty("LogAnalyticWorkspaceKey",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).LogAnalyticWorkspaceKey, global::System.Convert.ToString); + } + if (content.Contains("LogAnalyticLogType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).LogAnalyticLogType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType?) content.GetValueForProperty("LogAnalyticLogType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).LogAnalyticLogType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType.CreateFrom); + } + if (content.Contains("LogAnalyticMetadata")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).LogAnalyticMetadata = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsMetadata) content.GetValueForProperty("LogAnalyticMetadata",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).LogAnalyticMetadata, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.LogAnalyticsMetadataTypeConverter.ConvertFrom); + } + if (content.Contains("EncryptionPropertyVaultBaseUrl")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).EncryptionPropertyVaultBaseUrl = (string) content.GetValueForProperty("EncryptionPropertyVaultBaseUrl",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).EncryptionPropertyVaultBaseUrl, global::System.Convert.ToString); + } + if (content.Contains("LogAnalyticWorkspaceResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).LogAnalyticWorkspaceResourceId = (string) content.GetValueForProperty("LogAnalyticWorkspaceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).LogAnalyticWorkspaceResourceId, global::System.Convert.ToString); + } + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGenerated) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupProfilePropertiesAutoGeneratedTypeConverter.ConvertFrom); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ContainerGroupProfile(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ContainerGroupProfile(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// A container group profile. + [System.ComponentModel.TypeConverter(typeof(ContainerGroupProfileTypeConverter))] + public partial interface IContainerGroupProfile + + { + + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfile.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfile.TypeConverter.cs new file mode 100644 index 000000000000..e4236d0f19e2 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfile.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ContainerGroupProfileTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ContainerGroupProfile.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ContainerGroupProfile.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ContainerGroupProfile.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfile.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfile.cs new file mode 100644 index 000000000000..abaace4d0339 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfile.cs @@ -0,0 +1,248 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; + + /// A container group profile. + public partial class ContainerGroupProfile : + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileInternal, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileProperties __containerGroupProfileProperties = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupProfileProperties(); + + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Resource(); + + /// The properties for confidential container group + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfidentialComputeProperties ConfidentialComputeProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)__containerGroupProfileProperties).ConfidentialComputeProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)__containerGroupProfileProperties).ConfidentialComputeProperty = value ?? null /* model class */; } + + /// The base64 encoded confidential compute enforcement policy + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] + public string ConfidentialComputePropertyCcePolicy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)__containerGroupProfileProperties).ConfidentialComputePropertyCcePolicy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)__containerGroupProfileProperties).ConfidentialComputePropertyCcePolicy = value ?? null; } + + /// The containers within the container group. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainer[] Container { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)__containerGroupProfileProperties).Container; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)__containerGroupProfileProperties).Container = value ; } + + /// The diagnostic information for a container group. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnostics Diagnostic { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)__containerGroupProfileProperties).Diagnostic; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)__containerGroupProfileProperties).Diagnostic = value ?? null /* model class */; } + + /// Container group log analytics information. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalytics DiagnosticLogAnalytic { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)__containerGroupProfileProperties).DiagnosticLogAnalytic; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)__containerGroupProfileProperties).DiagnosticLogAnalytic = value ?? null /* model class */; } + + /// The encryption properties for a container group. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEncryptionProperties EncryptionProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)__containerGroupProfileProperties).EncryptionProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)__containerGroupProfileProperties).EncryptionProperty = value ?? null /* model class */; } + + /// The keyvault managed identity. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] + public string EncryptionPropertyIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)__containerGroupProfileProperties).EncryptionPropertyIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)__containerGroupProfileProperties).EncryptionPropertyIdentity = value ?? null; } + + /// The encryption key name. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] + public string EncryptionPropertyKeyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)__containerGroupProfileProperties).EncryptionPropertyKeyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)__containerGroupProfileProperties).EncryptionPropertyKeyName = value ?? null; } + + /// The encryption key version. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] + public string EncryptionPropertyKeyVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)__containerGroupProfileProperties).EncryptionPropertyKeyVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)__containerGroupProfileProperties).EncryptionPropertyKeyVersion = value ?? null; } + + /// The keyvault base url. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] + public string EncryptionPropertyVaultBaseUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)__containerGroupProfileProperties).EncryptionPropertyVaultBaseUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)__containerGroupProfileProperties).EncryptionPropertyVaultBaseUrl = value ?? null; } + + /// extensions used by virtual kubelet + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpec[] Extension { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)__containerGroupProfileProperties).Extension; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)__containerGroupProfileProperties).Extension = value ?? null /* arrayOf */; } + + /// The IP address type of the container group. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddress IPAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)__containerGroupProfileProperties).IPAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)__containerGroupProfileProperties).IPAddress = value ?? null /* model class */; } + + /// + /// The value representing the security enum. The 'Unsecure' value is the default value if not selected and means the object's + /// domain name label is not secured against subdomain takeover. The 'TenantReuse' value is the default value if selected + /// and means the object's domain name label can be reused within the same tenant. The 'SubscriptionReuse' value means the + /// object's domain name label can be reused within the same subscription. The 'ResourceGroupReuse' value means the object's + /// domain name label can be reused within the same resource group. The 'NoReuse' value means the object's domain name label + /// cannot be reused within the same resource group, subscription, or tenant. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy? IPAddressAutoGeneratedDomainNameLabelScope { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)__containerGroupProfileProperties).IPAddressAutoGeneratedDomainNameLabelScope; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)__containerGroupProfileProperties).IPAddressAutoGeneratedDomainNameLabelScope = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy)""); } + + /// The Dns name label for the IP. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] + public string IPAddressDnsNameLabel { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)__containerGroupProfileProperties).IPAddressDnsNameLabel; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)__containerGroupProfileProperties).IPAddressDnsNameLabel = value ?? null; } + + /// The FQDN for the IP. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] + public string IPAddressFqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)__containerGroupProfileProperties).IPAddressFqdn; } + + /// The IP exposed to the public internet. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] + public string IPAddressIP { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)__containerGroupProfileProperties).IPAddressIP; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)__containerGroupProfileProperties).IPAddressIP = value ?? null; } + + /// The list of ports exposed on the container group. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPort[] IPAddressPort { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)__containerGroupProfileProperties).IPAddressPort; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)__containerGroupProfileProperties).IPAddressPort = value ?? null /* arrayOf */; } + + /// Specifies if the IP is exposed to the public internet or private VNET. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType? IPAddressType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)__containerGroupProfileProperties).IPAddressType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)__containerGroupProfileProperties).IPAddressType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType)""); } + + /// The resource id. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)__resource).Id; } + + /// The image registry credentials by which the container group is created from. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredential[] ImageRegistryCredentials { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)__containerGroupProfileProperties).ImageRegistryCredentials; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)__containerGroupProfileProperties).ImageRegistryCredentials = value ?? null /* arrayOf */; } + + /// The init containers for a container group. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinition[] InitContainer { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)__containerGroupProfileProperties).InitContainer; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)__containerGroupProfileProperties).InitContainer = value ?? null /* arrayOf */; } + + /// The resource location. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)__resource).Location = value ?? null; } + + /// The log type to be used. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType? LogAnalyticLogType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)__containerGroupProfileProperties).LogAnalyticLogType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)__containerGroupProfileProperties).LogAnalyticLogType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType)""); } + + /// Metadata for log analytics. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsMetadata LogAnalyticMetadata { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)__containerGroupProfileProperties).LogAnalyticMetadata; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)__containerGroupProfileProperties).LogAnalyticMetadata = value ?? null /* model class */; } + + /// The workspace id for log analytics + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] + public string LogAnalyticWorkspaceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)__containerGroupProfileProperties).LogAnalyticWorkspaceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)__containerGroupProfileProperties).LogAnalyticWorkspaceId = value ?? null; } + + /// The workspace key for log analytics + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] + public string LogAnalyticWorkspaceKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)__containerGroupProfileProperties).LogAnalyticWorkspaceKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)__containerGroupProfileProperties).LogAnalyticWorkspaceKey = value ?? null; } + + /// The workspace resource id for log analytics + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] + public string LogAnalyticWorkspaceResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)__containerGroupProfileProperties).LogAnalyticWorkspaceResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)__containerGroupProfileProperties).LogAnalyticWorkspaceResourceId = value ?? null; } + + /// Internal Acessors for IPAddressFqdn + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal.IPAddressFqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)__containerGroupProfileProperties).IPAddressFqdn; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)__containerGroupProfileProperties).IPAddressFqdn = value; } + + /// Internal Acessors for Revision + int? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal.Revision { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)__containerGroupProfileProperties).Revision; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)__containerGroupProfileProperties).Revision = value; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)__resource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)__resource).Name = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)__resource).Type = value; } + + /// The resource name. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)__resource).Name; } + + /// The operating system type required by the containers in the container group. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes OSType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)__containerGroupProfileProperties).OSType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)__containerGroupProfileProperties).OSType = value ; } + + /// The priority of the container group. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority? Priority { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)__containerGroupProfileProperties).Priority; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)__containerGroupProfileProperties).Priority = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority)""); } + + /// The container group profile properties + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGenerated Property { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)__containerGroupProfileProperties).Property; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)__containerGroupProfileProperties).Property = value ; } + + /// Gets the resource group name + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] + public string ResourceGroupName { get => (new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Success ? new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Groups["resourceGroupName"].Value : null); } + + /// + /// Restart policy for all containers within the container group. + /// - `Always` Always restart + /// - `OnFailure` Restart on failure + /// - `Never` Never restart + /// + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy? RestartPolicy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)__containerGroupProfileProperties).RestartPolicy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)__containerGroupProfileProperties).RestartPolicy = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy)""); } + + /// + /// The container group profile current revision number. This only appears in the response. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] + public int? Revision { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)__containerGroupProfileProperties).Revision; } + + /// The SKU for a container group. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku? Sku { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)__containerGroupProfileProperties).Sku; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)__containerGroupProfileProperties).Sku = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku)""); } + + /// The resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)__resource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)__resource).Tag = value ?? null /* model class */; } + + /// The resource type. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)__resource).Type; } + + /// The list of volumes that can be mounted by containers in this container group. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolume[] Volume { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)__containerGroupProfileProperties).Volume; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)__containerGroupProfileProperties).Volume = value ?? null /* arrayOf */; } + + /// The zones for the container group. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inherited)] + public string[] Zone { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)__resource).Zone; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)__resource).Zone = value ?? null /* arrayOf */; } + + /// Creates an new instance. + public ContainerGroupProfile() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__resource), __resource); + await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + await eventListener.AssertNotNull(nameof(__containerGroupProfileProperties), __containerGroupProfileProperties); + await eventListener.AssertObjectIsValid(nameof(__containerGroupProfileProperties), __containerGroupProfileProperties); + } + } + /// A container group profile. + public partial interface IContainerGroupProfile : + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResource, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileProperties + { + + } + /// A container group profile. + internal partial interface IContainerGroupProfileInternal : + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal + { + + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfile.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfile.json.cs new file mode 100644 index 000000000000..e2bd30bfbb5d --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfile.json.cs @@ -0,0 +1,110 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; + + /// A container group profile. + public partial class ContainerGroupProfile + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject instance to deserialize from. + internal ContainerGroupProfile(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __resource = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Resource(json); + __containerGroupProfileProperties = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupProfileProperties(json); + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new ContainerGroupProfile(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __resource?.ToJson(container, serializationMode); + __containerGroupProfileProperties?.ToJson(container, serializationMode); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfileListResult.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfileListResult.PowerShell.cs new file mode 100644 index 000000000000..eed4d980d0b7 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfileListResult.PowerShell.cs @@ -0,0 +1,176 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; + + /// + /// The container group profile list response that contains the container group profile properties. + /// + [System.ComponentModel.TypeConverter(typeof(ContainerGroupProfileListResultTypeConverter))] + public partial class ContainerGroupProfileListResult + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ContainerGroupProfileListResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupProfileTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileListResultInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ContainerGroupProfileListResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupProfileTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileListResultInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ContainerGroupProfileListResult(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ContainerGroupProfileListResult(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// The container group profile list response that contains the container group profile properties. + [System.ComponentModel.TypeConverter(typeof(ContainerGroupProfileListResultTypeConverter))] + public partial interface IContainerGroupProfileListResult + + { + + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfileListResult.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfileListResult.TypeConverter.cs new file mode 100644 index 000000000000..339f81c5ad97 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfileListResult.TypeConverter.cs @@ -0,0 +1,148 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ContainerGroupProfileListResultTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileListResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileListResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ContainerGroupProfileListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ContainerGroupProfileListResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ContainerGroupProfileListResult.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfileListResult.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfileListResult.cs new file mode 100644 index 000000000000..f58c2e0cf779 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfileListResult.cs @@ -0,0 +1,70 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; + + /// + /// The container group profile list response that contains the container group profile properties. + /// + public partial class ContainerGroupProfileListResult : + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileListResult, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileListResultInternal + { + + /// Backing field for property. + private string _nextLink; + + /// The URI to fetch the next page of container group profiles. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] + public string NextLink { get => this._nextLink; set => this._nextLink = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile[] _value; + + /// The list of container group profiles. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile[] Value { get => this._value; set => this._value = value; } + + /// Creates an new instance. + public ContainerGroupProfileListResult() + { + + } + } + /// The container group profile list response that contains the container group profile properties. + public partial interface IContainerGroupProfileListResult : + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IJsonSerializable + { + /// The URI to fetch the next page of container group profiles. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The URI to fetch the next page of container group profiles.", + SerializedName = @"nextLink", + PossibleTypes = new [] { typeof(string) })] + string NextLink { get; set; } + /// The list of container group profiles. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The list of container group profiles.", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile[] Value { get; set; } + + } + /// The container group profile list response that contains the container group profile properties. + internal partial interface IContainerGroupProfileListResultInternal + + { + /// The URI to fetch the next page of container group profiles. + string NextLink { get; set; } + /// The list of container group profiles. + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile[] Value { get; set; } + + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfileListResult.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfileListResult.json.cs new file mode 100644 index 000000000000..8394524af11b --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfileListResult.json.cs @@ -0,0 +1,120 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; + + /// + /// The container group profile list response that contains the container group profile properties. + /// + public partial class ContainerGroupProfileListResult + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject instance to deserialize from. + internal ContainerGroupProfileListResult(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile) (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupProfile.FromJson(__u) )) ))() : null : Value;} + {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileListResult. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileListResult. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new ContainerGroupProfileListResult(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (null != this._value) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("value",__w); + } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfilePatch.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfilePatch.PowerShell.cs new file mode 100644 index 000000000000..35b41e681a27 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfilePatch.PowerShell.cs @@ -0,0 +1,166 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; + + /// Properties of container group profile that need to be patched + [System.ComponentModel.TypeConverter(typeof(ContainerGroupProfilePatchTypeConverter))] + public partial class ContainerGroupProfilePatch + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ContainerGroupProfilePatch(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupProfilePatchTagsTypeConverter.ConvertFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ContainerGroupProfilePatch(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupProfilePatchTagsTypeConverter.ConvertFrom); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePatch DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ContainerGroupProfilePatch(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePatch DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ContainerGroupProfilePatch(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePatch FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// Properties of container group profile that need to be patched + [System.ComponentModel.TypeConverter(typeof(ContainerGroupProfilePatchTypeConverter))] + public partial interface IContainerGroupProfilePatch + + { + + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfilePatch.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfilePatch.TypeConverter.cs new file mode 100644 index 000000000000..d0be35d48c22 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfilePatch.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ContainerGroupProfilePatchTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePatch ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePatch).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ContainerGroupProfilePatch.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ContainerGroupProfilePatch.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ContainerGroupProfilePatch.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfilePatch.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfilePatch.cs new file mode 100644 index 000000000000..eada2dacc076 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfilePatch.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; + + /// Properties of container group profile that need to be patched + public partial class ContainerGroupProfilePatch : + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePatch, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePatchInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePatchTags _tag; + + /// Resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePatchTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupProfilePatchTags()); set => this._tag = value; } + + /// Creates an new instance. + public ContainerGroupProfilePatch() + { + + } + } + /// Properties of container group profile that need to be patched + public partial interface IContainerGroupProfilePatch : + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IJsonSerializable + { + /// Resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource tags.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePatchTags) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePatchTags Tag { get; set; } + + } + /// Properties of container group profile that need to be patched + internal partial interface IContainerGroupProfilePatchInternal + + { + /// Resource tags. + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePatchTags Tag { get; set; } + + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfilePatch.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfilePatch.json.cs new file mode 100644 index 000000000000..58a0e1aea063 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfilePatch.json.cs @@ -0,0 +1,108 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; + + /// Properties of container group profile that need to be patched + public partial class ContainerGroupProfilePatch + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject instance to deserialize from. + internal ContainerGroupProfilePatch(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupProfilePatchTags.FromJson(__jsonTags) : Tag;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePatch. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePatch. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePatch FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new ContainerGroupProfilePatch(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._tag ? (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode) this._tag.ToJson(null,serializationMode) : null, "tags" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfilePatchTags.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfilePatchTags.PowerShell.cs new file mode 100644 index 000000000000..9f8f53fafd2c --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfilePatchTags.PowerShell.cs @@ -0,0 +1,162 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; + + /// Resource tags. + [System.ComponentModel.TypeConverter(typeof(ContainerGroupProfilePatchTagsTypeConverter))] + public partial class ContainerGroupProfilePatchTags + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ContainerGroupProfilePatchTags(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + // this type is a dictionary; copy elements from source to here. + CopyFrom(content); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ContainerGroupProfilePatchTags(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + // this type is a dictionary; copy elements from source to here. + CopyFrom(content); + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePatchTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ContainerGroupProfilePatchTags(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePatchTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ContainerGroupProfilePatchTags(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePatchTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// Resource tags. + [System.ComponentModel.TypeConverter(typeof(ContainerGroupProfilePatchTagsTypeConverter))] + public partial interface IContainerGroupProfilePatchTags + + { + + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfilePatchTags.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfilePatchTags.TypeConverter.cs new file mode 100644 index 000000000000..47f49dce46c7 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfilePatchTags.TypeConverter.cs @@ -0,0 +1,148 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ContainerGroupProfilePatchTagsTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePatchTags ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePatchTags).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ContainerGroupProfilePatchTags.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ContainerGroupProfilePatchTags.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ContainerGroupProfilePatchTags.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfilePatchTags.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfilePatchTags.cs new file mode 100644 index 000000000000..bb7108bbfb71 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfilePatchTags.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; + + /// Resource tags. + public partial class ContainerGroupProfilePatchTags : + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePatchTags, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePatchTagsInternal + { + + /// Creates an new instance. + public ContainerGroupProfilePatchTags() + { + + } + } + /// Resource tags. + public partial interface IContainerGroupProfilePatchTags : + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IAssociativeArray + { + + } + /// Resource tags. + internal partial interface IContainerGroupProfilePatchTagsInternal + + { + + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfilePatchTags.dictionary.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfilePatchTags.dictionary.cs new file mode 100644 index 000000000000..aa643e66706b --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfilePatchTags.dictionary.cs @@ -0,0 +1,75 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; + + public partial class ContainerGroupProfilePatchTags : + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IAssociativeArray + { + protected global::System.Collections.Generic.Dictionary __additionalProperties = new global::System.Collections.Generic.Dictionary(); + + global::System.Collections.Generic.IDictionary Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IAssociativeArray.AdditionalProperties { get => __additionalProperties; } + + int Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IAssociativeArray.Count { get => __additionalProperties.Count; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IAssociativeArray.Keys { get => __additionalProperties.Keys; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IAssociativeArray.Values { get => __additionalProperties.Values; } + + public string this[global::System.String index] { get => __additionalProperties[index]; set => __additionalProperties[index] = value; } + + /// + /// + public void Add(global::System.String key, string value) => __additionalProperties.Add( key, value); + + public void Clear() => __additionalProperties.Clear(); + + /// + public bool ContainsKey(global::System.String key) => __additionalProperties.ContainsKey( key); + + /// + public void CopyFrom(global::System.Collections.IDictionary source) + { + if (null != source) + { + foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) + { + if ((null != property.Key && null != property.Value)) + { + this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); + } + } + } + } + + /// + public void CopyFrom(global::System.Management.Automation.PSObject source) + { + if (null != source) + { + foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) + { + if ((null != property.Key && null != property.Value)) + { + this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); + } + } + } + } + + /// + public bool Remove(global::System.String key) => __additionalProperties.Remove( key); + + /// + /// + public bool TryGetValue(global::System.String key, out string value) => __additionalProperties.TryGetValue( key, out value); + + /// + + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupProfilePatchTags source) => source.__additionalProperties; + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfilePatchTags.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfilePatchTags.json.cs new file mode 100644 index 000000000000..ffb89e8f3a43 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfilePatchTags.json.cs @@ -0,0 +1,109 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; + + /// Resource tags. + public partial class ContainerGroupProfilePatchTags + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject instance to deserialize from. + /// + internal ContainerGroupProfilePatchTags(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json, global::System.Collections.Generic.HashSet exclusions = null) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.JsonSerializable.FromJson( json, ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IAssociativeArray)this).AdditionalProperties, null ,exclusions ); + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePatchTags. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePatchTags. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePatchTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new ContainerGroupProfilePatchTags(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.JsonSerializable.ToJson( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IAssociativeArray)this).AdditionalProperties, container); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfileProperties.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfileProperties.PowerShell.cs new file mode 100644 index 000000000000..684e27b159c2 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfileProperties.PowerShell.cs @@ -0,0 +1,414 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; + + /// The container group profile properties + [System.ComponentModel.TypeConverter(typeof(ContainerGroupProfilePropertiesTypeConverter))] + public partial class ContainerGroupProfileProperties + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ContainerGroupProfileProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGenerated) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupProfilePropertiesAutoGeneratedTypeConverter.ConvertFrom); + } + if (content.Contains("IPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).IPAddress = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddress) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).IPAddress, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPAddressTypeConverter.ConvertFrom); + } + if (content.Contains("EncryptionProperty")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).EncryptionProperty = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEncryptionProperties) content.GetValueForProperty("EncryptionProperty",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).EncryptionProperty, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.EncryptionPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Diagnostic")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).Diagnostic = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnostics) content.GetValueForProperty("Diagnostic",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).Diagnostic, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupDiagnosticsTypeConverter.ConvertFrom); + } + if (content.Contains("ConfidentialComputeProperty")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).ConfidentialComputeProperty = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfidentialComputeProperties) content.GetValueForProperty("ConfidentialComputeProperty",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).ConfidentialComputeProperty, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ConfidentialComputePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Container")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).Container = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainer[]) content.GetValueForProperty("Container",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).Container, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerTypeConverter.ConvertFrom)); + } + if (content.Contains("ImageRegistryCredentials")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).ImageRegistryCredentials = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredential[]) content.GetValueForProperty("ImageRegistryCredentials",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).ImageRegistryCredentials, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ImageRegistryCredentialTypeConverter.ConvertFrom)); + } + if (content.Contains("RestartPolicy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).RestartPolicy = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy?) content.GetValueForProperty("RestartPolicy",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).RestartPolicy, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy.CreateFrom); + } + if (content.Contains("OSType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).OSType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).OSType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes.CreateFrom); + } + if (content.Contains("Volume")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).Volume = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolume[]) content.GetValueForProperty("Volume",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).Volume, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.VolumeTypeConverter.ConvertFrom)); + } + if (content.Contains("Sku")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku?) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku.CreateFrom); + } + if (content.Contains("InitContainer")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).InitContainer = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinition[]) content.GetValueForProperty("InitContainer",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).InitContainer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.InitContainerDefinitionTypeConverter.ConvertFrom)); + } + if (content.Contains("Extension")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).Extension = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpec[]) content.GetValueForProperty("Extension",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).Extension, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.DeploymentExtensionSpecTypeConverter.ConvertFrom)); + } + if (content.Contains("Priority")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).Priority = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority?) content.GetValueForProperty("Priority",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).Priority, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority.CreateFrom); + } + if (content.Contains("Revision")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).Revision = (int?) content.GetValueForProperty("Revision",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).Revision, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("DiagnosticLogAnalytic")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).DiagnosticLogAnalytic = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalytics) content.GetValueForProperty("DiagnosticLogAnalytic",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).DiagnosticLogAnalytic, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.LogAnalyticsTypeConverter.ConvertFrom); + } + if (content.Contains("EncryptionPropertyKeyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).EncryptionPropertyKeyName = (string) content.GetValueForProperty("EncryptionPropertyKeyName",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).EncryptionPropertyKeyName, global::System.Convert.ToString); + } + if (content.Contains("EncryptionPropertyKeyVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).EncryptionPropertyKeyVersion = (string) content.GetValueForProperty("EncryptionPropertyKeyVersion",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).EncryptionPropertyKeyVersion, global::System.Convert.ToString); + } + if (content.Contains("EncryptionPropertyIdentity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).EncryptionPropertyIdentity = (string) content.GetValueForProperty("EncryptionPropertyIdentity",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).EncryptionPropertyIdentity, global::System.Convert.ToString); + } + if (content.Contains("ConfidentialComputePropertyCcePolicy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).ConfidentialComputePropertyCcePolicy = (string) content.GetValueForProperty("ConfidentialComputePropertyCcePolicy",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).ConfidentialComputePropertyCcePolicy, global::System.Convert.ToString); + } + if (content.Contains("IPAddressPort")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).IPAddressPort = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPort[]) content.GetValueForProperty("IPAddressPort",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).IPAddressPort, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.PortTypeConverter.ConvertFrom)); + } + if (content.Contains("IPAddressType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).IPAddressType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType) content.GetValueForProperty("IPAddressType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).IPAddressType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType.CreateFrom); + } + if (content.Contains("IPAddressIP")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).IPAddressIP = (string) content.GetValueForProperty("IPAddressIP",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).IPAddressIP, global::System.Convert.ToString); + } + if (content.Contains("IPAddressDnsNameLabel")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).IPAddressDnsNameLabel = (string) content.GetValueForProperty("IPAddressDnsNameLabel",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).IPAddressDnsNameLabel, global::System.Convert.ToString); + } + if (content.Contains("IPAddressAutoGeneratedDomainNameLabelScope")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).IPAddressAutoGeneratedDomainNameLabelScope = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy?) content.GetValueForProperty("IPAddressAutoGeneratedDomainNameLabelScope",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).IPAddressAutoGeneratedDomainNameLabelScope, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy.CreateFrom); + } + if (content.Contains("IPAddressFqdn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).IPAddressFqdn = (string) content.GetValueForProperty("IPAddressFqdn",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).IPAddressFqdn, global::System.Convert.ToString); + } + if (content.Contains("LogAnalyticWorkspaceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).LogAnalyticWorkspaceId = (string) content.GetValueForProperty("LogAnalyticWorkspaceId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).LogAnalyticWorkspaceId, global::System.Convert.ToString); + } + if (content.Contains("LogAnalyticWorkspaceKey")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).LogAnalyticWorkspaceKey = (string) content.GetValueForProperty("LogAnalyticWorkspaceKey",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).LogAnalyticWorkspaceKey, global::System.Convert.ToString); + } + if (content.Contains("LogAnalyticLogType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).LogAnalyticLogType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType?) content.GetValueForProperty("LogAnalyticLogType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).LogAnalyticLogType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType.CreateFrom); + } + if (content.Contains("LogAnalyticMetadata")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).LogAnalyticMetadata = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsMetadata) content.GetValueForProperty("LogAnalyticMetadata",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).LogAnalyticMetadata, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.LogAnalyticsMetadataTypeConverter.ConvertFrom); + } + if (content.Contains("EncryptionPropertyVaultBaseUrl")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).EncryptionPropertyVaultBaseUrl = (string) content.GetValueForProperty("EncryptionPropertyVaultBaseUrl",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).EncryptionPropertyVaultBaseUrl, global::System.Convert.ToString); + } + if (content.Contains("LogAnalyticWorkspaceResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).LogAnalyticWorkspaceResourceId = (string) content.GetValueForProperty("LogAnalyticWorkspaceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).LogAnalyticWorkspaceResourceId, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ContainerGroupProfileProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGenerated) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupProfilePropertiesAutoGeneratedTypeConverter.ConvertFrom); + } + if (content.Contains("IPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).IPAddress = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddress) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).IPAddress, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPAddressTypeConverter.ConvertFrom); + } + if (content.Contains("EncryptionProperty")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).EncryptionProperty = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEncryptionProperties) content.GetValueForProperty("EncryptionProperty",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).EncryptionProperty, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.EncryptionPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Diagnostic")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).Diagnostic = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnostics) content.GetValueForProperty("Diagnostic",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).Diagnostic, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupDiagnosticsTypeConverter.ConvertFrom); + } + if (content.Contains("ConfidentialComputeProperty")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).ConfidentialComputeProperty = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfidentialComputeProperties) content.GetValueForProperty("ConfidentialComputeProperty",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).ConfidentialComputeProperty, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ConfidentialComputePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Container")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).Container = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainer[]) content.GetValueForProperty("Container",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).Container, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerTypeConverter.ConvertFrom)); + } + if (content.Contains("ImageRegistryCredentials")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).ImageRegistryCredentials = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredential[]) content.GetValueForProperty("ImageRegistryCredentials",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).ImageRegistryCredentials, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ImageRegistryCredentialTypeConverter.ConvertFrom)); + } + if (content.Contains("RestartPolicy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).RestartPolicy = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy?) content.GetValueForProperty("RestartPolicy",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).RestartPolicy, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy.CreateFrom); + } + if (content.Contains("OSType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).OSType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).OSType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes.CreateFrom); + } + if (content.Contains("Volume")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).Volume = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolume[]) content.GetValueForProperty("Volume",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).Volume, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.VolumeTypeConverter.ConvertFrom)); + } + if (content.Contains("Sku")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku?) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku.CreateFrom); + } + if (content.Contains("InitContainer")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).InitContainer = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinition[]) content.GetValueForProperty("InitContainer",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).InitContainer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.InitContainerDefinitionTypeConverter.ConvertFrom)); + } + if (content.Contains("Extension")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).Extension = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpec[]) content.GetValueForProperty("Extension",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).Extension, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.DeploymentExtensionSpecTypeConverter.ConvertFrom)); + } + if (content.Contains("Priority")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).Priority = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority?) content.GetValueForProperty("Priority",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).Priority, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority.CreateFrom); + } + if (content.Contains("Revision")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).Revision = (int?) content.GetValueForProperty("Revision",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).Revision, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("DiagnosticLogAnalytic")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).DiagnosticLogAnalytic = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalytics) content.GetValueForProperty("DiagnosticLogAnalytic",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).DiagnosticLogAnalytic, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.LogAnalyticsTypeConverter.ConvertFrom); + } + if (content.Contains("EncryptionPropertyKeyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).EncryptionPropertyKeyName = (string) content.GetValueForProperty("EncryptionPropertyKeyName",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).EncryptionPropertyKeyName, global::System.Convert.ToString); + } + if (content.Contains("EncryptionPropertyKeyVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).EncryptionPropertyKeyVersion = (string) content.GetValueForProperty("EncryptionPropertyKeyVersion",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).EncryptionPropertyKeyVersion, global::System.Convert.ToString); + } + if (content.Contains("EncryptionPropertyIdentity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).EncryptionPropertyIdentity = (string) content.GetValueForProperty("EncryptionPropertyIdentity",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).EncryptionPropertyIdentity, global::System.Convert.ToString); + } + if (content.Contains("ConfidentialComputePropertyCcePolicy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).ConfidentialComputePropertyCcePolicy = (string) content.GetValueForProperty("ConfidentialComputePropertyCcePolicy",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).ConfidentialComputePropertyCcePolicy, global::System.Convert.ToString); + } + if (content.Contains("IPAddressPort")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).IPAddressPort = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPort[]) content.GetValueForProperty("IPAddressPort",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).IPAddressPort, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.PortTypeConverter.ConvertFrom)); + } + if (content.Contains("IPAddressType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).IPAddressType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType) content.GetValueForProperty("IPAddressType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).IPAddressType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType.CreateFrom); + } + if (content.Contains("IPAddressIP")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).IPAddressIP = (string) content.GetValueForProperty("IPAddressIP",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).IPAddressIP, global::System.Convert.ToString); + } + if (content.Contains("IPAddressDnsNameLabel")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).IPAddressDnsNameLabel = (string) content.GetValueForProperty("IPAddressDnsNameLabel",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).IPAddressDnsNameLabel, global::System.Convert.ToString); + } + if (content.Contains("IPAddressAutoGeneratedDomainNameLabelScope")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).IPAddressAutoGeneratedDomainNameLabelScope = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy?) content.GetValueForProperty("IPAddressAutoGeneratedDomainNameLabelScope",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).IPAddressAutoGeneratedDomainNameLabelScope, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy.CreateFrom); + } + if (content.Contains("IPAddressFqdn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).IPAddressFqdn = (string) content.GetValueForProperty("IPAddressFqdn",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).IPAddressFqdn, global::System.Convert.ToString); + } + if (content.Contains("LogAnalyticWorkspaceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).LogAnalyticWorkspaceId = (string) content.GetValueForProperty("LogAnalyticWorkspaceId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).LogAnalyticWorkspaceId, global::System.Convert.ToString); + } + if (content.Contains("LogAnalyticWorkspaceKey")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).LogAnalyticWorkspaceKey = (string) content.GetValueForProperty("LogAnalyticWorkspaceKey",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).LogAnalyticWorkspaceKey, global::System.Convert.ToString); + } + if (content.Contains("LogAnalyticLogType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).LogAnalyticLogType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType?) content.GetValueForProperty("LogAnalyticLogType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).LogAnalyticLogType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType.CreateFrom); + } + if (content.Contains("LogAnalyticMetadata")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).LogAnalyticMetadata = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsMetadata) content.GetValueForProperty("LogAnalyticMetadata",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).LogAnalyticMetadata, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.LogAnalyticsMetadataTypeConverter.ConvertFrom); + } + if (content.Contains("EncryptionPropertyVaultBaseUrl")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).EncryptionPropertyVaultBaseUrl = (string) content.GetValueForProperty("EncryptionPropertyVaultBaseUrl",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).EncryptionPropertyVaultBaseUrl, global::System.Convert.ToString); + } + if (content.Contains("LogAnalyticWorkspaceResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).LogAnalyticWorkspaceResourceId = (string) content.GetValueForProperty("LogAnalyticWorkspaceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal)this).LogAnalyticWorkspaceResourceId, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ContainerGroupProfileProperties(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ContainerGroupProfileProperties(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// The container group profile properties + [System.ComponentModel.TypeConverter(typeof(ContainerGroupProfilePropertiesTypeConverter))] + public partial interface IContainerGroupProfileProperties + + { + + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfileProperties.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfileProperties.TypeConverter.cs new file mode 100644 index 000000000000..8cc863ee0fe0 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfileProperties.TypeConverter.cs @@ -0,0 +1,148 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ContainerGroupProfilePropertiesTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileProperties ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileProperties).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ContainerGroupProfileProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ContainerGroupProfileProperties.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ContainerGroupProfileProperties.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfileProperties.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfileProperties.cs new file mode 100644 index 000000000000..adabd5cd7846 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfileProperties.cs @@ -0,0 +1,487 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; + + /// The container group profile properties + public partial class ContainerGroupProfileProperties : + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileProperties, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal + { + + /// The base64 encoded confidential compute enforcement policy + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public string ConfidentialComputePropertyCcePolicy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)Property).ConfidentialComputePropertyCcePolicy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)Property).ConfidentialComputePropertyCcePolicy = value ?? null; } + + /// The containers within the container group. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainer[] Container { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)Property).Container; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)Property).Container = value ; } + + /// The keyvault managed identity. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public string EncryptionPropertyIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)Property).EncryptionPropertyIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)Property).EncryptionPropertyIdentity = value ?? null; } + + /// The encryption key name. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public string EncryptionPropertyKeyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)Property).EncryptionPropertyKeyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)Property).EncryptionPropertyKeyName = value ?? null; } + + /// The encryption key version. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public string EncryptionPropertyKeyVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)Property).EncryptionPropertyKeyVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)Property).EncryptionPropertyKeyVersion = value ?? null; } + + /// The keyvault base url. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public string EncryptionPropertyVaultBaseUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)Property).EncryptionPropertyVaultBaseUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)Property).EncryptionPropertyVaultBaseUrl = value ?? null; } + + /// extensions used by virtual kubelet + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpec[] Extension { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)Property).Extension; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)Property).Extension = value ?? null /* arrayOf */; } + + /// + /// The value representing the security enum. The 'Unsecure' value is the default value if not selected and means the object's + /// domain name label is not secured against subdomain takeover. The 'TenantReuse' value is the default value if selected + /// and means the object's domain name label can be reused within the same tenant. The 'SubscriptionReuse' value means the + /// object's domain name label can be reused within the same subscription. The 'ResourceGroupReuse' value means the object's + /// domain name label can be reused within the same resource group. The 'NoReuse' value means the object's domain name label + /// cannot be reused within the same resource group, subscription, or tenant. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy? IPAddressAutoGeneratedDomainNameLabelScope { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)Property).IPAddressAutoGeneratedDomainNameLabelScope; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)Property).IPAddressAutoGeneratedDomainNameLabelScope = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy)""); } + + /// The Dns name label for the IP. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public string IPAddressDnsNameLabel { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)Property).IPAddressDnsNameLabel; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)Property).IPAddressDnsNameLabel = value ?? null; } + + /// The FQDN for the IP. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public string IPAddressFqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)Property).IPAddressFqdn; } + + /// The IP exposed to the public internet. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public string IPAddressIP { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)Property).IPAddressIP; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)Property).IPAddressIP = value ?? null; } + + /// The list of ports exposed on the container group. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPort[] IPAddressPort { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)Property).IPAddressPort; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)Property).IPAddressPort = value ?? null /* arrayOf */; } + + /// Specifies if the IP is exposed to the public internet or private VNET. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType? IPAddressType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)Property).IPAddressType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)Property).IPAddressType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType)""); } + + /// The image registry credentials by which the container group is created from. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredential[] ImageRegistryCredentials { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)Property).ImageRegistryCredentials; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)Property).ImageRegistryCredentials = value ?? null /* arrayOf */; } + + /// The init containers for a container group. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinition[] InitContainer { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)Property).InitContainer; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)Property).InitContainer = value ?? null /* arrayOf */; } + + /// The log type to be used. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType? LogAnalyticLogType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)Property).LogAnalyticLogType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)Property).LogAnalyticLogType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType)""); } + + /// Metadata for log analytics. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsMetadata LogAnalyticMetadata { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)Property).LogAnalyticMetadata; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)Property).LogAnalyticMetadata = value ?? null /* model class */; } + + /// The workspace id for log analytics + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public string LogAnalyticWorkspaceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)Property).LogAnalyticWorkspaceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)Property).LogAnalyticWorkspaceId = value ?? null; } + + /// The workspace key for log analytics + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public string LogAnalyticWorkspaceKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)Property).LogAnalyticWorkspaceKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)Property).LogAnalyticWorkspaceKey = value ?? null; } + + /// The workspace resource id for log analytics + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public string LogAnalyticWorkspaceResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)Property).LogAnalyticWorkspaceResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)Property).LogAnalyticWorkspaceResourceId = value ?? null; } + + /// Internal Acessors for ConfidentialComputeProperty + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfidentialComputeProperties Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal.ConfidentialComputeProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)Property).ConfidentialComputeProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)Property).ConfidentialComputeProperty = value; } + + /// Internal Acessors for Diagnostic + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnostics Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal.Diagnostic { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)Property).Diagnostic; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)Property).Diagnostic = value; } + + /// Internal Acessors for DiagnosticLogAnalytic + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalytics Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal.DiagnosticLogAnalytic { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)Property).DiagnosticLogAnalytic; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)Property).DiagnosticLogAnalytic = value; } + + /// Internal Acessors for EncryptionProperty + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEncryptionProperties Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal.EncryptionProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)Property).EncryptionProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)Property).EncryptionProperty = value; } + + /// Internal Acessors for IPAddress + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddress Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal.IPAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)Property).IPAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)Property).IPAddress = value; } + + /// Internal Acessors for IPAddressFqdn + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal.IPAddressFqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)Property).IPAddressFqdn; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)Property).IPAddressFqdn = value; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGenerated Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupProfilePropertiesAutoGenerated()); set { {_property = value;} } } + + /// Internal Acessors for Revision + int? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesInternal.Revision { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)Property).Revision; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)Property).Revision = value; } + + /// The operating system type required by the containers in the container group. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes OSType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)Property).OSType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)Property).OSType = value ; } + + /// The priority of the container group. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority? Priority { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)Property).Priority; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)Property).Priority = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority)""); } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGenerated _property; + + /// The container group profile properties + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGenerated Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupProfilePropertiesAutoGenerated()); set => this._property = value; } + + /// + /// Restart policy for all containers within the container group. + /// - `Always` Always restart + /// - `OnFailure` Restart on failure + /// - `Never` Never restart + /// + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy? RestartPolicy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)Property).RestartPolicy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)Property).RestartPolicy = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy)""); } + + /// + /// The container group profile current revision number. This only appears in the response. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public int? Revision { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)Property).Revision; } + + /// The SKU for a container group. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku? Sku { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)Property).Sku; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)Property).Sku = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku)""); } + + /// The list of volumes that can be mounted by containers in this container group. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolume[] Volume { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)Property).Volume; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)Property).Volume = value ?? null /* arrayOf */; } + + /// Creates an new instance. + public ContainerGroupProfileProperties() + { + + } + } + /// The container group profile properties + public partial interface IContainerGroupProfileProperties : + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IJsonSerializable + { + /// The base64 encoded confidential compute enforcement policy + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The base64 encoded confidential compute enforcement policy", + SerializedName = @"ccePolicy", + PossibleTypes = new [] { typeof(string) })] + string ConfidentialComputePropertyCcePolicy { get; set; } + /// The containers within the container group. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The containers within the container group.", + SerializedName = @"containers", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainer) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainer[] Container { get; set; } + /// The keyvault managed identity. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The keyvault managed identity.", + SerializedName = @"identity", + PossibleTypes = new [] { typeof(string) })] + string EncryptionPropertyIdentity { get; set; } + /// The encryption key name. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The encryption key name.", + SerializedName = @"keyName", + PossibleTypes = new [] { typeof(string) })] + string EncryptionPropertyKeyName { get; set; } + /// The encryption key version. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The encryption key version.", + SerializedName = @"keyVersion", + PossibleTypes = new [] { typeof(string) })] + string EncryptionPropertyKeyVersion { get; set; } + /// The keyvault base url. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The keyvault base url.", + SerializedName = @"vaultBaseUrl", + PossibleTypes = new [] { typeof(string) })] + string EncryptionPropertyVaultBaseUrl { get; set; } + /// extensions used by virtual kubelet + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"extensions used by virtual kubelet", + SerializedName = @"extensions", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpec) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpec[] Extension { get; set; } + /// + /// The value representing the security enum. The 'Unsecure' value is the default value if not selected and means the object's + /// domain name label is not secured against subdomain takeover. The 'TenantReuse' value is the default value if selected + /// and means the object's domain name label can be reused within the same tenant. The 'SubscriptionReuse' value means the + /// object's domain name label can be reused within the same subscription. The 'ResourceGroupReuse' value means the object's + /// domain name label can be reused within the same resource group. The 'NoReuse' value means the object's domain name label + /// cannot be reused within the same resource group, subscription, or tenant. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The value representing the security enum. The 'Unsecure' value is the default value if not selected and means the object's domain name label is not secured against subdomain takeover. The 'TenantReuse' value is the default value if selected and means the object's domain name label can be reused within the same tenant. The 'SubscriptionReuse' value means the object's domain name label can be reused within the same subscription. The 'ResourceGroupReuse' value means the object's domain name label can be reused within the same resource group. The 'NoReuse' value means the object's domain name label cannot be reused within the same resource group, subscription, or tenant.", + SerializedName = @"autoGeneratedDomainNameLabelScope", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy? IPAddressAutoGeneratedDomainNameLabelScope { get; set; } + /// The Dns name label for the IP. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The Dns name label for the IP.", + SerializedName = @"dnsNameLabel", + PossibleTypes = new [] { typeof(string) })] + string IPAddressDnsNameLabel { get; set; } + /// The FQDN for the IP. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The FQDN for the IP.", + SerializedName = @"fqdn", + PossibleTypes = new [] { typeof(string) })] + string IPAddressFqdn { get; } + /// The IP exposed to the public internet. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The IP exposed to the public internet.", + SerializedName = @"ip", + PossibleTypes = new [] { typeof(string) })] + string IPAddressIP { get; set; } + /// The list of ports exposed on the container group. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The list of ports exposed on the container group.", + SerializedName = @"ports", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPort) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPort[] IPAddressPort { get; set; } + /// Specifies if the IP is exposed to the public internet or private VNET. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Specifies if the IP is exposed to the public internet or private VNET.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType? IPAddressType { get; set; } + /// The image registry credentials by which the container group is created from. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The image registry credentials by which the container group is created from.", + SerializedName = @"imageRegistryCredentials", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredential) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredential[] ImageRegistryCredentials { get; set; } + /// The init containers for a container group. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The init containers for a container group.", + SerializedName = @"initContainers", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinition) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinition[] InitContainer { get; set; } + /// The log type to be used. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The log type to be used.", + SerializedName = @"logType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType? LogAnalyticLogType { get; set; } + /// Metadata for log analytics. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Metadata for log analytics.", + SerializedName = @"metadata", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsMetadata) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsMetadata LogAnalyticMetadata { get; set; } + /// The workspace id for log analytics + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The workspace id for log analytics", + SerializedName = @"workspaceId", + PossibleTypes = new [] { typeof(string) })] + string LogAnalyticWorkspaceId { get; set; } + /// The workspace key for log analytics + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The workspace key for log analytics", + SerializedName = @"workspaceKey", + PossibleTypes = new [] { typeof(string) })] + string LogAnalyticWorkspaceKey { get; set; } + /// The workspace resource id for log analytics + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The workspace resource id for log analytics", + SerializedName = @"workspaceResourceId", + PossibleTypes = new [] { typeof(string) })] + string LogAnalyticWorkspaceResourceId { get; set; } + /// The operating system type required by the containers in the container group. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The operating system type required by the containers in the container group.", + SerializedName = @"osType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes OSType { get; set; } + /// The priority of the container group. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The priority of the container group.", + SerializedName = @"priority", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority? Priority { get; set; } + /// + /// Restart policy for all containers within the container group. + /// - `Always` Always restart + /// - `OnFailure` Restart on failure + /// - `Never` Never restart + /// + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Restart policy for all containers within the container group. + - `Always` Always restart + - `OnFailure` Restart on failure + - `Never` Never restart + ", + SerializedName = @"restartPolicy", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy? RestartPolicy { get; set; } + /// + /// The container group profile current revision number. This only appears in the response. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The container group profile current revision number. This only appears in the response.", + SerializedName = @"revision", + PossibleTypes = new [] { typeof(int) })] + int? Revision { get; } + /// The SKU for a container group. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The SKU for a container group.", + SerializedName = @"sku", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku? Sku { get; set; } + /// The list of volumes that can be mounted by containers in this container group. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The list of volumes that can be mounted by containers in this container group.", + SerializedName = @"volumes", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolume) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolume[] Volume { get; set; } + + } + /// The container group profile properties + internal partial interface IContainerGroupProfilePropertiesInternal + + { + /// The properties for confidential container group + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfidentialComputeProperties ConfidentialComputeProperty { get; set; } + /// The base64 encoded confidential compute enforcement policy + string ConfidentialComputePropertyCcePolicy { get; set; } + /// The containers within the container group. + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainer[] Container { get; set; } + /// The diagnostic information for a container group. + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnostics Diagnostic { get; set; } + /// Container group log analytics information. + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalytics DiagnosticLogAnalytic { get; set; } + /// The encryption properties for a container group. + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEncryptionProperties EncryptionProperty { get; set; } + /// The keyvault managed identity. + string EncryptionPropertyIdentity { get; set; } + /// The encryption key name. + string EncryptionPropertyKeyName { get; set; } + /// The encryption key version. + string EncryptionPropertyKeyVersion { get; set; } + /// The keyvault base url. + string EncryptionPropertyVaultBaseUrl { get; set; } + /// extensions used by virtual kubelet + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpec[] Extension { get; set; } + /// The IP address type of the container group. + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddress IPAddress { get; set; } + /// + /// The value representing the security enum. The 'Unsecure' value is the default value if not selected and means the object's + /// domain name label is not secured against subdomain takeover. The 'TenantReuse' value is the default value if selected + /// and means the object's domain name label can be reused within the same tenant. The 'SubscriptionReuse' value means the + /// object's domain name label can be reused within the same subscription. The 'ResourceGroupReuse' value means the object's + /// domain name label can be reused within the same resource group. The 'NoReuse' value means the object's domain name label + /// cannot be reused within the same resource group, subscription, or tenant. + /// + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy? IPAddressAutoGeneratedDomainNameLabelScope { get; set; } + /// The Dns name label for the IP. + string IPAddressDnsNameLabel { get; set; } + /// The FQDN for the IP. + string IPAddressFqdn { get; set; } + /// The IP exposed to the public internet. + string IPAddressIP { get; set; } + /// The list of ports exposed on the container group. + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPort[] IPAddressPort { get; set; } + /// Specifies if the IP is exposed to the public internet or private VNET. + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType? IPAddressType { get; set; } + /// The image registry credentials by which the container group is created from. + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredential[] ImageRegistryCredentials { get; set; } + /// The init containers for a container group. + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinition[] InitContainer { get; set; } + /// The log type to be used. + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType? LogAnalyticLogType { get; set; } + /// Metadata for log analytics. + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsMetadata LogAnalyticMetadata { get; set; } + /// The workspace id for log analytics + string LogAnalyticWorkspaceId { get; set; } + /// The workspace key for log analytics + string LogAnalyticWorkspaceKey { get; set; } + /// The workspace resource id for log analytics + string LogAnalyticWorkspaceResourceId { get; set; } + /// The operating system type required by the containers in the container group. + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes OSType { get; set; } + /// The priority of the container group. + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority? Priority { get; set; } + /// The container group profile properties + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGenerated Property { get; set; } + /// + /// Restart policy for all containers within the container group. + /// - `Always` Always restart + /// - `OnFailure` Restart on failure + /// - `Never` Never restart + /// + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy? RestartPolicy { get; set; } + /// + /// The container group profile current revision number. This only appears in the response. + /// + int? Revision { get; set; } + /// The SKU for a container group. + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku? Sku { get; set; } + /// The list of volumes that can be mounted by containers in this container group. + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolume[] Volume { get; set; } + + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfileProperties.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfileProperties.json.cs new file mode 100644 index 000000000000..efe6ec12c4dd --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfileProperties.json.cs @@ -0,0 +1,108 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; + + /// The container group profile properties + public partial class ContainerGroupProfileProperties + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject instance to deserialize from. + internal ContainerGroupProfileProperties(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupProfilePropertiesAutoGenerated.FromJson(__jsonProperties) : Property;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileProperties. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileProperties. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new ContainerGroupProfileProperties(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfilePropertiesAutoGenerated.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfilePropertiesAutoGenerated.PowerShell.cs new file mode 100644 index 000000000000..9c4988b420db --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfilePropertiesAutoGenerated.PowerShell.cs @@ -0,0 +1,409 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; + + /// The container group profile properties + [System.ComponentModel.TypeConverter(typeof(ContainerGroupProfilePropertiesAutoGeneratedTypeConverter))] + public partial class ContainerGroupProfilePropertiesAutoGenerated + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ContainerGroupProfilePropertiesAutoGenerated(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("IPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).IPAddress = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddress) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).IPAddress, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPAddressTypeConverter.ConvertFrom); + } + if (content.Contains("Diagnostic")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).Diagnostic = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnostics) content.GetValueForProperty("Diagnostic",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).Diagnostic, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupDiagnosticsTypeConverter.ConvertFrom); + } + if (content.Contains("EncryptionProperty")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).EncryptionProperty = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEncryptionProperties) content.GetValueForProperty("EncryptionProperty",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).EncryptionProperty, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.EncryptionPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("ConfidentialComputeProperty")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).ConfidentialComputeProperty = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfidentialComputeProperties) content.GetValueForProperty("ConfidentialComputeProperty",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).ConfidentialComputeProperty, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ConfidentialComputePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Container")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).Container = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainer[]) content.GetValueForProperty("Container",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).Container, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerTypeConverter.ConvertFrom)); + } + if (content.Contains("ImageRegistryCredentials")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).ImageRegistryCredentials = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredential[]) content.GetValueForProperty("ImageRegistryCredentials",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).ImageRegistryCredentials, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ImageRegistryCredentialTypeConverter.ConvertFrom)); + } + if (content.Contains("RestartPolicy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).RestartPolicy = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy?) content.GetValueForProperty("RestartPolicy",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).RestartPolicy, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy.CreateFrom); + } + if (content.Contains("OSType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).OSType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).OSType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes.CreateFrom); + } + if (content.Contains("Volume")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).Volume = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolume[]) content.GetValueForProperty("Volume",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).Volume, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.VolumeTypeConverter.ConvertFrom)); + } + if (content.Contains("Sku")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku?) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku.CreateFrom); + } + if (content.Contains("InitContainer")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).InitContainer = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinition[]) content.GetValueForProperty("InitContainer",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).InitContainer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.InitContainerDefinitionTypeConverter.ConvertFrom)); + } + if (content.Contains("Extension")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).Extension = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpec[]) content.GetValueForProperty("Extension",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).Extension, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.DeploymentExtensionSpecTypeConverter.ConvertFrom)); + } + if (content.Contains("Priority")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).Priority = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority?) content.GetValueForProperty("Priority",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).Priority, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority.CreateFrom); + } + if (content.Contains("Revision")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).Revision = (int?) content.GetValueForProperty("Revision",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).Revision, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("DiagnosticLogAnalytic")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).DiagnosticLogAnalytic = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalytics) content.GetValueForProperty("DiagnosticLogAnalytic",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).DiagnosticLogAnalytic, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.LogAnalyticsTypeConverter.ConvertFrom); + } + if (content.Contains("EncryptionPropertyKeyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).EncryptionPropertyKeyName = (string) content.GetValueForProperty("EncryptionPropertyKeyName",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).EncryptionPropertyKeyName, global::System.Convert.ToString); + } + if (content.Contains("EncryptionPropertyKeyVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).EncryptionPropertyKeyVersion = (string) content.GetValueForProperty("EncryptionPropertyKeyVersion",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).EncryptionPropertyKeyVersion, global::System.Convert.ToString); + } + if (content.Contains("EncryptionPropertyIdentity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).EncryptionPropertyIdentity = (string) content.GetValueForProperty("EncryptionPropertyIdentity",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).EncryptionPropertyIdentity, global::System.Convert.ToString); + } + if (content.Contains("ConfidentialComputePropertyCcePolicy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).ConfidentialComputePropertyCcePolicy = (string) content.GetValueForProperty("ConfidentialComputePropertyCcePolicy",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).ConfidentialComputePropertyCcePolicy, global::System.Convert.ToString); + } + if (content.Contains("IPAddressPort")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).IPAddressPort = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPort[]) content.GetValueForProperty("IPAddressPort",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).IPAddressPort, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.PortTypeConverter.ConvertFrom)); + } + if (content.Contains("IPAddressType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).IPAddressType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType) content.GetValueForProperty("IPAddressType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).IPAddressType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType.CreateFrom); + } + if (content.Contains("IPAddressIP")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).IPAddressIP = (string) content.GetValueForProperty("IPAddressIP",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).IPAddressIP, global::System.Convert.ToString); + } + if (content.Contains("IPAddressDnsNameLabel")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).IPAddressDnsNameLabel = (string) content.GetValueForProperty("IPAddressDnsNameLabel",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).IPAddressDnsNameLabel, global::System.Convert.ToString); + } + if (content.Contains("IPAddressAutoGeneratedDomainNameLabelScope")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).IPAddressAutoGeneratedDomainNameLabelScope = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy?) content.GetValueForProperty("IPAddressAutoGeneratedDomainNameLabelScope",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).IPAddressAutoGeneratedDomainNameLabelScope, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy.CreateFrom); + } + if (content.Contains("IPAddressFqdn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).IPAddressFqdn = (string) content.GetValueForProperty("IPAddressFqdn",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).IPAddressFqdn, global::System.Convert.ToString); + } + if (content.Contains("LogAnalyticWorkspaceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).LogAnalyticWorkspaceId = (string) content.GetValueForProperty("LogAnalyticWorkspaceId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).LogAnalyticWorkspaceId, global::System.Convert.ToString); + } + if (content.Contains("LogAnalyticWorkspaceKey")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).LogAnalyticWorkspaceKey = (string) content.GetValueForProperty("LogAnalyticWorkspaceKey",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).LogAnalyticWorkspaceKey, global::System.Convert.ToString); + } + if (content.Contains("LogAnalyticLogType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).LogAnalyticLogType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType?) content.GetValueForProperty("LogAnalyticLogType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).LogAnalyticLogType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType.CreateFrom); + } + if (content.Contains("LogAnalyticMetadata")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).LogAnalyticMetadata = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsMetadata) content.GetValueForProperty("LogAnalyticMetadata",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).LogAnalyticMetadata, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.LogAnalyticsMetadataTypeConverter.ConvertFrom); + } + if (content.Contains("EncryptionPropertyVaultBaseUrl")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).EncryptionPropertyVaultBaseUrl = (string) content.GetValueForProperty("EncryptionPropertyVaultBaseUrl",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).EncryptionPropertyVaultBaseUrl, global::System.Convert.ToString); + } + if (content.Contains("LogAnalyticWorkspaceResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).LogAnalyticWorkspaceResourceId = (string) content.GetValueForProperty("LogAnalyticWorkspaceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).LogAnalyticWorkspaceResourceId, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ContainerGroupProfilePropertiesAutoGenerated(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("IPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).IPAddress = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddress) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).IPAddress, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPAddressTypeConverter.ConvertFrom); + } + if (content.Contains("Diagnostic")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).Diagnostic = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnostics) content.GetValueForProperty("Diagnostic",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).Diagnostic, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupDiagnosticsTypeConverter.ConvertFrom); + } + if (content.Contains("EncryptionProperty")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).EncryptionProperty = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEncryptionProperties) content.GetValueForProperty("EncryptionProperty",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).EncryptionProperty, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.EncryptionPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("ConfidentialComputeProperty")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).ConfidentialComputeProperty = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfidentialComputeProperties) content.GetValueForProperty("ConfidentialComputeProperty",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).ConfidentialComputeProperty, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ConfidentialComputePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Container")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).Container = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainer[]) content.GetValueForProperty("Container",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).Container, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerTypeConverter.ConvertFrom)); + } + if (content.Contains("ImageRegistryCredentials")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).ImageRegistryCredentials = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredential[]) content.GetValueForProperty("ImageRegistryCredentials",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).ImageRegistryCredentials, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ImageRegistryCredentialTypeConverter.ConvertFrom)); + } + if (content.Contains("RestartPolicy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).RestartPolicy = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy?) content.GetValueForProperty("RestartPolicy",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).RestartPolicy, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy.CreateFrom); + } + if (content.Contains("OSType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).OSType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).OSType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes.CreateFrom); + } + if (content.Contains("Volume")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).Volume = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolume[]) content.GetValueForProperty("Volume",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).Volume, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.VolumeTypeConverter.ConvertFrom)); + } + if (content.Contains("Sku")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku?) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku.CreateFrom); + } + if (content.Contains("InitContainer")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).InitContainer = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinition[]) content.GetValueForProperty("InitContainer",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).InitContainer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.InitContainerDefinitionTypeConverter.ConvertFrom)); + } + if (content.Contains("Extension")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).Extension = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpec[]) content.GetValueForProperty("Extension",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).Extension, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.DeploymentExtensionSpecTypeConverter.ConvertFrom)); + } + if (content.Contains("Priority")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).Priority = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority?) content.GetValueForProperty("Priority",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).Priority, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority.CreateFrom); + } + if (content.Contains("Revision")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).Revision = (int?) content.GetValueForProperty("Revision",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).Revision, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("DiagnosticLogAnalytic")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).DiagnosticLogAnalytic = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalytics) content.GetValueForProperty("DiagnosticLogAnalytic",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).DiagnosticLogAnalytic, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.LogAnalyticsTypeConverter.ConvertFrom); + } + if (content.Contains("EncryptionPropertyKeyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).EncryptionPropertyKeyName = (string) content.GetValueForProperty("EncryptionPropertyKeyName",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).EncryptionPropertyKeyName, global::System.Convert.ToString); + } + if (content.Contains("EncryptionPropertyKeyVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).EncryptionPropertyKeyVersion = (string) content.GetValueForProperty("EncryptionPropertyKeyVersion",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).EncryptionPropertyKeyVersion, global::System.Convert.ToString); + } + if (content.Contains("EncryptionPropertyIdentity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).EncryptionPropertyIdentity = (string) content.GetValueForProperty("EncryptionPropertyIdentity",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).EncryptionPropertyIdentity, global::System.Convert.ToString); + } + if (content.Contains("ConfidentialComputePropertyCcePolicy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).ConfidentialComputePropertyCcePolicy = (string) content.GetValueForProperty("ConfidentialComputePropertyCcePolicy",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).ConfidentialComputePropertyCcePolicy, global::System.Convert.ToString); + } + if (content.Contains("IPAddressPort")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).IPAddressPort = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPort[]) content.GetValueForProperty("IPAddressPort",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).IPAddressPort, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.PortTypeConverter.ConvertFrom)); + } + if (content.Contains("IPAddressType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).IPAddressType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType) content.GetValueForProperty("IPAddressType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).IPAddressType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType.CreateFrom); + } + if (content.Contains("IPAddressIP")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).IPAddressIP = (string) content.GetValueForProperty("IPAddressIP",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).IPAddressIP, global::System.Convert.ToString); + } + if (content.Contains("IPAddressDnsNameLabel")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).IPAddressDnsNameLabel = (string) content.GetValueForProperty("IPAddressDnsNameLabel",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).IPAddressDnsNameLabel, global::System.Convert.ToString); + } + if (content.Contains("IPAddressAutoGeneratedDomainNameLabelScope")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).IPAddressAutoGeneratedDomainNameLabelScope = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy?) content.GetValueForProperty("IPAddressAutoGeneratedDomainNameLabelScope",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).IPAddressAutoGeneratedDomainNameLabelScope, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy.CreateFrom); + } + if (content.Contains("IPAddressFqdn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).IPAddressFqdn = (string) content.GetValueForProperty("IPAddressFqdn",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).IPAddressFqdn, global::System.Convert.ToString); + } + if (content.Contains("LogAnalyticWorkspaceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).LogAnalyticWorkspaceId = (string) content.GetValueForProperty("LogAnalyticWorkspaceId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).LogAnalyticWorkspaceId, global::System.Convert.ToString); + } + if (content.Contains("LogAnalyticWorkspaceKey")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).LogAnalyticWorkspaceKey = (string) content.GetValueForProperty("LogAnalyticWorkspaceKey",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).LogAnalyticWorkspaceKey, global::System.Convert.ToString); + } + if (content.Contains("LogAnalyticLogType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).LogAnalyticLogType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType?) content.GetValueForProperty("LogAnalyticLogType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).LogAnalyticLogType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType.CreateFrom); + } + if (content.Contains("LogAnalyticMetadata")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).LogAnalyticMetadata = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsMetadata) content.GetValueForProperty("LogAnalyticMetadata",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).LogAnalyticMetadata, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.LogAnalyticsMetadataTypeConverter.ConvertFrom); + } + if (content.Contains("EncryptionPropertyVaultBaseUrl")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).EncryptionPropertyVaultBaseUrl = (string) content.GetValueForProperty("EncryptionPropertyVaultBaseUrl",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).EncryptionPropertyVaultBaseUrl, global::System.Convert.ToString); + } + if (content.Contains("LogAnalyticWorkspaceResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).LogAnalyticWorkspaceResourceId = (string) content.GetValueForProperty("LogAnalyticWorkspaceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal)this).LogAnalyticWorkspaceResourceId, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGenerated DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ContainerGroupProfilePropertiesAutoGenerated(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGenerated DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ContainerGroupProfilePropertiesAutoGenerated(content); + } + + /// + /// Creates a new instance of , deserializing the content from + /// a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// + /// an instance of the model class. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGenerated FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// The container group profile properties + [System.ComponentModel.TypeConverter(typeof(ContainerGroupProfilePropertiesAutoGeneratedTypeConverter))] + public partial interface IContainerGroupProfilePropertiesAutoGenerated + + { + + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfilePropertiesAutoGenerated.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfilePropertiesAutoGenerated.TypeConverter.cs new file mode 100644 index 000000000000..99bd7b3bcfdc --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfilePropertiesAutoGenerated.TypeConverter.cs @@ -0,0 +1,151 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ContainerGroupProfilePropertiesAutoGeneratedTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, + /// otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGenerated ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGenerated).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ContainerGroupProfilePropertiesAutoGenerated.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ContainerGroupProfilePropertiesAutoGenerated.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ContainerGroupProfilePropertiesAutoGenerated.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfilePropertiesAutoGenerated.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfilePropertiesAutoGenerated.cs new file mode 100644 index 000000000000..c10f3fe2bab2 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfilePropertiesAutoGenerated.cs @@ -0,0 +1,535 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; + + /// The container group profile properties + public partial class ContainerGroupProfilePropertiesAutoGenerated : + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGenerated, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfidentialComputeProperties _confidentialComputeProperty; + + /// The properties for confidential container group + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfidentialComputeProperties ConfidentialComputeProperty { get => (this._confidentialComputeProperty = this._confidentialComputeProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ConfidentialComputeProperties()); set => this._confidentialComputeProperty = value; } + + /// The base64 encoded confidential compute enforcement policy + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public string ConfidentialComputePropertyCcePolicy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfidentialComputePropertiesInternal)ConfidentialComputeProperty).CcePolicy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfidentialComputePropertiesInternal)ConfidentialComputeProperty).CcePolicy = value ?? null; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainer[] _container; + + /// The containers within the container group. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainer[] Container { get => this._container; set => this._container = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnostics _diagnostic; + + /// The diagnostic information for a container group. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnostics Diagnostic { get => (this._diagnostic = this._diagnostic ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupDiagnostics()); set => this._diagnostic = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEncryptionProperties _encryptionProperty; + + /// The encryption properties for a container group. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEncryptionProperties EncryptionProperty { get => (this._encryptionProperty = this._encryptionProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.EncryptionProperties()); set => this._encryptionProperty = value; } + + /// The keyvault managed identity. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public string EncryptionPropertyIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEncryptionPropertiesInternal)EncryptionProperty).Identity; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEncryptionPropertiesInternal)EncryptionProperty).Identity = value ?? null; } + + /// The encryption key name. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public string EncryptionPropertyKeyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEncryptionPropertiesInternal)EncryptionProperty).KeyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEncryptionPropertiesInternal)EncryptionProperty).KeyName = value ?? null; } + + /// The encryption key version. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public string EncryptionPropertyKeyVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEncryptionPropertiesInternal)EncryptionProperty).KeyVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEncryptionPropertiesInternal)EncryptionProperty).KeyVersion = value ?? null; } + + /// The keyvault base url. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public string EncryptionPropertyVaultBaseUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEncryptionPropertiesInternal)EncryptionProperty).VaultBaseUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEncryptionPropertiesInternal)EncryptionProperty).VaultBaseUrl = value ?? null; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpec[] _extension; + + /// extensions used by virtual kubelet + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpec[] Extension { get => this._extension; set => this._extension = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddress _iPAddress; + + /// The IP address type of the container group. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddress IPAddress { get => (this._iPAddress = this._iPAddress ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPAddress()); set => this._iPAddress = value; } + + /// + /// The value representing the security enum. The 'Unsecure' value is the default value if not selected and means the object's + /// domain name label is not secured against subdomain takeover. The 'TenantReuse' value is the default value if selected + /// and means the object's domain name label can be reused within the same tenant. The 'SubscriptionReuse' value means the + /// object's domain name label can be reused within the same subscription. The 'ResourceGroupReuse' value means the object's + /// domain name label can be reused within the same resource group. The 'NoReuse' value means the object's domain name label + /// cannot be reused within the same resource group, subscription, or tenant. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy? IPAddressAutoGeneratedDomainNameLabelScope { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddressInternal)IPAddress).AutoGeneratedDomainNameLabelScope; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddressInternal)IPAddress).AutoGeneratedDomainNameLabelScope = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy)""); } + + /// The Dns name label for the IP. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public string IPAddressDnsNameLabel { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddressInternal)IPAddress).DnsNameLabel; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddressInternal)IPAddress).DnsNameLabel = value ?? null; } + + /// The FQDN for the IP. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public string IPAddressFqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddressInternal)IPAddress).Fqdn; } + + /// The IP exposed to the public internet. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public string IPAddressIP { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddressInternal)IPAddress).IP; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddressInternal)IPAddress).IP = value ?? null; } + + /// The list of ports exposed on the container group. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPort[] IPAddressPort { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddressInternal)IPAddress).Port; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddressInternal)IPAddress).Port = value ?? null /* arrayOf */; } + + /// Specifies if the IP is exposed to the public internet or private VNET. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType? IPAddressType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddressInternal)IPAddress).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddressInternal)IPAddress).Type = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType)""); } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredential[] _imageRegistryCredentials; + + /// The image registry credentials by which the container group is created from. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredential[] ImageRegistryCredentials { get => this._imageRegistryCredentials; set => this._imageRegistryCredentials = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinition[] _initContainer; + + /// The init containers for a container group. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinition[] InitContainer { get => this._initContainer; set => this._initContainer = value; } + + /// The log type to be used. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType? LogAnalyticLogType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnosticsInternal)Diagnostic).LogAnalyticLogType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnosticsInternal)Diagnostic).LogAnalyticLogType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType)""); } + + /// Metadata for log analytics. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsMetadata LogAnalyticMetadata { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnosticsInternal)Diagnostic).LogAnalyticMetadata; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnosticsInternal)Diagnostic).LogAnalyticMetadata = value ?? null /* model class */; } + + /// The workspace id for log analytics + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public string LogAnalyticWorkspaceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnosticsInternal)Diagnostic).LogAnalyticWorkspaceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnosticsInternal)Diagnostic).LogAnalyticWorkspaceId = value ?? null; } + + /// The workspace key for log analytics + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public string LogAnalyticWorkspaceKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnosticsInternal)Diagnostic).LogAnalyticWorkspaceKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnosticsInternal)Diagnostic).LogAnalyticWorkspaceKey = value ?? null; } + + /// The workspace resource id for log analytics + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public string LogAnalyticWorkspaceResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnosticsInternal)Diagnostic).LogAnalyticWorkspaceResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnosticsInternal)Diagnostic).LogAnalyticWorkspaceResourceId = value ?? null; } + + /// Internal Acessors for ConfidentialComputeProperty + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfidentialComputeProperties Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal.ConfidentialComputeProperty { get => (this._confidentialComputeProperty = this._confidentialComputeProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ConfidentialComputeProperties()); set { {_confidentialComputeProperty = value;} } } + + /// Internal Acessors for Diagnostic + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnostics Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal.Diagnostic { get => (this._diagnostic = this._diagnostic ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupDiagnostics()); set { {_diagnostic = value;} } } + + /// Internal Acessors for DiagnosticLogAnalytic + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalytics Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal.DiagnosticLogAnalytic { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnosticsInternal)Diagnostic).LogAnalytic; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnosticsInternal)Diagnostic).LogAnalytic = value; } + + /// Internal Acessors for EncryptionProperty + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEncryptionProperties Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal.EncryptionProperty { get => (this._encryptionProperty = this._encryptionProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.EncryptionProperties()); set { {_encryptionProperty = value;} } } + + /// Internal Acessors for IPAddress + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddress Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal.IPAddress { get => (this._iPAddress = this._iPAddress ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPAddress()); set { {_iPAddress = value;} } } + + /// Internal Acessors for IPAddressFqdn + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal.IPAddressFqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddressInternal)IPAddress).Fqdn; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddressInternal)IPAddress).Fqdn = value; } + + /// Internal Acessors for Revision + int? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGeneratedInternal.Revision { get => this._revision; set { {_revision = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes _oSType; + + /// The operating system type required by the containers in the container group. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes OSType { get => this._oSType; set => this._oSType = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority? _priority; + + /// The priority of the container group. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority? Priority { get => this._priority; set => this._priority = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy? _restartPolicy; + + /// + /// Restart policy for all containers within the container group. + /// - `Always` Always restart + /// - `OnFailure` Restart on failure + /// - `Never` Never restart + /// + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy? RestartPolicy { get => this._restartPolicy; set => this._restartPolicy = value; } + + /// Backing field for property. + private int? _revision; + + /// + /// The container group profile current revision number. This only appears in the response. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] + public int? Revision { get => this._revision; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku? _sku; + + /// The SKU for a container group. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku? Sku { get => this._sku; set => this._sku = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolume[] _volume; + + /// The list of volumes that can be mounted by containers in this container group. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolume[] Volume { get => this._volume; set => this._volume = value; } + + /// + /// Creates an new instance. + /// + public ContainerGroupProfilePropertiesAutoGenerated() + { + + } + } + /// The container group profile properties + public partial interface IContainerGroupProfilePropertiesAutoGenerated : + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IJsonSerializable + { + /// The base64 encoded confidential compute enforcement policy + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The base64 encoded confidential compute enforcement policy", + SerializedName = @"ccePolicy", + PossibleTypes = new [] { typeof(string) })] + string ConfidentialComputePropertyCcePolicy { get; set; } + /// The containers within the container group. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The containers within the container group.", + SerializedName = @"containers", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainer) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainer[] Container { get; set; } + /// The keyvault managed identity. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The keyvault managed identity.", + SerializedName = @"identity", + PossibleTypes = new [] { typeof(string) })] + string EncryptionPropertyIdentity { get; set; } + /// The encryption key name. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The encryption key name.", + SerializedName = @"keyName", + PossibleTypes = new [] { typeof(string) })] + string EncryptionPropertyKeyName { get; set; } + /// The encryption key version. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The encryption key version.", + SerializedName = @"keyVersion", + PossibleTypes = new [] { typeof(string) })] + string EncryptionPropertyKeyVersion { get; set; } + /// The keyvault base url. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The keyvault base url.", + SerializedName = @"vaultBaseUrl", + PossibleTypes = new [] { typeof(string) })] + string EncryptionPropertyVaultBaseUrl { get; set; } + /// extensions used by virtual kubelet + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"extensions used by virtual kubelet", + SerializedName = @"extensions", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpec) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpec[] Extension { get; set; } + /// + /// The value representing the security enum. The 'Unsecure' value is the default value if not selected and means the object's + /// domain name label is not secured against subdomain takeover. The 'TenantReuse' value is the default value if selected + /// and means the object's domain name label can be reused within the same tenant. The 'SubscriptionReuse' value means the + /// object's domain name label can be reused within the same subscription. The 'ResourceGroupReuse' value means the object's + /// domain name label can be reused within the same resource group. The 'NoReuse' value means the object's domain name label + /// cannot be reused within the same resource group, subscription, or tenant. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The value representing the security enum. The 'Unsecure' value is the default value if not selected and means the object's domain name label is not secured against subdomain takeover. The 'TenantReuse' value is the default value if selected and means the object's domain name label can be reused within the same tenant. The 'SubscriptionReuse' value means the object's domain name label can be reused within the same subscription. The 'ResourceGroupReuse' value means the object's domain name label can be reused within the same resource group. The 'NoReuse' value means the object's domain name label cannot be reused within the same resource group, subscription, or tenant.", + SerializedName = @"autoGeneratedDomainNameLabelScope", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy? IPAddressAutoGeneratedDomainNameLabelScope { get; set; } + /// The Dns name label for the IP. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The Dns name label for the IP.", + SerializedName = @"dnsNameLabel", + PossibleTypes = new [] { typeof(string) })] + string IPAddressDnsNameLabel { get; set; } + /// The FQDN for the IP. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The FQDN for the IP.", + SerializedName = @"fqdn", + PossibleTypes = new [] { typeof(string) })] + string IPAddressFqdn { get; } + /// The IP exposed to the public internet. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The IP exposed to the public internet.", + SerializedName = @"ip", + PossibleTypes = new [] { typeof(string) })] + string IPAddressIP { get; set; } + /// The list of ports exposed on the container group. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The list of ports exposed on the container group.", + SerializedName = @"ports", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPort) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPort[] IPAddressPort { get; set; } + /// Specifies if the IP is exposed to the public internet or private VNET. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Specifies if the IP is exposed to the public internet or private VNET.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType? IPAddressType { get; set; } + /// The image registry credentials by which the container group is created from. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The image registry credentials by which the container group is created from.", + SerializedName = @"imageRegistryCredentials", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredential) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredential[] ImageRegistryCredentials { get; set; } + /// The init containers for a container group. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The init containers for a container group.", + SerializedName = @"initContainers", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinition) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinition[] InitContainer { get; set; } + /// The log type to be used. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The log type to be used.", + SerializedName = @"logType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType? LogAnalyticLogType { get; set; } + /// Metadata for log analytics. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Metadata for log analytics.", + SerializedName = @"metadata", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsMetadata) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsMetadata LogAnalyticMetadata { get; set; } + /// The workspace id for log analytics + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The workspace id for log analytics", + SerializedName = @"workspaceId", + PossibleTypes = new [] { typeof(string) })] + string LogAnalyticWorkspaceId { get; set; } + /// The workspace key for log analytics + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The workspace key for log analytics", + SerializedName = @"workspaceKey", + PossibleTypes = new [] { typeof(string) })] + string LogAnalyticWorkspaceKey { get; set; } + /// The workspace resource id for log analytics + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The workspace resource id for log analytics", + SerializedName = @"workspaceResourceId", + PossibleTypes = new [] { typeof(string) })] + string LogAnalyticWorkspaceResourceId { get; set; } + /// The operating system type required by the containers in the container group. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The operating system type required by the containers in the container group.", + SerializedName = @"osType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes OSType { get; set; } + /// The priority of the container group. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The priority of the container group.", + SerializedName = @"priority", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority? Priority { get; set; } + /// + /// Restart policy for all containers within the container group. + /// - `Always` Always restart + /// - `OnFailure` Restart on failure + /// - `Never` Never restart + /// + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Restart policy for all containers within the container group. + - `Always` Always restart + - `OnFailure` Restart on failure + - `Never` Never restart + ", + SerializedName = @"restartPolicy", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy? RestartPolicy { get; set; } + /// + /// The container group profile current revision number. This only appears in the response. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The container group profile current revision number. This only appears in the response.", + SerializedName = @"revision", + PossibleTypes = new [] { typeof(int) })] + int? Revision { get; } + /// The SKU for a container group. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The SKU for a container group.", + SerializedName = @"sku", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku? Sku { get; set; } + /// The list of volumes that can be mounted by containers in this container group. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The list of volumes that can be mounted by containers in this container group.", + SerializedName = @"volumes", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolume) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolume[] Volume { get; set; } + + } + /// The container group profile properties + internal partial interface IContainerGroupProfilePropertiesAutoGeneratedInternal + + { + /// The properties for confidential container group + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfidentialComputeProperties ConfidentialComputeProperty { get; set; } + /// The base64 encoded confidential compute enforcement policy + string ConfidentialComputePropertyCcePolicy { get; set; } + /// The containers within the container group. + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainer[] Container { get; set; } + /// The diagnostic information for a container group. + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnostics Diagnostic { get; set; } + /// Container group log analytics information. + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalytics DiagnosticLogAnalytic { get; set; } + /// The encryption properties for a container group. + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEncryptionProperties EncryptionProperty { get; set; } + /// The keyvault managed identity. + string EncryptionPropertyIdentity { get; set; } + /// The encryption key name. + string EncryptionPropertyKeyName { get; set; } + /// The encryption key version. + string EncryptionPropertyKeyVersion { get; set; } + /// The keyvault base url. + string EncryptionPropertyVaultBaseUrl { get; set; } + /// extensions used by virtual kubelet + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpec[] Extension { get; set; } + /// The IP address type of the container group. + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddress IPAddress { get; set; } + /// + /// The value representing the security enum. The 'Unsecure' value is the default value if not selected and means the object's + /// domain name label is not secured against subdomain takeover. The 'TenantReuse' value is the default value if selected + /// and means the object's domain name label can be reused within the same tenant. The 'SubscriptionReuse' value means the + /// object's domain name label can be reused within the same subscription. The 'ResourceGroupReuse' value means the object's + /// domain name label can be reused within the same resource group. The 'NoReuse' value means the object's domain name label + /// cannot be reused within the same resource group, subscription, or tenant. + /// + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy? IPAddressAutoGeneratedDomainNameLabelScope { get; set; } + /// The Dns name label for the IP. + string IPAddressDnsNameLabel { get; set; } + /// The FQDN for the IP. + string IPAddressFqdn { get; set; } + /// The IP exposed to the public internet. + string IPAddressIP { get; set; } + /// The list of ports exposed on the container group. + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPort[] IPAddressPort { get; set; } + /// Specifies if the IP is exposed to the public internet or private VNET. + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType? IPAddressType { get; set; } + /// The image registry credentials by which the container group is created from. + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredential[] ImageRegistryCredentials { get; set; } + /// The init containers for a container group. + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinition[] InitContainer { get; set; } + /// The log type to be used. + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType? LogAnalyticLogType { get; set; } + /// Metadata for log analytics. + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsMetadata LogAnalyticMetadata { get; set; } + /// The workspace id for log analytics + string LogAnalyticWorkspaceId { get; set; } + /// The workspace key for log analytics + string LogAnalyticWorkspaceKey { get; set; } + /// The workspace resource id for log analytics + string LogAnalyticWorkspaceResourceId { get; set; } + /// The operating system type required by the containers in the container group. + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes OSType { get; set; } + /// The priority of the container group. + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority? Priority { get; set; } + /// + /// Restart policy for all containers within the container group. + /// - `Always` Always restart + /// - `OnFailure` Restart on failure + /// - `Never` Never restart + /// + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy? RestartPolicy { get; set; } + /// + /// The container group profile current revision number. This only appears in the response. + /// + int? Revision { get; set; } + /// The SKU for a container group. + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku? Sku { get; set; } + /// The list of volumes that can be mounted by containers in this container group. + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolume[] Volume { get; set; } + + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfilePropertiesAutoGenerated.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfilePropertiesAutoGenerated.json.cs new file mode 100644 index 000000000000..18b9ddf9f92b --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfilePropertiesAutoGenerated.json.cs @@ -0,0 +1,180 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; + + /// The container group profile properties + public partial class ContainerGroupProfilePropertiesAutoGenerated + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject instance to deserialize from. + internal ContainerGroupProfilePropertiesAutoGenerated(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_iPAddress = If( json?.PropertyT("ipAddress"), out var __jsonIPAddress) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPAddress.FromJson(__jsonIPAddress) : IPAddress;} + {_diagnostic = If( json?.PropertyT("diagnostics"), out var __jsonDiagnostics) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupDiagnostics.FromJson(__jsonDiagnostics) : Diagnostic;} + {_encryptionProperty = If( json?.PropertyT("encryptionProperties"), out var __jsonEncryptionProperties) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.EncryptionProperties.FromJson(__jsonEncryptionProperties) : EncryptionProperty;} + {_confidentialComputeProperty = If( json?.PropertyT("confidentialComputeProperties"), out var __jsonConfidentialComputeProperties) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ConfidentialComputeProperties.FromJson(__jsonConfidentialComputeProperties) : ConfidentialComputeProperty;} + {_container = If( json?.PropertyT("containers"), out var __jsonContainers) ? If( __jsonContainers as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainer) (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Container.FromJson(__u) )) ))() : null : Container;} + {_imageRegistryCredentials = If( json?.PropertyT("imageRegistryCredentials"), out var __jsonImageRegistryCredentials) ? If( __jsonImageRegistryCredentials as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredential) (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ImageRegistryCredential.FromJson(__p) )) ))() : null : ImageRegistryCredentials;} + {_restartPolicy = If( json?.PropertyT("restartPolicy"), out var __jsonRestartPolicy) ? (string)__jsonRestartPolicy : (string)RestartPolicy;} + {_oSType = If( json?.PropertyT("osType"), out var __jsonOSType) ? (string)__jsonOSType : (string)OSType;} + {_volume = If( json?.PropertyT("volumes"), out var __jsonVolumes) ? If( __jsonVolumes as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonArray, out var __l) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__l, (__k)=>(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolume) (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Volume.FromJson(__k) )) ))() : null : Volume;} + {_sku = If( json?.PropertyT("sku"), out var __jsonSku) ? (string)__jsonSku : (string)Sku;} + {_initContainer = If( json?.PropertyT("initContainers"), out var __jsonInitContainers) ? If( __jsonInitContainers as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonArray, out var __g) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__g, (__f)=>(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinition) (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.InitContainerDefinition.FromJson(__f) )) ))() : null : InitContainer;} + {_extension = If( json?.PropertyT("extensions"), out var __jsonExtensions) ? If( __jsonExtensions as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonArray, out var __b) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__b, (__a)=>(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpec) (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.DeploymentExtensionSpec.FromJson(__a) )) ))() : null : Extension;} + {_priority = If( json?.PropertyT("priority"), out var __jsonPriority) ? (string)__jsonPriority : (string)Priority;} + {_revision = If( json?.PropertyT("revision"), out var __jsonRevision) ? (int?)__jsonRevision : Revision;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGenerated. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGenerated. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePropertiesAutoGenerated FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new ContainerGroupProfilePropertiesAutoGenerated(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._iPAddress ? (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode) this._iPAddress.ToJson(null,serializationMode) : null, "ipAddress" ,container.Add ); + AddIf( null != this._diagnostic ? (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode) this._diagnostic.ToJson(null,serializationMode) : null, "diagnostics" ,container.Add ); + AddIf( null != this._encryptionProperty ? (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode) this._encryptionProperty.ToJson(null,serializationMode) : null, "encryptionProperties" ,container.Add ); + AddIf( null != this._confidentialComputeProperty ? (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode) this._confidentialComputeProperty.ToJson(null,serializationMode) : null, "confidentialComputeProperties" ,container.Add ); + if (null != this._container) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.XNodeArray(); + foreach( var __x in this._container ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("containers",__w); + } + if (null != this._imageRegistryCredentials) + { + var __r = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.XNodeArray(); + foreach( var __s in this._imageRegistryCredentials ) + { + AddIf(__s?.ToJson(null, serializationMode) ,__r.Add); + } + container.Add("imageRegistryCredentials",__r); + } + AddIf( null != (((object)this._restartPolicy)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonString(this._restartPolicy.ToString()) : null, "restartPolicy" ,container.Add ); + AddIf( null != (((object)this._oSType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonString(this._oSType.ToString()) : null, "osType" ,container.Add ); + if (null != this._volume) + { + var __m = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.XNodeArray(); + foreach( var __n in this._volume ) + { + AddIf(__n?.ToJson(null, serializationMode) ,__m.Add); + } + container.Add("volumes",__m); + } + AddIf( null != (((object)this._sku)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonString(this._sku.ToString()) : null, "sku" ,container.Add ); + if (null != this._initContainer) + { + var __h = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.XNodeArray(); + foreach( var __i in this._initContainer ) + { + AddIf(__i?.ToJson(null, serializationMode) ,__h.Add); + } + container.Add("initContainers",__h); + } + if (null != this._extension) + { + var __c = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.XNodeArray(); + foreach( var __d in this._extension ) + { + AddIf(__d?.ToJson(null, serializationMode) ,__c.Add); + } + container.Add("extensions",__c); + } + AddIf( null != (((object)this._priority)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonString(this._priority.ToString()) : null, "priority" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._revision ? (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNumber((int)this._revision) : null, "revision" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfileReferenceDefinition.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfileReferenceDefinition.PowerShell.cs new file mode 100644 index 000000000000..bcdac74a0bf0 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfileReferenceDefinition.PowerShell.cs @@ -0,0 +1,177 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; + + /// The container group profile reference. + [System.ComponentModel.TypeConverter(typeof(ContainerGroupProfileReferenceDefinitionTypeConverter))] + public partial class ContainerGroupProfileReferenceDefinition + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ContainerGroupProfileReferenceDefinition(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileReferenceDefinitionInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileReferenceDefinitionInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Revision")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileReferenceDefinitionInternal)this).Revision = (int?) content.GetValueForProperty("Revision",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileReferenceDefinitionInternal)this).Revision, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ContainerGroupProfileReferenceDefinition(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileReferenceDefinitionInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileReferenceDefinitionInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Revision")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileReferenceDefinitionInternal)this).Revision = (int?) content.GetValueForProperty("Revision",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileReferenceDefinitionInternal)this).Revision, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileReferenceDefinition DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ContainerGroupProfileReferenceDefinition(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileReferenceDefinition DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ContainerGroupProfileReferenceDefinition(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json + /// string. + /// + /// a string containing a JSON serialized instance of this model. + /// + /// an instance of the model class. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileReferenceDefinition FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// The container group profile reference. + [System.ComponentModel.TypeConverter(typeof(ContainerGroupProfileReferenceDefinitionTypeConverter))] + public partial interface IContainerGroupProfileReferenceDefinition + + { + + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfileReferenceDefinition.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfileReferenceDefinition.TypeConverter.cs new file mode 100644 index 000000000000..b60b1724c698 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfileReferenceDefinition.TypeConverter.cs @@ -0,0 +1,151 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ContainerGroupProfileReferenceDefinitionTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise + /// false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileReferenceDefinition ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileReferenceDefinition).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ContainerGroupProfileReferenceDefinition.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ContainerGroupProfileReferenceDefinition.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ContainerGroupProfileReferenceDefinition.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfileReferenceDefinition.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfileReferenceDefinition.cs new file mode 100644 index 000000000000..d19f156d2d50 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfileReferenceDefinition.cs @@ -0,0 +1,76 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; + + /// The container group profile reference. + public partial class ContainerGroupProfileReferenceDefinition : + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileReferenceDefinition, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileReferenceDefinitionInternal + { + + /// Backing field for property. + private string _id; + + /// + /// The container group profile reference id.This will be an ARM resource id in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}'. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] + public string Id { get => this._id; set => this._id = value; } + + /// Backing field for property. + private int? _revision; + + /// The container group profile reference revision. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] + public int? Revision { get => this._revision; set => this._revision = value; } + + /// + /// Creates an new instance. + /// + public ContainerGroupProfileReferenceDefinition() + { + + } + } + /// The container group profile reference. + public partial interface IContainerGroupProfileReferenceDefinition : + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IJsonSerializable + { + /// + /// The container group profile reference id.This will be an ARM resource id in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}'. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The container group profile reference id.This will be an ARM resource id in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}'.", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string Id { get; set; } + /// The container group profile reference revision. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The container group profile reference revision.", + SerializedName = @"revision", + PossibleTypes = new [] { typeof(int) })] + int? Revision { get; set; } + + } + /// The container group profile reference. + internal partial interface IContainerGroupProfileReferenceDefinitionInternal + + { + /// + /// The container group profile reference id.This will be an ARM resource id in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}'. + /// + string Id { get; set; } + /// The container group profile reference revision. + int? Revision { get; set; } + + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfileReferenceDefinition.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfileReferenceDefinition.json.cs new file mode 100644 index 000000000000..23ad3d9f73f3 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProfileReferenceDefinition.json.cs @@ -0,0 +1,112 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; + + /// The container group profile reference. + public partial class ContainerGroupProfileReferenceDefinition + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject instance to deserialize from. + internal ContainerGroupProfileReferenceDefinition(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} + {_revision = If( json?.PropertyT("revision"), out var __jsonRevision) ? (int?)__jsonRevision : Revision;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileReferenceDefinition. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileReferenceDefinition. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileReferenceDefinition FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new ContainerGroupProfileReferenceDefinition(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); + AddIf( null != this._revision ? (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNumber((int)this._revision) : null, "revision" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupProperties.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProperties.PowerShell.cs similarity index 62% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupProperties.PowerShell.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProperties.PowerShell.cs index b29eddd4d47e..2a3bf9472a57 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupProperties.PowerShell.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -63,7 +63,7 @@ public partial class ContainerGroupProperties partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -78,189 +78,217 @@ internal ContainerGroupProperties(global::System.Collections.IDictionary content // actually deserialize if (content.Contains("Identity")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroupIdentityTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupIdentityTypeConverter.ConvertFrom); } if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGenerated) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroupPropertiesAutoGeneratedTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGenerated) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupPropertiesAutoGeneratedTypeConverter.ConvertFrom); } if (content.Contains("IPAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IPAddress = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IIPAddress) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IPAddress, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IPAddressTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IPAddress = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddress) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IPAddress, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPAddressTypeConverter.ConvertFrom); } if (content.Contains("EncryptionProperty")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).EncryptionProperty = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEncryptionProperties) content.GetValueForProperty("EncryptionProperty",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).EncryptionProperty, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.EncryptionPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).EncryptionProperty = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEncryptionProperties) content.GetValueForProperty("EncryptionProperty",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).EncryptionProperty, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.EncryptionPropertiesTypeConverter.ConvertFrom); } if (content.Contains("IdentityPrincipalId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IdentityPrincipalId, global::System.Convert.ToString); } if (content.Contains("IdentityTenantId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IdentityTenantId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IdentityTenantId, global::System.Convert.ToString); } if (content.Contains("IdentityType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ResourceIdentityType?) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ResourceIdentityType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ResourceIdentityType?) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ResourceIdentityType.CreateFrom); } if (content.Contains("IdentityUserAssignedIdentity")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentityUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroupIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentityUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); } if (content.Contains("InstanceView")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).InstanceView = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInstanceView) content.GetValueForProperty("InstanceView",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).InstanceView, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroupPropertiesInstanceViewTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).InstanceView = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInstanceView) content.GetValueForProperty("InstanceView",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).InstanceView, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupPropertiesInstanceViewTypeConverter.ConvertFrom); } if (content.Contains("Diagnostic")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).Diagnostic = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupDiagnostics) content.GetValueForProperty("Diagnostic",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).Diagnostic, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroupDiagnosticsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Diagnostic = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnostics) content.GetValueForProperty("Diagnostic",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Diagnostic, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupDiagnosticsTypeConverter.ConvertFrom); } if (content.Contains("DnsConfig")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).DnsConfig = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDnsConfiguration) content.GetValueForProperty("DnsConfig",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).DnsConfig, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.DnsConfigurationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).DnsConfig = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDnsConfiguration) content.GetValueForProperty("DnsConfig",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).DnsConfig, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.DnsConfigurationTypeConverter.ConvertFrom); } if (content.Contains("ConfidentialComputeProperty")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).ConfidentialComputeProperty = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IConfidentialComputeProperties) content.GetValueForProperty("ConfidentialComputeProperty",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).ConfidentialComputeProperty, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ConfidentialComputePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).ConfidentialComputeProperty = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfidentialComputeProperties) content.GetValueForProperty("ConfidentialComputeProperty",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).ConfidentialComputeProperty, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ConfidentialComputePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Profile")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Profile = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileReferenceDefinition) content.GetValueForProperty("Profile",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Profile, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupProfileReferenceDefinitionTypeConverter.ConvertFrom); + } + if (content.Contains("StandbyPoolProfile")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).StandbyPoolProfile = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IStandbyPoolProfileDefinition) content.GetValueForProperty("StandbyPoolProfile",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).StandbyPoolProfile, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.StandbyPoolProfileDefinitionTypeConverter.ConvertFrom); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); } if (content.Contains("Container")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).Container = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainer[]) content.GetValueForProperty("Container",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).Container, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Container = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainer[]) content.GetValueForProperty("Container",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Container, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerTypeConverter.ConvertFrom)); } if (content.Contains("ImageRegistryCredentials")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).ImageRegistryCredentials = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IImageRegistryCredential[]) content.GetValueForProperty("ImageRegistryCredentials",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).ImageRegistryCredentials, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ImageRegistryCredentialTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).ImageRegistryCredentials = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredential[]) content.GetValueForProperty("ImageRegistryCredentials",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).ImageRegistryCredentials, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ImageRegistryCredentialTypeConverter.ConvertFrom)); } if (content.Contains("RestartPolicy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).RestartPolicy = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy?) content.GetValueForProperty("RestartPolicy",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).RestartPolicy, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).RestartPolicy = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy?) content.GetValueForProperty("RestartPolicy",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).RestartPolicy, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy.CreateFrom); } if (content.Contains("OSType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).OSType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).OSType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).OSType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes?) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).OSType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes.CreateFrom); } if (content.Contains("Volume")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).Volume = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolume[]) content.GetValueForProperty("Volume",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).Volume, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.VolumeTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Volume = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolume[]) content.GetValueForProperty("Volume",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Volume, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.VolumeTypeConverter.ConvertFrom)); } if (content.Contains("SubnetId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).SubnetId = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupSubnetId[]) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).SubnetId, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroupSubnetIdTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).SubnetId = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupSubnetId[]) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).SubnetId, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupSubnetIdTypeConverter.ConvertFrom)); } if (content.Contains("Sku")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku?) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku?) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku.CreateFrom); } if (content.Contains("InitContainer")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).InitContainer = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinition[]) content.GetValueForProperty("InitContainer",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).InitContainer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.InitContainerDefinitionTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).InitContainer = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinition[]) content.GetValueForProperty("InitContainer",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).InitContainer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.InitContainerDefinitionTypeConverter.ConvertFrom)); } if (content.Contains("Extension")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).Extension = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpec[]) content.GetValueForProperty("Extension",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).Extension, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.DeploymentExtensionSpecTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Extension = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpec[]) content.GetValueForProperty("Extension",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Extension, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.DeploymentExtensionSpecTypeConverter.ConvertFrom)); } if (content.Contains("Priority")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).Priority = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority?) content.GetValueForProperty("Priority",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).Priority, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Priority = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority?) content.GetValueForProperty("Priority",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Priority, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority.CreateFrom); + } + if (content.Contains("IsCreatedFromStandbyPool")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IsCreatedFromStandbyPool = (bool?) content.GetValueForProperty("IsCreatedFromStandbyPool",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IsCreatedFromStandbyPool, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("DiagnosticLogAnalytic")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).DiagnosticLogAnalytic = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalytics) content.GetValueForProperty("DiagnosticLogAnalytic",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).DiagnosticLogAnalytic, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.LogAnalyticsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).DiagnosticLogAnalytic = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalytics) content.GetValueForProperty("DiagnosticLogAnalytic",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).DiagnosticLogAnalytic, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.LogAnalyticsTypeConverter.ConvertFrom); } if (content.Contains("EncryptionPropertyKeyName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).EncryptionPropertyKeyName = (string) content.GetValueForProperty("EncryptionPropertyKeyName",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).EncryptionPropertyKeyName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).EncryptionPropertyKeyName = (string) content.GetValueForProperty("EncryptionPropertyKeyName",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).EncryptionPropertyKeyName, global::System.Convert.ToString); } if (content.Contains("EncryptionPropertyKeyVersion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).EncryptionPropertyKeyVersion = (string) content.GetValueForProperty("EncryptionPropertyKeyVersion",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).EncryptionPropertyKeyVersion, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).EncryptionPropertyKeyVersion = (string) content.GetValueForProperty("EncryptionPropertyKeyVersion",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).EncryptionPropertyKeyVersion, global::System.Convert.ToString); } if (content.Contains("EncryptionPropertyIdentity")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).EncryptionPropertyIdentity = (string) content.GetValueForProperty("EncryptionPropertyIdentity",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).EncryptionPropertyIdentity, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).EncryptionPropertyIdentity = (string) content.GetValueForProperty("EncryptionPropertyIdentity",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).EncryptionPropertyIdentity, global::System.Convert.ToString); } if (content.Contains("ConfidentialComputePropertyCcePolicy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).ConfidentialComputePropertyCcePolicy = (string) content.GetValueForProperty("ConfidentialComputePropertyCcePolicy",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).ConfidentialComputePropertyCcePolicy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).ConfidentialComputePropertyCcePolicy = (string) content.GetValueForProperty("ConfidentialComputePropertyCcePolicy",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).ConfidentialComputePropertyCcePolicy, global::System.Convert.ToString); } if (content.Contains("IPAddressPort")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IPAddressPort = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IPort[]) content.GetValueForProperty("IPAddressPort",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IPAddressPort, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.PortTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IPAddressPort = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPort[]) content.GetValueForProperty("IPAddressPort",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IPAddressPort, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.PortTypeConverter.ConvertFrom)); } if (content.Contains("IPAddressType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IPAddressType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType) content.GetValueForProperty("IPAddressType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IPAddressType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IPAddressType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType) content.GetValueForProperty("IPAddressType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IPAddressType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType.CreateFrom); } if (content.Contains("IPAddressIP")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IPAddressIP = (string) content.GetValueForProperty("IPAddressIP",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IPAddressIP, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IPAddressIP = (string) content.GetValueForProperty("IPAddressIP",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IPAddressIP, global::System.Convert.ToString); } if (content.Contains("IPAddressDnsNameLabel")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IPAddressDnsNameLabel = (string) content.GetValueForProperty("IPAddressDnsNameLabel",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IPAddressDnsNameLabel, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IPAddressDnsNameLabel = (string) content.GetValueForProperty("IPAddressDnsNameLabel",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IPAddressDnsNameLabel, global::System.Convert.ToString); } if (content.Contains("IPAddressAutoGeneratedDomainNameLabelScope")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IPAddressAutoGeneratedDomainNameLabelScope = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy?) content.GetValueForProperty("IPAddressAutoGeneratedDomainNameLabelScope",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IPAddressAutoGeneratedDomainNameLabelScope, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IPAddressAutoGeneratedDomainNameLabelScope = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy?) content.GetValueForProperty("IPAddressAutoGeneratedDomainNameLabelScope",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IPAddressAutoGeneratedDomainNameLabelScope, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy.CreateFrom); } if (content.Contains("IPAddressFqdn")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IPAddressFqdn = (string) content.GetValueForProperty("IPAddressFqdn",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IPAddressFqdn, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IPAddressFqdn = (string) content.GetValueForProperty("IPAddressFqdn",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IPAddressFqdn, global::System.Convert.ToString); } if (content.Contains("InstanceViewEvent")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).InstanceViewEvent = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent[]) content.GetValueForProperty("InstanceViewEvent",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).InstanceViewEvent, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.EventTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).InstanceViewEvent = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent[]) content.GetValueForProperty("InstanceViewEvent",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).InstanceViewEvent, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.EventTypeConverter.ConvertFrom)); } if (content.Contains("InstanceViewState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).InstanceViewState = (string) content.GetValueForProperty("InstanceViewState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).InstanceViewState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).InstanceViewState = (string) content.GetValueForProperty("InstanceViewState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).InstanceViewState, global::System.Convert.ToString); } if (content.Contains("LogAnalyticWorkspaceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).LogAnalyticWorkspaceId = (string) content.GetValueForProperty("LogAnalyticWorkspaceId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).LogAnalyticWorkspaceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).LogAnalyticWorkspaceId = (string) content.GetValueForProperty("LogAnalyticWorkspaceId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).LogAnalyticWorkspaceId, global::System.Convert.ToString); } if (content.Contains("LogAnalyticWorkspaceKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).LogAnalyticWorkspaceKey = (string) content.GetValueForProperty("LogAnalyticWorkspaceKey",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).LogAnalyticWorkspaceKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).LogAnalyticWorkspaceKey = (string) content.GetValueForProperty("LogAnalyticWorkspaceKey",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).LogAnalyticWorkspaceKey, global::System.Convert.ToString); } if (content.Contains("LogAnalyticLogType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).LogAnalyticLogType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType?) content.GetValueForProperty("LogAnalyticLogType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).LogAnalyticLogType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).LogAnalyticLogType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType?) content.GetValueForProperty("LogAnalyticLogType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).LogAnalyticLogType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType.CreateFrom); } if (content.Contains("LogAnalyticMetadata")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).LogAnalyticMetadata = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsMetadata) content.GetValueForProperty("LogAnalyticMetadata",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).LogAnalyticMetadata, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.LogAnalyticsMetadataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).LogAnalyticMetadata = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsMetadata) content.GetValueForProperty("LogAnalyticMetadata",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).LogAnalyticMetadata, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.LogAnalyticsMetadataTypeConverter.ConvertFrom); } if (content.Contains("DnsConfigNameServer")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).DnsConfigNameServer = (string[]) content.GetValueForProperty("DnsConfigNameServer",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).DnsConfigNameServer, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).DnsConfigNameServer = (string[]) content.GetValueForProperty("DnsConfigNameServer",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).DnsConfigNameServer, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("DnsConfigSearchDomain")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).DnsConfigSearchDomain = (string) content.GetValueForProperty("DnsConfigSearchDomain",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).DnsConfigSearchDomain, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).DnsConfigSearchDomain = (string) content.GetValueForProperty("DnsConfigSearchDomain",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).DnsConfigSearchDomain, global::System.Convert.ToString); } if (content.Contains("DnsConfigOption")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).DnsConfigOption = (string) content.GetValueForProperty("DnsConfigOption",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).DnsConfigOption, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).DnsConfigOption = (string) content.GetValueForProperty("DnsConfigOption",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).DnsConfigOption, global::System.Convert.ToString); } if (content.Contains("EncryptionPropertyVaultBaseUrl")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).EncryptionPropertyVaultBaseUrl = (string) content.GetValueForProperty("EncryptionPropertyVaultBaseUrl",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).EncryptionPropertyVaultBaseUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).EncryptionPropertyVaultBaseUrl = (string) content.GetValueForProperty("EncryptionPropertyVaultBaseUrl",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).EncryptionPropertyVaultBaseUrl, global::System.Convert.ToString); + } + if (content.Contains("ProfileId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).ProfileId = (string) content.GetValueForProperty("ProfileId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).ProfileId, global::System.Convert.ToString); + } + if (content.Contains("ProfileRevision")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).ProfileRevision = (int?) content.GetValueForProperty("ProfileRevision",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).ProfileRevision, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("StandbyPoolProfileId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).StandbyPoolProfileId = (string) content.GetValueForProperty("StandbyPoolProfileId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).StandbyPoolProfileId, global::System.Convert.ToString); + } + if (content.Contains("StandbyPoolProfileFailContainerGroupCreateOnReuseFailure")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).StandbyPoolProfileFailContainerGroupCreateOnReuseFailure = (bool?) content.GetValueForProperty("StandbyPoolProfileFailContainerGroupCreateOnReuseFailure",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).StandbyPoolProfileFailContainerGroupCreateOnReuseFailure, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("LogAnalyticWorkspaceResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).LogAnalyticWorkspaceResourceId = (string) content.GetValueForProperty("LogAnalyticWorkspaceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).LogAnalyticWorkspaceResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).LogAnalyticWorkspaceResourceId = (string) content.GetValueForProperty("LogAnalyticWorkspaceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).LogAnalyticWorkspaceResourceId, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -275,211 +303,239 @@ internal ContainerGroupProperties(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("Identity")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroupIdentityTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupIdentityTypeConverter.ConvertFrom); } if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGenerated) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroupPropertiesAutoGeneratedTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGenerated) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupPropertiesAutoGeneratedTypeConverter.ConvertFrom); } if (content.Contains("IPAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IPAddress = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IIPAddress) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IPAddress, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IPAddressTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IPAddress = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddress) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IPAddress, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPAddressTypeConverter.ConvertFrom); } if (content.Contains("EncryptionProperty")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).EncryptionProperty = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEncryptionProperties) content.GetValueForProperty("EncryptionProperty",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).EncryptionProperty, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.EncryptionPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).EncryptionProperty = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEncryptionProperties) content.GetValueForProperty("EncryptionProperty",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).EncryptionProperty, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.EncryptionPropertiesTypeConverter.ConvertFrom); } if (content.Contains("IdentityPrincipalId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IdentityPrincipalId, global::System.Convert.ToString); } if (content.Contains("IdentityTenantId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IdentityTenantId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IdentityTenantId, global::System.Convert.ToString); } if (content.Contains("IdentityType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ResourceIdentityType?) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ResourceIdentityType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ResourceIdentityType?) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ResourceIdentityType.CreateFrom); } if (content.Contains("IdentityUserAssignedIdentity")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentityUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroupIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentityUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); } if (content.Contains("InstanceView")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).InstanceView = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInstanceView) content.GetValueForProperty("InstanceView",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).InstanceView, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroupPropertiesInstanceViewTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).InstanceView = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInstanceView) content.GetValueForProperty("InstanceView",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).InstanceView, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupPropertiesInstanceViewTypeConverter.ConvertFrom); } if (content.Contains("Diagnostic")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).Diagnostic = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupDiagnostics) content.GetValueForProperty("Diagnostic",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).Diagnostic, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroupDiagnosticsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Diagnostic = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnostics) content.GetValueForProperty("Diagnostic",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Diagnostic, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupDiagnosticsTypeConverter.ConvertFrom); } if (content.Contains("DnsConfig")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).DnsConfig = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDnsConfiguration) content.GetValueForProperty("DnsConfig",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).DnsConfig, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.DnsConfigurationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).DnsConfig = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDnsConfiguration) content.GetValueForProperty("DnsConfig",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).DnsConfig, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.DnsConfigurationTypeConverter.ConvertFrom); } if (content.Contains("ConfidentialComputeProperty")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).ConfidentialComputeProperty = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IConfidentialComputeProperties) content.GetValueForProperty("ConfidentialComputeProperty",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).ConfidentialComputeProperty, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ConfidentialComputePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).ConfidentialComputeProperty = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfidentialComputeProperties) content.GetValueForProperty("ConfidentialComputeProperty",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).ConfidentialComputeProperty, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ConfidentialComputePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Profile")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Profile = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileReferenceDefinition) content.GetValueForProperty("Profile",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Profile, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupProfileReferenceDefinitionTypeConverter.ConvertFrom); + } + if (content.Contains("StandbyPoolProfile")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).StandbyPoolProfile = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IStandbyPoolProfileDefinition) content.GetValueForProperty("StandbyPoolProfile",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).StandbyPoolProfile, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.StandbyPoolProfileDefinitionTypeConverter.ConvertFrom); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); } if (content.Contains("Container")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).Container = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainer[]) content.GetValueForProperty("Container",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).Container, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Container = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainer[]) content.GetValueForProperty("Container",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Container, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerTypeConverter.ConvertFrom)); } if (content.Contains("ImageRegistryCredentials")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).ImageRegistryCredentials = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IImageRegistryCredential[]) content.GetValueForProperty("ImageRegistryCredentials",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).ImageRegistryCredentials, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ImageRegistryCredentialTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).ImageRegistryCredentials = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredential[]) content.GetValueForProperty("ImageRegistryCredentials",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).ImageRegistryCredentials, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ImageRegistryCredentialTypeConverter.ConvertFrom)); } if (content.Contains("RestartPolicy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).RestartPolicy = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy?) content.GetValueForProperty("RestartPolicy",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).RestartPolicy, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).RestartPolicy = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy?) content.GetValueForProperty("RestartPolicy",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).RestartPolicy, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy.CreateFrom); } if (content.Contains("OSType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).OSType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).OSType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).OSType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes?) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).OSType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes.CreateFrom); } if (content.Contains("Volume")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).Volume = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolume[]) content.GetValueForProperty("Volume",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).Volume, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.VolumeTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Volume = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolume[]) content.GetValueForProperty("Volume",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Volume, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.VolumeTypeConverter.ConvertFrom)); } if (content.Contains("SubnetId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).SubnetId = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupSubnetId[]) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).SubnetId, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroupSubnetIdTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).SubnetId = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupSubnetId[]) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).SubnetId, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupSubnetIdTypeConverter.ConvertFrom)); } if (content.Contains("Sku")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku?) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku?) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku.CreateFrom); } if (content.Contains("InitContainer")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).InitContainer = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinition[]) content.GetValueForProperty("InitContainer",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).InitContainer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.InitContainerDefinitionTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).InitContainer = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinition[]) content.GetValueForProperty("InitContainer",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).InitContainer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.InitContainerDefinitionTypeConverter.ConvertFrom)); } if (content.Contains("Extension")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).Extension = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpec[]) content.GetValueForProperty("Extension",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).Extension, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.DeploymentExtensionSpecTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Extension = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpec[]) content.GetValueForProperty("Extension",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Extension, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.DeploymentExtensionSpecTypeConverter.ConvertFrom)); } if (content.Contains("Priority")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).Priority = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority?) content.GetValueForProperty("Priority",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).Priority, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Priority = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority?) content.GetValueForProperty("Priority",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).Priority, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority.CreateFrom); + } + if (content.Contains("IsCreatedFromStandbyPool")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IsCreatedFromStandbyPool = (bool?) content.GetValueForProperty("IsCreatedFromStandbyPool",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IsCreatedFromStandbyPool, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("DiagnosticLogAnalytic")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).DiagnosticLogAnalytic = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalytics) content.GetValueForProperty("DiagnosticLogAnalytic",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).DiagnosticLogAnalytic, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.LogAnalyticsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).DiagnosticLogAnalytic = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalytics) content.GetValueForProperty("DiagnosticLogAnalytic",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).DiagnosticLogAnalytic, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.LogAnalyticsTypeConverter.ConvertFrom); } if (content.Contains("EncryptionPropertyKeyName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).EncryptionPropertyKeyName = (string) content.GetValueForProperty("EncryptionPropertyKeyName",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).EncryptionPropertyKeyName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).EncryptionPropertyKeyName = (string) content.GetValueForProperty("EncryptionPropertyKeyName",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).EncryptionPropertyKeyName, global::System.Convert.ToString); } if (content.Contains("EncryptionPropertyKeyVersion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).EncryptionPropertyKeyVersion = (string) content.GetValueForProperty("EncryptionPropertyKeyVersion",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).EncryptionPropertyKeyVersion, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).EncryptionPropertyKeyVersion = (string) content.GetValueForProperty("EncryptionPropertyKeyVersion",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).EncryptionPropertyKeyVersion, global::System.Convert.ToString); } if (content.Contains("EncryptionPropertyIdentity")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).EncryptionPropertyIdentity = (string) content.GetValueForProperty("EncryptionPropertyIdentity",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).EncryptionPropertyIdentity, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).EncryptionPropertyIdentity = (string) content.GetValueForProperty("EncryptionPropertyIdentity",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).EncryptionPropertyIdentity, global::System.Convert.ToString); } if (content.Contains("ConfidentialComputePropertyCcePolicy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).ConfidentialComputePropertyCcePolicy = (string) content.GetValueForProperty("ConfidentialComputePropertyCcePolicy",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).ConfidentialComputePropertyCcePolicy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).ConfidentialComputePropertyCcePolicy = (string) content.GetValueForProperty("ConfidentialComputePropertyCcePolicy",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).ConfidentialComputePropertyCcePolicy, global::System.Convert.ToString); } if (content.Contains("IPAddressPort")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IPAddressPort = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IPort[]) content.GetValueForProperty("IPAddressPort",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IPAddressPort, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.PortTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IPAddressPort = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPort[]) content.GetValueForProperty("IPAddressPort",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IPAddressPort, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.PortTypeConverter.ConvertFrom)); } if (content.Contains("IPAddressType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IPAddressType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType) content.GetValueForProperty("IPAddressType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IPAddressType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IPAddressType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType) content.GetValueForProperty("IPAddressType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IPAddressType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType.CreateFrom); } if (content.Contains("IPAddressIP")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IPAddressIP = (string) content.GetValueForProperty("IPAddressIP",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IPAddressIP, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IPAddressIP = (string) content.GetValueForProperty("IPAddressIP",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IPAddressIP, global::System.Convert.ToString); } if (content.Contains("IPAddressDnsNameLabel")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IPAddressDnsNameLabel = (string) content.GetValueForProperty("IPAddressDnsNameLabel",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IPAddressDnsNameLabel, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IPAddressDnsNameLabel = (string) content.GetValueForProperty("IPAddressDnsNameLabel",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IPAddressDnsNameLabel, global::System.Convert.ToString); } if (content.Contains("IPAddressAutoGeneratedDomainNameLabelScope")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IPAddressAutoGeneratedDomainNameLabelScope = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy?) content.GetValueForProperty("IPAddressAutoGeneratedDomainNameLabelScope",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IPAddressAutoGeneratedDomainNameLabelScope, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IPAddressAutoGeneratedDomainNameLabelScope = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy?) content.GetValueForProperty("IPAddressAutoGeneratedDomainNameLabelScope",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IPAddressAutoGeneratedDomainNameLabelScope, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy.CreateFrom); } if (content.Contains("IPAddressFqdn")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IPAddressFqdn = (string) content.GetValueForProperty("IPAddressFqdn",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).IPAddressFqdn, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IPAddressFqdn = (string) content.GetValueForProperty("IPAddressFqdn",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).IPAddressFqdn, global::System.Convert.ToString); } if (content.Contains("InstanceViewEvent")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).InstanceViewEvent = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent[]) content.GetValueForProperty("InstanceViewEvent",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).InstanceViewEvent, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.EventTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).InstanceViewEvent = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent[]) content.GetValueForProperty("InstanceViewEvent",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).InstanceViewEvent, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.EventTypeConverter.ConvertFrom)); } if (content.Contains("InstanceViewState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).InstanceViewState = (string) content.GetValueForProperty("InstanceViewState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).InstanceViewState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).InstanceViewState = (string) content.GetValueForProperty("InstanceViewState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).InstanceViewState, global::System.Convert.ToString); } if (content.Contains("LogAnalyticWorkspaceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).LogAnalyticWorkspaceId = (string) content.GetValueForProperty("LogAnalyticWorkspaceId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).LogAnalyticWorkspaceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).LogAnalyticWorkspaceId = (string) content.GetValueForProperty("LogAnalyticWorkspaceId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).LogAnalyticWorkspaceId, global::System.Convert.ToString); } if (content.Contains("LogAnalyticWorkspaceKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).LogAnalyticWorkspaceKey = (string) content.GetValueForProperty("LogAnalyticWorkspaceKey",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).LogAnalyticWorkspaceKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).LogAnalyticWorkspaceKey = (string) content.GetValueForProperty("LogAnalyticWorkspaceKey",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).LogAnalyticWorkspaceKey, global::System.Convert.ToString); } if (content.Contains("LogAnalyticLogType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).LogAnalyticLogType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType?) content.GetValueForProperty("LogAnalyticLogType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).LogAnalyticLogType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).LogAnalyticLogType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType?) content.GetValueForProperty("LogAnalyticLogType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).LogAnalyticLogType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType.CreateFrom); } if (content.Contains("LogAnalyticMetadata")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).LogAnalyticMetadata = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsMetadata) content.GetValueForProperty("LogAnalyticMetadata",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).LogAnalyticMetadata, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.LogAnalyticsMetadataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).LogAnalyticMetadata = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsMetadata) content.GetValueForProperty("LogAnalyticMetadata",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).LogAnalyticMetadata, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.LogAnalyticsMetadataTypeConverter.ConvertFrom); } if (content.Contains("DnsConfigNameServer")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).DnsConfigNameServer = (string[]) content.GetValueForProperty("DnsConfigNameServer",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).DnsConfigNameServer, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).DnsConfigNameServer = (string[]) content.GetValueForProperty("DnsConfigNameServer",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).DnsConfigNameServer, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("DnsConfigSearchDomain")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).DnsConfigSearchDomain = (string) content.GetValueForProperty("DnsConfigSearchDomain",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).DnsConfigSearchDomain, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).DnsConfigSearchDomain = (string) content.GetValueForProperty("DnsConfigSearchDomain",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).DnsConfigSearchDomain, global::System.Convert.ToString); } if (content.Contains("DnsConfigOption")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).DnsConfigOption = (string) content.GetValueForProperty("DnsConfigOption",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).DnsConfigOption, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).DnsConfigOption = (string) content.GetValueForProperty("DnsConfigOption",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).DnsConfigOption, global::System.Convert.ToString); } if (content.Contains("EncryptionPropertyVaultBaseUrl")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).EncryptionPropertyVaultBaseUrl = (string) content.GetValueForProperty("EncryptionPropertyVaultBaseUrl",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).EncryptionPropertyVaultBaseUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).EncryptionPropertyVaultBaseUrl = (string) content.GetValueForProperty("EncryptionPropertyVaultBaseUrl",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).EncryptionPropertyVaultBaseUrl, global::System.Convert.ToString); + } + if (content.Contains("ProfileId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).ProfileId = (string) content.GetValueForProperty("ProfileId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).ProfileId, global::System.Convert.ToString); + } + if (content.Contains("ProfileRevision")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).ProfileRevision = (int?) content.GetValueForProperty("ProfileRevision",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).ProfileRevision, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("StandbyPoolProfileId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).StandbyPoolProfileId = (string) content.GetValueForProperty("StandbyPoolProfileId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).StandbyPoolProfileId, global::System.Convert.ToString); + } + if (content.Contains("StandbyPoolProfileFailContainerGroupCreateOnReuseFailure")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).StandbyPoolProfileFailContainerGroupCreateOnReuseFailure = (bool?) content.GetValueForProperty("StandbyPoolProfileFailContainerGroupCreateOnReuseFailure",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).StandbyPoolProfileFailContainerGroupCreateOnReuseFailure, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("LogAnalyticWorkspaceResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).LogAnalyticWorkspaceResourceId = (string) content.GetValueForProperty("LogAnalyticWorkspaceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal)this).LogAnalyticWorkspaceResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).LogAnalyticWorkspaceResourceId = (string) content.GetValueForProperty("LogAnalyticWorkspaceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal)this).LogAnalyticWorkspaceResourceId, global::System.Convert.ToString); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ContainerGroupProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ContainerGroupProperties(content); } @@ -489,7 +545,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api202 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupProperties.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProperties.TypeConverter.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupProperties.TypeConverter.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProperties.TypeConverter.cs index 3572e77efc87..ab4b2e049442 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupProperties.TypeConverter.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupProperties.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProperties.cs similarity index 70% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupProperties.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProperties.cs index 225bab36e6ca..dfb1ddf72f23 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupProperties.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProperties.cs @@ -3,55 +3,55 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; /// The container group properties public partial class ContainerGroupProperties : - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupProperties, - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProperties, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal { /// The base64 encoded confidential compute enforcement policy [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string ConfidentialComputePropertyCcePolicy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).ConfidentialComputePropertyCcePolicy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).ConfidentialComputePropertyCcePolicy = value ?? null; } + public string ConfidentialComputePropertyCcePolicy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).ConfidentialComputePropertyCcePolicy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).ConfidentialComputePropertyCcePolicy = value ?? null; } /// The containers within the container group. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainer[] Container { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).Container; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).Container = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainer[] Container { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).Container; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).Container = value ; } /// The DNS servers for the container group. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string[] DnsConfigNameServer { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).DnsConfigNameServer; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).DnsConfigNameServer = value ?? null /* arrayOf */; } + public string[] DnsConfigNameServer { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).DnsConfigNameServer; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).DnsConfigNameServer = value ?? null /* arrayOf */; } /// The DNS options for the container group. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string DnsConfigOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).DnsConfigOption; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).DnsConfigOption = value ?? null; } + public string DnsConfigOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).DnsConfigOption; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).DnsConfigOption = value ?? null; } /// The DNS search domains for hostname lookup in the container group. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string DnsConfigSearchDomain { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).DnsConfigSearchDomain; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).DnsConfigSearchDomain = value ?? null; } + public string DnsConfigSearchDomain { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).DnsConfigSearchDomain; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).DnsConfigSearchDomain = value ?? null; } /// The keyvault managed identity. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string EncryptionPropertyIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).EncryptionPropertyIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).EncryptionPropertyIdentity = value ?? null; } + public string EncryptionPropertyIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).EncryptionPropertyIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).EncryptionPropertyIdentity = value ?? null; } /// The encryption key name. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string EncryptionPropertyKeyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).EncryptionPropertyKeyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).EncryptionPropertyKeyName = value ?? null; } + public string EncryptionPropertyKeyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).EncryptionPropertyKeyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).EncryptionPropertyKeyName = value ?? null; } /// The encryption key version. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string EncryptionPropertyKeyVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).EncryptionPropertyKeyVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).EncryptionPropertyKeyVersion = value ?? null; } + public string EncryptionPropertyKeyVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).EncryptionPropertyKeyVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).EncryptionPropertyKeyVersion = value ?? null; } /// The keyvault base url. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string EncryptionPropertyVaultBaseUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).EncryptionPropertyVaultBaseUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).EncryptionPropertyVaultBaseUrl = value ?? null; } + public string EncryptionPropertyVaultBaseUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).EncryptionPropertyVaultBaseUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).EncryptionPropertyVaultBaseUrl = value ?? null; } /// extensions used by virtual kubelet [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpec[] Extension { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).Extension; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).Extension = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpec[] Extension { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).Extension; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).Extension = value ?? null /* arrayOf */; } /// /// The value representing the security enum. The 'Unsecure' value is the default value if not selected and means the object's @@ -62,46 +62,46 @@ public partial class ContainerGroupProperties : /// cannot be reused within the same resource group, subscription, or tenant. /// [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy? IPAddressAutoGeneratedDomainNameLabelScope { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).IPAddressAutoGeneratedDomainNameLabelScope; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).IPAddressAutoGeneratedDomainNameLabelScope = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy)""); } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy? IPAddressAutoGeneratedDomainNameLabelScope { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).IPAddressAutoGeneratedDomainNameLabelScope; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).IPAddressAutoGeneratedDomainNameLabelScope = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy)""); } /// The Dns name label for the IP. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string IPAddressDnsNameLabel { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).IPAddressDnsNameLabel; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).IPAddressDnsNameLabel = value ?? null; } + public string IPAddressDnsNameLabel { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).IPAddressDnsNameLabel; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).IPAddressDnsNameLabel = value ?? null; } /// The FQDN for the IP. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string IPAddressFqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).IPAddressFqdn; } + public string IPAddressFqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).IPAddressFqdn; } /// The IP exposed to the public internet. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string IPAddressIP { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).IPAddressIP; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).IPAddressIP = value ?? null; } + public string IPAddressIP { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).IPAddressIP; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).IPAddressIP = value ?? null; } /// The list of ports exposed on the container group. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IPort[] IPAddressPort { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).IPAddressPort; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).IPAddressPort = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPort[] IPAddressPort { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).IPAddressPort; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).IPAddressPort = value ?? null /* arrayOf */; } /// Specifies if the IP is exposed to the public internet or private VNET. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType? IPAddressType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).IPAddressType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).IPAddressType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType? IPAddressType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).IPAddressType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).IPAddressType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType)""); } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentity _identity; + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentity _identity; /// The identity of the container group, if configured. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentity Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroupIdentity()); set => this._identity = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentity Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupIdentity()); set => this._identity = value; } /// /// The principal id of the container group identity. This property will only be provided for a system assigned identity. /// [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentityInternal)Identity).PrincipalId; } + public string IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentityInternal)Identity).PrincipalId; } /// /// The tenant id associated with the container group. This property will only be provided for a system assigned identity. /// [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentityInternal)Identity).TenantId; } + public string IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentityInternal)Identity).TenantId; } /// /// The type of identity used for the container group. The type 'SystemAssigned, UserAssigned' includes both an implicitly @@ -109,113 +109,136 @@ public partial class ContainerGroupProperties : /// group. /// [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ResourceIdentityType? IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentityInternal)Identity).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentityInternal)Identity).Type = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ResourceIdentityType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ResourceIdentityType? IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentityInternal)Identity).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentityInternal)Identity).Type = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ResourceIdentityType)""); } /// The list of user identities associated with the container group. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentityUserAssignedIdentities IdentityUserAssignedIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentityInternal)Identity).UserAssignedIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentityInternal)Identity).UserAssignedIdentity = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentityUserAssignedIdentities IdentityUserAssignedIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentityInternal)Identity).UserAssignedIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentityInternal)Identity).UserAssignedIdentity = value ?? null /* model class */; } /// The image registry credentials by which the container group is created from. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IImageRegistryCredential[] ImageRegistryCredentials { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).ImageRegistryCredentials; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).ImageRegistryCredentials = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredential[] ImageRegistryCredentials { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).ImageRegistryCredentials; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).ImageRegistryCredentials = value ?? null /* arrayOf */; } /// The init containers for a container group. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinition[] InitContainer { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).InitContainer; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).InitContainer = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinition[] InitContainer { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).InitContainer; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).InitContainer = value ?? null /* arrayOf */; } /// The events of this container group. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent[] InstanceViewEvent { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).InstanceViewEvent; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent[] InstanceViewEvent { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).InstanceViewEvent; } /// The state of the container group. Only valid in response. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string InstanceViewState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).InstanceViewState; } + public string InstanceViewState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).InstanceViewState; } + + /// The flag indicating whether the container group is created by standby pool. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public bool? IsCreatedFromStandbyPool { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).IsCreatedFromStandbyPool; } /// The log type to be used. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType? LogAnalyticLogType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).LogAnalyticLogType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).LogAnalyticLogType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType? LogAnalyticLogType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).LogAnalyticLogType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).LogAnalyticLogType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType)""); } /// Metadata for log analytics. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsMetadata LogAnalyticMetadata { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).LogAnalyticMetadata; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).LogAnalyticMetadata = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsMetadata LogAnalyticMetadata { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).LogAnalyticMetadata; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).LogAnalyticMetadata = value ?? null /* model class */; } /// The workspace id for log analytics [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string LogAnalyticWorkspaceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).LogAnalyticWorkspaceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).LogAnalyticWorkspaceId = value ?? null; } + public string LogAnalyticWorkspaceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).LogAnalyticWorkspaceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).LogAnalyticWorkspaceId = value ?? null; } /// The workspace key for log analytics [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string LogAnalyticWorkspaceKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).LogAnalyticWorkspaceKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).LogAnalyticWorkspaceKey = value ?? null; } + public string LogAnalyticWorkspaceKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).LogAnalyticWorkspaceKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).LogAnalyticWorkspaceKey = value ?? null; } /// The workspace resource id for log analytics [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string LogAnalyticWorkspaceResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).LogAnalyticWorkspaceResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).LogAnalyticWorkspaceResourceId = value ?? null; } + public string LogAnalyticWorkspaceResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).LogAnalyticWorkspaceResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).LogAnalyticWorkspaceResourceId = value ?? null; } /// Internal Acessors for ConfidentialComputeProperty - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IConfidentialComputeProperties Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal.ConfidentialComputeProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).ConfidentialComputeProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).ConfidentialComputeProperty = value; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfidentialComputeProperties Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal.ConfidentialComputeProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).ConfidentialComputeProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).ConfidentialComputeProperty = value; } /// Internal Acessors for Diagnostic - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupDiagnostics Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal.Diagnostic { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).Diagnostic; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).Diagnostic = value; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnostics Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal.Diagnostic { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).Diagnostic; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).Diagnostic = value; } /// Internal Acessors for DiagnosticLogAnalytic - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalytics Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal.DiagnosticLogAnalytic { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).DiagnosticLogAnalytic; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).DiagnosticLogAnalytic = value; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalytics Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal.DiagnosticLogAnalytic { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).DiagnosticLogAnalytic; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).DiagnosticLogAnalytic = value; } /// Internal Acessors for DnsConfig - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDnsConfiguration Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal.DnsConfig { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).DnsConfig; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).DnsConfig = value; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDnsConfiguration Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal.DnsConfig { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).DnsConfig; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).DnsConfig = value; } /// Internal Acessors for EncryptionProperty - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEncryptionProperties Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal.EncryptionProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).EncryptionProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).EncryptionProperty = value; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEncryptionProperties Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal.EncryptionProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).EncryptionProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).EncryptionProperty = value; } /// Internal Acessors for IPAddress - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IIPAddress Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal.IPAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).IPAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).IPAddress = value; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddress Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal.IPAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).IPAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).IPAddress = value; } /// Internal Acessors for IPAddressFqdn - string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal.IPAddressFqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).IPAddressFqdn; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).IPAddressFqdn = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal.IPAddressFqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).IPAddressFqdn; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).IPAddressFqdn = value; } /// Internal Acessors for Identity - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentity Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroupIdentity()); set { {_identity = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentity Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupIdentity()); set { {_identity = value;} } } /// Internal Acessors for IdentityPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentityInternal)Identity).PrincipalId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentityInternal)Identity).PrincipalId = value; } /// Internal Acessors for IdentityTenantId - string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentityInternal)Identity).TenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentityInternal)Identity).TenantId = value; } /// Internal Acessors for InstanceView - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInstanceView Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal.InstanceView { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).InstanceView; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).InstanceView = value; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInstanceView Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal.InstanceView { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).InstanceView; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).InstanceView = value; } /// Internal Acessors for InstanceViewEvent - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent[] Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal.InstanceViewEvent { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).InstanceViewEvent; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).InstanceViewEvent = value; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent[] Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal.InstanceViewEvent { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).InstanceViewEvent; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).InstanceViewEvent = value; } /// Internal Acessors for InstanceViewState - string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal.InstanceViewState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).InstanceViewState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).InstanceViewState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal.InstanceViewState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).InstanceViewState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).InstanceViewState = value; } + + /// Internal Acessors for IsCreatedFromStandbyPool + bool? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal.IsCreatedFromStandbyPool { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).IsCreatedFromStandbyPool; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).IsCreatedFromStandbyPool = value; } + + /// Internal Acessors for Profile + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileReferenceDefinition Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal.Profile { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).ContainerGroupProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).ContainerGroupProfile = value; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGenerated Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroupPropertiesAutoGenerated()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGenerated Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupPropertiesAutoGenerated()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).ProvisioningState = value; } + + /// Internal Acessors for StandbyPoolProfile + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IStandbyPoolProfileDefinition Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInternal.StandbyPoolProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).StandbyPoolProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).StandbyPoolProfile = value; } /// The operating system type required by the containers in the container group. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes OSType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).OSType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).OSType = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes? OSType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).OSType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).OSType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes)""); } /// The priority of the container group. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority? Priority { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).Priority; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).Priority = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority)""); } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority? Priority { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).Priority; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).Priority = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority)""); } + + /// + /// The container group profile reference id.This will be an ARM resource id in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}'. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public string ProfileId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).ContainerGroupProfileId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).ContainerGroupProfileId = value ?? null; } + + /// The container group profile reference revision. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public int? ProfileRevision { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).ContainerGroupProfileRevision; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).ContainerGroupProfileRevision = value ?? default(int); } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGenerated _property; + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGenerated _property; /// The container group properties [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGenerated Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroupPropertiesAutoGenerated()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGenerated Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupPropertiesAutoGenerated()); set => this._property = value; } /// /// The provisioning state of the container group. This only appears in the response. /// [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).ProvisioningState; } + public string ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).ProvisioningState; } /// /// Restart policy for all containers within the container group. @@ -224,19 +247,32 @@ public partial class ContainerGroupProperties : /// - `Never` Never restart /// [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy? RestartPolicy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).RestartPolicy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).RestartPolicy = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy)""); } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy? RestartPolicy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).RestartPolicy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).RestartPolicy = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy)""); } /// The SKU for a container group. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku? Sku { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).Sku; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).Sku = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku)""); } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku? Sku { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).Sku; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).Sku = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku)""); } + + /// + /// The flag to determine whether ACI should fail the create request if the container group can not be obtained from standby + /// pool. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public bool? StandbyPoolProfileFailContainerGroupCreateOnReuseFailure { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).StandbyPoolProfileFailContainerGroupCreateOnReuseFailure; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).StandbyPoolProfileFailContainerGroupCreateOnReuseFailure = value ?? default(bool); } + + /// + /// The standby pool profile reference id.This will be an ARM resource id in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyContainerGroupPools/{standbyPoolName}'. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public string StandbyPoolProfileId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).StandbyPoolProfileId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).StandbyPoolProfileId = value ?? null; } /// The subnet resource IDs for a container group. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupSubnetId[] SubnetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).SubnetId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).SubnetId = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupSubnetId[] SubnetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).SubnetId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).SubnetId = value ?? null /* arrayOf */; } /// The list of volumes that can be mounted by containers in this container group. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolume[] Volume { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).Volume; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).Volume = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolume[] Volume { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).Volume; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)Property).Volume = value ?? null /* arrayOf */; } /// Creates an new instance. public ContainerGroupProperties() @@ -262,8 +298,8 @@ public partial interface IContainerGroupProperties : ReadOnly = false, Description = @"The containers within the container group.", SerializedName = @"containers", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainer) })] - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainer[] Container { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainer) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainer[] Container { get; set; } /// The DNS servers for the container group. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = false, @@ -326,8 +362,8 @@ public partial interface IContainerGroupProperties : ReadOnly = false, Description = @"extensions used by virtual kubelet", SerializedName = @"extensions", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpec) })] - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpec[] Extension { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpec) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpec[] Extension { get; set; } /// /// The value representing the security enum. The 'Unsecure' value is the default value if not selected and means the object's /// domain name label is not secured against subdomain takeover. The 'TenantReuse' value is the default value if selected @@ -373,8 +409,8 @@ public partial interface IContainerGroupProperties : ReadOnly = false, Description = @"The list of ports exposed on the container group.", SerializedName = @"ports", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IPort) })] - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IPort[] IPAddressPort { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPort) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPort[] IPAddressPort { get; set; } /// Specifies if the IP is exposed to the public internet or private VNET. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = false, @@ -421,32 +457,32 @@ public partial interface IContainerGroupProperties : ReadOnly = false, Description = @"The list of user identities associated with the container group.", SerializedName = @"userAssignedIdentities", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentityUserAssignedIdentities) })] - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentityUserAssignedIdentities IdentityUserAssignedIdentity { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentityUserAssignedIdentities) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentityUserAssignedIdentities IdentityUserAssignedIdentity { get; set; } /// The image registry credentials by which the container group is created from. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = false, ReadOnly = false, Description = @"The image registry credentials by which the container group is created from.", SerializedName = @"imageRegistryCredentials", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IImageRegistryCredential) })] - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IImageRegistryCredential[] ImageRegistryCredentials { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredential) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredential[] ImageRegistryCredentials { get; set; } /// The init containers for a container group. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = false, ReadOnly = false, Description = @"The init containers for a container group.", SerializedName = @"initContainers", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinition) })] - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinition[] InitContainer { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinition) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinition[] InitContainer { get; set; } /// The events of this container group. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = false, ReadOnly = true, Description = @"The events of this container group.", SerializedName = @"events", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent) })] - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent[] InstanceViewEvent { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent[] InstanceViewEvent { get; } /// The state of the container group. Only valid in response. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = false, @@ -455,6 +491,14 @@ public partial interface IContainerGroupProperties : SerializedName = @"state", PossibleTypes = new [] { typeof(string) })] string InstanceViewState { get; } + /// The flag indicating whether the container group is created by standby pool. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The flag indicating whether the container group is created by standby pool.", + SerializedName = @"isCreatedFromStandbyPool", + PossibleTypes = new [] { typeof(bool) })] + bool? IsCreatedFromStandbyPool { get; } /// The log type to be used. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = false, @@ -469,8 +513,8 @@ public partial interface IContainerGroupProperties : ReadOnly = false, Description = @"Metadata for log analytics.", SerializedName = @"metadata", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsMetadata) })] - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsMetadata LogAnalyticMetadata { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsMetadata) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsMetadata LogAnalyticMetadata { get; set; } /// The workspace id for log analytics [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = false, @@ -497,12 +541,12 @@ public partial interface IContainerGroupProperties : string LogAnalyticWorkspaceResourceId { get; set; } /// The operating system type required by the containers in the container group. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Description = @"The operating system type required by the containers in the container group.", SerializedName = @"osType", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes) })] - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes OSType { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes? OSType { get; set; } /// The priority of the container group. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = false, @@ -512,6 +556,24 @@ public partial interface IContainerGroupProperties : PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority) })] Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority? Priority { get; set; } /// + /// The container group profile reference id.This will be an ARM resource id in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}'. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The container group profile reference id.This will be an ARM resource id in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}'.", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string ProfileId { get; set; } + /// The container group profile reference revision. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The container group profile reference revision.", + SerializedName = @"revision", + PossibleTypes = new [] { typeof(int) })] + int? ProfileRevision { get; set; } + /// /// The provisioning state of the container group. This only appears in the response. /// [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( @@ -546,22 +608,43 @@ public partial interface IContainerGroupProperties : SerializedName = @"sku", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku) })] Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku? Sku { get; set; } + /// + /// The flag to determine whether ACI should fail the create request if the container group can not be obtained from standby + /// pool. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The flag to determine whether ACI should fail the create request if the container group can not be obtained from standby pool.", + SerializedName = @"failContainerGroupCreateOnReuseFailure", + PossibleTypes = new [] { typeof(bool) })] + bool? StandbyPoolProfileFailContainerGroupCreateOnReuseFailure { get; set; } + /// + /// The standby pool profile reference id.This will be an ARM resource id in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyContainerGroupPools/{standbyPoolName}'. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The standby pool profile reference id.This will be an ARM resource id in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyContainerGroupPools/{standbyPoolName}'.", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string StandbyPoolProfileId { get; set; } /// The subnet resource IDs for a container group. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = false, ReadOnly = false, Description = @"The subnet resource IDs for a container group.", SerializedName = @"subnetIds", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupSubnetId) })] - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupSubnetId[] SubnetId { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupSubnetId) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupSubnetId[] SubnetId { get; set; } /// The list of volumes that can be mounted by containers in this container group. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = false, ReadOnly = false, Description = @"The list of volumes that can be mounted by containers in this container group.", SerializedName = @"volumes", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolume) })] - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolume[] Volume { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolume) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolume[] Volume { get; set; } } /// The container group properties @@ -569,17 +652,17 @@ internal partial interface IContainerGroupPropertiesInternal { /// The properties for confidential container group - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IConfidentialComputeProperties ConfidentialComputeProperty { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfidentialComputeProperties ConfidentialComputeProperty { get; set; } /// The base64 encoded confidential compute enforcement policy string ConfidentialComputePropertyCcePolicy { get; set; } /// The containers within the container group. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainer[] Container { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainer[] Container { get; set; } /// The diagnostic information for a container group. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupDiagnostics Diagnostic { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnostics Diagnostic { get; set; } /// Container group log analytics information. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalytics DiagnosticLogAnalytic { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalytics DiagnosticLogAnalytic { get; set; } /// The DNS config information for a container group. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDnsConfiguration DnsConfig { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDnsConfiguration DnsConfig { get; set; } /// The DNS servers for the container group. string[] DnsConfigNameServer { get; set; } /// The DNS options for the container group. @@ -587,7 +670,7 @@ internal partial interface IContainerGroupPropertiesInternal /// The DNS search domains for hostname lookup in the container group. string DnsConfigSearchDomain { get; set; } /// The encryption properties for a container group. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEncryptionProperties EncryptionProperty { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEncryptionProperties EncryptionProperty { get; set; } /// The keyvault managed identity. string EncryptionPropertyIdentity { get; set; } /// The encryption key name. @@ -597,9 +680,9 @@ internal partial interface IContainerGroupPropertiesInternal /// The keyvault base url. string EncryptionPropertyVaultBaseUrl { get; set; } /// extensions used by virtual kubelet - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpec[] Extension { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpec[] Extension { get; set; } /// The IP address type of the container group. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IIPAddress IPAddress { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddress IPAddress { get; set; } /// /// The value representing the security enum. The 'Unsecure' value is the default value if not selected and means the object's /// domain name label is not secured against subdomain takeover. The 'TenantReuse' value is the default value if selected @@ -616,11 +699,11 @@ internal partial interface IContainerGroupPropertiesInternal /// The IP exposed to the public internet. string IPAddressIP { get; set; } /// The list of ports exposed on the container group. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IPort[] IPAddressPort { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPort[] IPAddressPort { get; set; } /// Specifies if the IP is exposed to the public internet or private VNET. Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType? IPAddressType { get; set; } /// The identity of the container group, if configured. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentity Identity { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentity Identity { get; set; } /// /// The principal id of the container group identity. This property will only be provided for a system assigned identity. /// @@ -636,21 +719,23 @@ internal partial interface IContainerGroupPropertiesInternal /// Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ResourceIdentityType? IdentityType { get; set; } /// The list of user identities associated with the container group. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentityUserAssignedIdentities IdentityUserAssignedIdentity { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentityUserAssignedIdentities IdentityUserAssignedIdentity { get; set; } /// The image registry credentials by which the container group is created from. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IImageRegistryCredential[] ImageRegistryCredentials { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredential[] ImageRegistryCredentials { get; set; } /// The init containers for a container group. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinition[] InitContainer { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinition[] InitContainer { get; set; } /// The instance view of the container group. Only valid in response. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInstanceView InstanceView { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInstanceView InstanceView { get; set; } /// The events of this container group. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent[] InstanceViewEvent { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent[] InstanceViewEvent { get; set; } /// The state of the container group. Only valid in response. string InstanceViewState { get; set; } + /// The flag indicating whether the container group is created by standby pool. + bool? IsCreatedFromStandbyPool { get; set; } /// The log type to be used. Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType? LogAnalyticLogType { get; set; } /// Metadata for log analytics. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsMetadata LogAnalyticMetadata { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsMetadata LogAnalyticMetadata { get; set; } /// The workspace id for log analytics string LogAnalyticWorkspaceId { get; set; } /// The workspace key for log analytics @@ -658,11 +743,19 @@ internal partial interface IContainerGroupPropertiesInternal /// The workspace resource id for log analytics string LogAnalyticWorkspaceResourceId { get; set; } /// The operating system type required by the containers in the container group. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes OSType { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes? OSType { get; set; } /// The priority of the container group. Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority? Priority { get; set; } + /// The reference container group profile properties. + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileReferenceDefinition Profile { get; set; } + /// + /// The container group profile reference id.This will be an ARM resource id in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}'. + /// + string ProfileId { get; set; } + /// The container group profile reference revision. + int? ProfileRevision { get; set; } /// The container group properties - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGenerated Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGenerated Property { get; set; } /// /// The provisioning state of the container group. This only appears in the response. /// @@ -676,10 +769,21 @@ internal partial interface IContainerGroupPropertiesInternal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy? RestartPolicy { get; set; } /// The SKU for a container group. Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku? Sku { get; set; } + /// The reference standby pool profile properties. + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IStandbyPoolProfileDefinition StandbyPoolProfile { get; set; } + /// + /// The flag to determine whether ACI should fail the create request if the container group can not be obtained from standby + /// pool. + /// + bool? StandbyPoolProfileFailContainerGroupCreateOnReuseFailure { get; set; } + /// + /// The standby pool profile reference id.This will be an ARM resource id in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyContainerGroupPools/{standbyPoolName}'. + /// + string StandbyPoolProfileId { get; set; } /// The subnet resource IDs for a container group. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupSubnetId[] SubnetId { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupSubnetId[] SubnetId { get; set; } /// The list of volumes that can be mounted by containers in this container group. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolume[] Volume { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolume[] Volume { get; set; } } } \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupProperties.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProperties.json.cs similarity index 95% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupProperties.json.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProperties.json.cs index acb47d2c0dfb..1a9f7320f64e 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupProperties.json.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -65,19 +65,19 @@ internal ContainerGroupProperties(Microsoft.Azure.PowerShell.Cmdlets.ContainerIn { return; } - {_identity = If( json?.PropertyT("identity"), out var __jsonIdentity) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroupIdentity.FromJson(__jsonIdentity) : Identity;} - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroupPropertiesAutoGenerated.FromJson(__jsonProperties) : Property;} + {_identity = If( json?.PropertyT("identity"), out var __jsonIdentity) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupIdentity.FromJson(__jsonIdentity) : Identity;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupPropertiesAutoGenerated.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new ContainerGroupProperties(json) : null; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupPropertiesAutoGenerated.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupPropertiesAutoGenerated.PowerShell.cs similarity index 62% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupPropertiesAutoGenerated.PowerShell.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupPropertiesAutoGenerated.PowerShell.cs index 8fe36772744e..d371fcd72b95 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupPropertiesAutoGenerated.PowerShell.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupPropertiesAutoGenerated.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -63,7 +63,7 @@ public partial class ContainerGroupPropertiesAutoGenerated partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -78,165 +78,193 @@ internal ContainerGroupPropertiesAutoGenerated(global::System.Collections.IDicti // actually deserialize if (content.Contains("IPAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).IPAddress = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IIPAddress) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).IPAddress, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IPAddressTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).IPAddress = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddress) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).IPAddress, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPAddressTypeConverter.ConvertFrom); } if (content.Contains("InstanceView")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).InstanceView = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInstanceView) content.GetValueForProperty("InstanceView",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).InstanceView, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroupPropertiesInstanceViewTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).InstanceView = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInstanceView) content.GetValueForProperty("InstanceView",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).InstanceView, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupPropertiesInstanceViewTypeConverter.ConvertFrom); } if (content.Contains("Diagnostic")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).Diagnostic = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupDiagnostics) content.GetValueForProperty("Diagnostic",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).Diagnostic, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroupDiagnosticsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).Diagnostic = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnostics) content.GetValueForProperty("Diagnostic",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).Diagnostic, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupDiagnosticsTypeConverter.ConvertFrom); } if (content.Contains("DnsConfig")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).DnsConfig = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDnsConfiguration) content.GetValueForProperty("DnsConfig",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).DnsConfig, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.DnsConfigurationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).DnsConfig = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDnsConfiguration) content.GetValueForProperty("DnsConfig",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).DnsConfig, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.DnsConfigurationTypeConverter.ConvertFrom); } if (content.Contains("EncryptionProperty")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).EncryptionProperty = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEncryptionProperties) content.GetValueForProperty("EncryptionProperty",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).EncryptionProperty, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.EncryptionPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).EncryptionProperty = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEncryptionProperties) content.GetValueForProperty("EncryptionProperty",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).EncryptionProperty, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.EncryptionPropertiesTypeConverter.ConvertFrom); } if (content.Contains("ConfidentialComputeProperty")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).ConfidentialComputeProperty = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IConfidentialComputeProperties) content.GetValueForProperty("ConfidentialComputeProperty",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).ConfidentialComputeProperty, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ConfidentialComputePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).ConfidentialComputeProperty = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfidentialComputeProperties) content.GetValueForProperty("ConfidentialComputeProperty",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).ConfidentialComputeProperty, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ConfidentialComputePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("ContainerGroupProfile")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).ContainerGroupProfile = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileReferenceDefinition) content.GetValueForProperty("ContainerGroupProfile",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).ContainerGroupProfile, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupProfileReferenceDefinitionTypeConverter.ConvertFrom); + } + if (content.Contains("StandbyPoolProfile")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).StandbyPoolProfile = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IStandbyPoolProfileDefinition) content.GetValueForProperty("StandbyPoolProfile",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).StandbyPoolProfile, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.StandbyPoolProfileDefinitionTypeConverter.ConvertFrom); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).ProvisioningState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).ProvisioningState, global::System.Convert.ToString); } if (content.Contains("Container")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).Container = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainer[]) content.GetValueForProperty("Container",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).Container, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).Container = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainer[]) content.GetValueForProperty("Container",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).Container, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerTypeConverter.ConvertFrom)); } if (content.Contains("ImageRegistryCredentials")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).ImageRegistryCredentials = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IImageRegistryCredential[]) content.GetValueForProperty("ImageRegistryCredentials",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).ImageRegistryCredentials, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ImageRegistryCredentialTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).ImageRegistryCredentials = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredential[]) content.GetValueForProperty("ImageRegistryCredentials",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).ImageRegistryCredentials, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ImageRegistryCredentialTypeConverter.ConvertFrom)); } if (content.Contains("RestartPolicy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).RestartPolicy = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy?) content.GetValueForProperty("RestartPolicy",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).RestartPolicy, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).RestartPolicy = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy?) content.GetValueForProperty("RestartPolicy",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).RestartPolicy, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy.CreateFrom); } if (content.Contains("OSType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).OSType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).OSType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).OSType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes?) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).OSType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes.CreateFrom); } if (content.Contains("Volume")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).Volume = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolume[]) content.GetValueForProperty("Volume",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).Volume, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.VolumeTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).Volume = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolume[]) content.GetValueForProperty("Volume",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).Volume, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.VolumeTypeConverter.ConvertFrom)); } if (content.Contains("SubnetId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).SubnetId = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupSubnetId[]) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).SubnetId, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroupSubnetIdTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).SubnetId = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupSubnetId[]) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).SubnetId, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupSubnetIdTypeConverter.ConvertFrom)); } if (content.Contains("Sku")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku?) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku?) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku.CreateFrom); } if (content.Contains("InitContainer")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).InitContainer = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinition[]) content.GetValueForProperty("InitContainer",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).InitContainer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.InitContainerDefinitionTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).InitContainer = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinition[]) content.GetValueForProperty("InitContainer",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).InitContainer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.InitContainerDefinitionTypeConverter.ConvertFrom)); } if (content.Contains("Extension")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).Extension = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpec[]) content.GetValueForProperty("Extension",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).Extension, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.DeploymentExtensionSpecTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).Extension = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpec[]) content.GetValueForProperty("Extension",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).Extension, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.DeploymentExtensionSpecTypeConverter.ConvertFrom)); } if (content.Contains("Priority")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).Priority = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority?) content.GetValueForProperty("Priority",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).Priority, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).Priority = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority?) content.GetValueForProperty("Priority",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).Priority, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority.CreateFrom); + } + if (content.Contains("IsCreatedFromStandbyPool")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).IsCreatedFromStandbyPool = (bool?) content.GetValueForProperty("IsCreatedFromStandbyPool",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).IsCreatedFromStandbyPool, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("DiagnosticLogAnalytic")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).DiagnosticLogAnalytic = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalytics) content.GetValueForProperty("DiagnosticLogAnalytic",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).DiagnosticLogAnalytic, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.LogAnalyticsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).DiagnosticLogAnalytic = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalytics) content.GetValueForProperty("DiagnosticLogAnalytic",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).DiagnosticLogAnalytic, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.LogAnalyticsTypeConverter.ConvertFrom); } if (content.Contains("EncryptionPropertyKeyName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).EncryptionPropertyKeyName = (string) content.GetValueForProperty("EncryptionPropertyKeyName",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).EncryptionPropertyKeyName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).EncryptionPropertyKeyName = (string) content.GetValueForProperty("EncryptionPropertyKeyName",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).EncryptionPropertyKeyName, global::System.Convert.ToString); } if (content.Contains("EncryptionPropertyKeyVersion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).EncryptionPropertyKeyVersion = (string) content.GetValueForProperty("EncryptionPropertyKeyVersion",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).EncryptionPropertyKeyVersion, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).EncryptionPropertyKeyVersion = (string) content.GetValueForProperty("EncryptionPropertyKeyVersion",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).EncryptionPropertyKeyVersion, global::System.Convert.ToString); } if (content.Contains("EncryptionPropertyIdentity")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).EncryptionPropertyIdentity = (string) content.GetValueForProperty("EncryptionPropertyIdentity",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).EncryptionPropertyIdentity, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).EncryptionPropertyIdentity = (string) content.GetValueForProperty("EncryptionPropertyIdentity",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).EncryptionPropertyIdentity, global::System.Convert.ToString); } if (content.Contains("ConfidentialComputePropertyCcePolicy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).ConfidentialComputePropertyCcePolicy = (string) content.GetValueForProperty("ConfidentialComputePropertyCcePolicy",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).ConfidentialComputePropertyCcePolicy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).ConfidentialComputePropertyCcePolicy = (string) content.GetValueForProperty("ConfidentialComputePropertyCcePolicy",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).ConfidentialComputePropertyCcePolicy, global::System.Convert.ToString); } if (content.Contains("IPAddressPort")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).IPAddressPort = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IPort[]) content.GetValueForProperty("IPAddressPort",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).IPAddressPort, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.PortTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).IPAddressPort = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPort[]) content.GetValueForProperty("IPAddressPort",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).IPAddressPort, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.PortTypeConverter.ConvertFrom)); } if (content.Contains("IPAddressType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).IPAddressType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType) content.GetValueForProperty("IPAddressType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).IPAddressType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).IPAddressType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType) content.GetValueForProperty("IPAddressType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).IPAddressType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType.CreateFrom); } if (content.Contains("IPAddressIP")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).IPAddressIP = (string) content.GetValueForProperty("IPAddressIP",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).IPAddressIP, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).IPAddressIP = (string) content.GetValueForProperty("IPAddressIP",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).IPAddressIP, global::System.Convert.ToString); } if (content.Contains("IPAddressDnsNameLabel")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).IPAddressDnsNameLabel = (string) content.GetValueForProperty("IPAddressDnsNameLabel",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).IPAddressDnsNameLabel, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).IPAddressDnsNameLabel = (string) content.GetValueForProperty("IPAddressDnsNameLabel",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).IPAddressDnsNameLabel, global::System.Convert.ToString); } if (content.Contains("IPAddressAutoGeneratedDomainNameLabelScope")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).IPAddressAutoGeneratedDomainNameLabelScope = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy?) content.GetValueForProperty("IPAddressAutoGeneratedDomainNameLabelScope",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).IPAddressAutoGeneratedDomainNameLabelScope, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).IPAddressAutoGeneratedDomainNameLabelScope = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy?) content.GetValueForProperty("IPAddressAutoGeneratedDomainNameLabelScope",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).IPAddressAutoGeneratedDomainNameLabelScope, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy.CreateFrom); } if (content.Contains("IPAddressFqdn")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).IPAddressFqdn = (string) content.GetValueForProperty("IPAddressFqdn",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).IPAddressFqdn, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).IPAddressFqdn = (string) content.GetValueForProperty("IPAddressFqdn",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).IPAddressFqdn, global::System.Convert.ToString); } if (content.Contains("InstanceViewEvent")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).InstanceViewEvent = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent[]) content.GetValueForProperty("InstanceViewEvent",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).InstanceViewEvent, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.EventTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).InstanceViewEvent = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent[]) content.GetValueForProperty("InstanceViewEvent",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).InstanceViewEvent, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.EventTypeConverter.ConvertFrom)); } if (content.Contains("InstanceViewState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).InstanceViewState = (string) content.GetValueForProperty("InstanceViewState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).InstanceViewState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).InstanceViewState = (string) content.GetValueForProperty("InstanceViewState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).InstanceViewState, global::System.Convert.ToString); } if (content.Contains("LogAnalyticWorkspaceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).LogAnalyticWorkspaceId = (string) content.GetValueForProperty("LogAnalyticWorkspaceId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).LogAnalyticWorkspaceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).LogAnalyticWorkspaceId = (string) content.GetValueForProperty("LogAnalyticWorkspaceId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).LogAnalyticWorkspaceId, global::System.Convert.ToString); } if (content.Contains("LogAnalyticWorkspaceKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).LogAnalyticWorkspaceKey = (string) content.GetValueForProperty("LogAnalyticWorkspaceKey",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).LogAnalyticWorkspaceKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).LogAnalyticWorkspaceKey = (string) content.GetValueForProperty("LogAnalyticWorkspaceKey",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).LogAnalyticWorkspaceKey, global::System.Convert.ToString); } if (content.Contains("LogAnalyticLogType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).LogAnalyticLogType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType?) content.GetValueForProperty("LogAnalyticLogType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).LogAnalyticLogType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).LogAnalyticLogType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType?) content.GetValueForProperty("LogAnalyticLogType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).LogAnalyticLogType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType.CreateFrom); } if (content.Contains("LogAnalyticMetadata")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).LogAnalyticMetadata = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsMetadata) content.GetValueForProperty("LogAnalyticMetadata",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).LogAnalyticMetadata, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.LogAnalyticsMetadataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).LogAnalyticMetadata = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsMetadata) content.GetValueForProperty("LogAnalyticMetadata",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).LogAnalyticMetadata, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.LogAnalyticsMetadataTypeConverter.ConvertFrom); } if (content.Contains("DnsConfigNameServer")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).DnsConfigNameServer = (string[]) content.GetValueForProperty("DnsConfigNameServer",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).DnsConfigNameServer, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).DnsConfigNameServer = (string[]) content.GetValueForProperty("DnsConfigNameServer",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).DnsConfigNameServer, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("DnsConfigSearchDomain")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).DnsConfigSearchDomain = (string) content.GetValueForProperty("DnsConfigSearchDomain",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).DnsConfigSearchDomain, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).DnsConfigSearchDomain = (string) content.GetValueForProperty("DnsConfigSearchDomain",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).DnsConfigSearchDomain, global::System.Convert.ToString); } if (content.Contains("DnsConfigOption")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).DnsConfigOption = (string) content.GetValueForProperty("DnsConfigOption",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).DnsConfigOption, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).DnsConfigOption = (string) content.GetValueForProperty("DnsConfigOption",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).DnsConfigOption, global::System.Convert.ToString); } if (content.Contains("EncryptionPropertyVaultBaseUrl")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).EncryptionPropertyVaultBaseUrl = (string) content.GetValueForProperty("EncryptionPropertyVaultBaseUrl",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).EncryptionPropertyVaultBaseUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).EncryptionPropertyVaultBaseUrl = (string) content.GetValueForProperty("EncryptionPropertyVaultBaseUrl",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).EncryptionPropertyVaultBaseUrl, global::System.Convert.ToString); + } + if (content.Contains("ContainerGroupProfileId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).ContainerGroupProfileId = (string) content.GetValueForProperty("ContainerGroupProfileId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).ContainerGroupProfileId, global::System.Convert.ToString); + } + if (content.Contains("ContainerGroupProfileRevision")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).ContainerGroupProfileRevision = (int?) content.GetValueForProperty("ContainerGroupProfileRevision",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).ContainerGroupProfileRevision, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("StandbyPoolProfileId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).StandbyPoolProfileId = (string) content.GetValueForProperty("StandbyPoolProfileId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).StandbyPoolProfileId, global::System.Convert.ToString); + } + if (content.Contains("StandbyPoolProfileFailContainerGroupCreateOnReuseFailure")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).StandbyPoolProfileFailContainerGroupCreateOnReuseFailure = (bool?) content.GetValueForProperty("StandbyPoolProfileFailContainerGroupCreateOnReuseFailure",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).StandbyPoolProfileFailContainerGroupCreateOnReuseFailure, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("LogAnalyticWorkspaceResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).LogAnalyticWorkspaceResourceId = (string) content.GetValueForProperty("LogAnalyticWorkspaceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).LogAnalyticWorkspaceResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).LogAnalyticWorkspaceResourceId = (string) content.GetValueForProperty("LogAnalyticWorkspaceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).LogAnalyticWorkspaceResourceId, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -251,187 +279,215 @@ internal ContainerGroupPropertiesAutoGenerated(global::System.Management.Automat // actually deserialize if (content.Contains("IPAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).IPAddress = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IIPAddress) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).IPAddress, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IPAddressTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).IPAddress = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddress) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).IPAddress, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPAddressTypeConverter.ConvertFrom); } if (content.Contains("InstanceView")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).InstanceView = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInstanceView) content.GetValueForProperty("InstanceView",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).InstanceView, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroupPropertiesInstanceViewTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).InstanceView = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInstanceView) content.GetValueForProperty("InstanceView",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).InstanceView, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupPropertiesInstanceViewTypeConverter.ConvertFrom); } if (content.Contains("Diagnostic")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).Diagnostic = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupDiagnostics) content.GetValueForProperty("Diagnostic",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).Diagnostic, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroupDiagnosticsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).Diagnostic = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnostics) content.GetValueForProperty("Diagnostic",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).Diagnostic, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupDiagnosticsTypeConverter.ConvertFrom); } if (content.Contains("DnsConfig")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).DnsConfig = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDnsConfiguration) content.GetValueForProperty("DnsConfig",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).DnsConfig, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.DnsConfigurationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).DnsConfig = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDnsConfiguration) content.GetValueForProperty("DnsConfig",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).DnsConfig, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.DnsConfigurationTypeConverter.ConvertFrom); } if (content.Contains("EncryptionProperty")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).EncryptionProperty = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEncryptionProperties) content.GetValueForProperty("EncryptionProperty",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).EncryptionProperty, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.EncryptionPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).EncryptionProperty = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEncryptionProperties) content.GetValueForProperty("EncryptionProperty",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).EncryptionProperty, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.EncryptionPropertiesTypeConverter.ConvertFrom); } if (content.Contains("ConfidentialComputeProperty")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).ConfidentialComputeProperty = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IConfidentialComputeProperties) content.GetValueForProperty("ConfidentialComputeProperty",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).ConfidentialComputeProperty, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ConfidentialComputePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).ConfidentialComputeProperty = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfidentialComputeProperties) content.GetValueForProperty("ConfidentialComputeProperty",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).ConfidentialComputeProperty, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ConfidentialComputePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("ContainerGroupProfile")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).ContainerGroupProfile = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileReferenceDefinition) content.GetValueForProperty("ContainerGroupProfile",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).ContainerGroupProfile, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupProfileReferenceDefinitionTypeConverter.ConvertFrom); + } + if (content.Contains("StandbyPoolProfile")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).StandbyPoolProfile = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IStandbyPoolProfileDefinition) content.GetValueForProperty("StandbyPoolProfile",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).StandbyPoolProfile, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.StandbyPoolProfileDefinitionTypeConverter.ConvertFrom); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).ProvisioningState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).ProvisioningState, global::System.Convert.ToString); } if (content.Contains("Container")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).Container = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainer[]) content.GetValueForProperty("Container",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).Container, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).Container = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainer[]) content.GetValueForProperty("Container",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).Container, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerTypeConverter.ConvertFrom)); } if (content.Contains("ImageRegistryCredentials")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).ImageRegistryCredentials = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IImageRegistryCredential[]) content.GetValueForProperty("ImageRegistryCredentials",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).ImageRegistryCredentials, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ImageRegistryCredentialTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).ImageRegistryCredentials = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredential[]) content.GetValueForProperty("ImageRegistryCredentials",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).ImageRegistryCredentials, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ImageRegistryCredentialTypeConverter.ConvertFrom)); } if (content.Contains("RestartPolicy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).RestartPolicy = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy?) content.GetValueForProperty("RestartPolicy",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).RestartPolicy, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).RestartPolicy = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy?) content.GetValueForProperty("RestartPolicy",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).RestartPolicy, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy.CreateFrom); } if (content.Contains("OSType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).OSType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).OSType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).OSType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes?) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).OSType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes.CreateFrom); } if (content.Contains("Volume")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).Volume = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolume[]) content.GetValueForProperty("Volume",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).Volume, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.VolumeTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).Volume = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolume[]) content.GetValueForProperty("Volume",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).Volume, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.VolumeTypeConverter.ConvertFrom)); } if (content.Contains("SubnetId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).SubnetId = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupSubnetId[]) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).SubnetId, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroupSubnetIdTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).SubnetId = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupSubnetId[]) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).SubnetId, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupSubnetIdTypeConverter.ConvertFrom)); } if (content.Contains("Sku")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku?) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku?) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku.CreateFrom); } if (content.Contains("InitContainer")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).InitContainer = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinition[]) content.GetValueForProperty("InitContainer",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).InitContainer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.InitContainerDefinitionTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).InitContainer = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinition[]) content.GetValueForProperty("InitContainer",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).InitContainer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.InitContainerDefinitionTypeConverter.ConvertFrom)); } if (content.Contains("Extension")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).Extension = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpec[]) content.GetValueForProperty("Extension",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).Extension, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.DeploymentExtensionSpecTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).Extension = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpec[]) content.GetValueForProperty("Extension",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).Extension, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.DeploymentExtensionSpecTypeConverter.ConvertFrom)); } if (content.Contains("Priority")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).Priority = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority?) content.GetValueForProperty("Priority",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).Priority, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).Priority = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority?) content.GetValueForProperty("Priority",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).Priority, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority.CreateFrom); + } + if (content.Contains("IsCreatedFromStandbyPool")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).IsCreatedFromStandbyPool = (bool?) content.GetValueForProperty("IsCreatedFromStandbyPool",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).IsCreatedFromStandbyPool, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("DiagnosticLogAnalytic")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).DiagnosticLogAnalytic = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalytics) content.GetValueForProperty("DiagnosticLogAnalytic",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).DiagnosticLogAnalytic, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.LogAnalyticsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).DiagnosticLogAnalytic = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalytics) content.GetValueForProperty("DiagnosticLogAnalytic",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).DiagnosticLogAnalytic, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.LogAnalyticsTypeConverter.ConvertFrom); } if (content.Contains("EncryptionPropertyKeyName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).EncryptionPropertyKeyName = (string) content.GetValueForProperty("EncryptionPropertyKeyName",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).EncryptionPropertyKeyName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).EncryptionPropertyKeyName = (string) content.GetValueForProperty("EncryptionPropertyKeyName",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).EncryptionPropertyKeyName, global::System.Convert.ToString); } if (content.Contains("EncryptionPropertyKeyVersion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).EncryptionPropertyKeyVersion = (string) content.GetValueForProperty("EncryptionPropertyKeyVersion",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).EncryptionPropertyKeyVersion, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).EncryptionPropertyKeyVersion = (string) content.GetValueForProperty("EncryptionPropertyKeyVersion",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).EncryptionPropertyKeyVersion, global::System.Convert.ToString); } if (content.Contains("EncryptionPropertyIdentity")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).EncryptionPropertyIdentity = (string) content.GetValueForProperty("EncryptionPropertyIdentity",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).EncryptionPropertyIdentity, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).EncryptionPropertyIdentity = (string) content.GetValueForProperty("EncryptionPropertyIdentity",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).EncryptionPropertyIdentity, global::System.Convert.ToString); } if (content.Contains("ConfidentialComputePropertyCcePolicy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).ConfidentialComputePropertyCcePolicy = (string) content.GetValueForProperty("ConfidentialComputePropertyCcePolicy",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).ConfidentialComputePropertyCcePolicy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).ConfidentialComputePropertyCcePolicy = (string) content.GetValueForProperty("ConfidentialComputePropertyCcePolicy",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).ConfidentialComputePropertyCcePolicy, global::System.Convert.ToString); } if (content.Contains("IPAddressPort")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).IPAddressPort = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IPort[]) content.GetValueForProperty("IPAddressPort",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).IPAddressPort, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.PortTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).IPAddressPort = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPort[]) content.GetValueForProperty("IPAddressPort",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).IPAddressPort, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.PortTypeConverter.ConvertFrom)); } if (content.Contains("IPAddressType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).IPAddressType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType) content.GetValueForProperty("IPAddressType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).IPAddressType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).IPAddressType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType) content.GetValueForProperty("IPAddressType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).IPAddressType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType.CreateFrom); } if (content.Contains("IPAddressIP")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).IPAddressIP = (string) content.GetValueForProperty("IPAddressIP",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).IPAddressIP, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).IPAddressIP = (string) content.GetValueForProperty("IPAddressIP",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).IPAddressIP, global::System.Convert.ToString); } if (content.Contains("IPAddressDnsNameLabel")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).IPAddressDnsNameLabel = (string) content.GetValueForProperty("IPAddressDnsNameLabel",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).IPAddressDnsNameLabel, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).IPAddressDnsNameLabel = (string) content.GetValueForProperty("IPAddressDnsNameLabel",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).IPAddressDnsNameLabel, global::System.Convert.ToString); } if (content.Contains("IPAddressAutoGeneratedDomainNameLabelScope")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).IPAddressAutoGeneratedDomainNameLabelScope = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy?) content.GetValueForProperty("IPAddressAutoGeneratedDomainNameLabelScope",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).IPAddressAutoGeneratedDomainNameLabelScope, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).IPAddressAutoGeneratedDomainNameLabelScope = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy?) content.GetValueForProperty("IPAddressAutoGeneratedDomainNameLabelScope",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).IPAddressAutoGeneratedDomainNameLabelScope, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy.CreateFrom); } if (content.Contains("IPAddressFqdn")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).IPAddressFqdn = (string) content.GetValueForProperty("IPAddressFqdn",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).IPAddressFqdn, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).IPAddressFqdn = (string) content.GetValueForProperty("IPAddressFqdn",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).IPAddressFqdn, global::System.Convert.ToString); } if (content.Contains("InstanceViewEvent")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).InstanceViewEvent = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent[]) content.GetValueForProperty("InstanceViewEvent",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).InstanceViewEvent, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.EventTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).InstanceViewEvent = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent[]) content.GetValueForProperty("InstanceViewEvent",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).InstanceViewEvent, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.EventTypeConverter.ConvertFrom)); } if (content.Contains("InstanceViewState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).InstanceViewState = (string) content.GetValueForProperty("InstanceViewState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).InstanceViewState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).InstanceViewState = (string) content.GetValueForProperty("InstanceViewState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).InstanceViewState, global::System.Convert.ToString); } if (content.Contains("LogAnalyticWorkspaceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).LogAnalyticWorkspaceId = (string) content.GetValueForProperty("LogAnalyticWorkspaceId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).LogAnalyticWorkspaceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).LogAnalyticWorkspaceId = (string) content.GetValueForProperty("LogAnalyticWorkspaceId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).LogAnalyticWorkspaceId, global::System.Convert.ToString); } if (content.Contains("LogAnalyticWorkspaceKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).LogAnalyticWorkspaceKey = (string) content.GetValueForProperty("LogAnalyticWorkspaceKey",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).LogAnalyticWorkspaceKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).LogAnalyticWorkspaceKey = (string) content.GetValueForProperty("LogAnalyticWorkspaceKey",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).LogAnalyticWorkspaceKey, global::System.Convert.ToString); } if (content.Contains("LogAnalyticLogType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).LogAnalyticLogType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType?) content.GetValueForProperty("LogAnalyticLogType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).LogAnalyticLogType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).LogAnalyticLogType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType?) content.GetValueForProperty("LogAnalyticLogType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).LogAnalyticLogType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType.CreateFrom); } if (content.Contains("LogAnalyticMetadata")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).LogAnalyticMetadata = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsMetadata) content.GetValueForProperty("LogAnalyticMetadata",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).LogAnalyticMetadata, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.LogAnalyticsMetadataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).LogAnalyticMetadata = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsMetadata) content.GetValueForProperty("LogAnalyticMetadata",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).LogAnalyticMetadata, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.LogAnalyticsMetadataTypeConverter.ConvertFrom); } if (content.Contains("DnsConfigNameServer")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).DnsConfigNameServer = (string[]) content.GetValueForProperty("DnsConfigNameServer",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).DnsConfigNameServer, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).DnsConfigNameServer = (string[]) content.GetValueForProperty("DnsConfigNameServer",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).DnsConfigNameServer, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("DnsConfigSearchDomain")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).DnsConfigSearchDomain = (string) content.GetValueForProperty("DnsConfigSearchDomain",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).DnsConfigSearchDomain, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).DnsConfigSearchDomain = (string) content.GetValueForProperty("DnsConfigSearchDomain",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).DnsConfigSearchDomain, global::System.Convert.ToString); } if (content.Contains("DnsConfigOption")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).DnsConfigOption = (string) content.GetValueForProperty("DnsConfigOption",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).DnsConfigOption, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).DnsConfigOption = (string) content.GetValueForProperty("DnsConfigOption",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).DnsConfigOption, global::System.Convert.ToString); } if (content.Contains("EncryptionPropertyVaultBaseUrl")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).EncryptionPropertyVaultBaseUrl = (string) content.GetValueForProperty("EncryptionPropertyVaultBaseUrl",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).EncryptionPropertyVaultBaseUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).EncryptionPropertyVaultBaseUrl = (string) content.GetValueForProperty("EncryptionPropertyVaultBaseUrl",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).EncryptionPropertyVaultBaseUrl, global::System.Convert.ToString); + } + if (content.Contains("ContainerGroupProfileId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).ContainerGroupProfileId = (string) content.GetValueForProperty("ContainerGroupProfileId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).ContainerGroupProfileId, global::System.Convert.ToString); + } + if (content.Contains("ContainerGroupProfileRevision")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).ContainerGroupProfileRevision = (int?) content.GetValueForProperty("ContainerGroupProfileRevision",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).ContainerGroupProfileRevision, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("StandbyPoolProfileId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).StandbyPoolProfileId = (string) content.GetValueForProperty("StandbyPoolProfileId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).StandbyPoolProfileId, global::System.Convert.ToString); + } + if (content.Contains("StandbyPoolProfileFailContainerGroupCreateOnReuseFailure")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).StandbyPoolProfileFailContainerGroupCreateOnReuseFailure = (bool?) content.GetValueForProperty("StandbyPoolProfileFailContainerGroupCreateOnReuseFailure",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).StandbyPoolProfileFailContainerGroupCreateOnReuseFailure, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("LogAnalyticWorkspaceResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).LogAnalyticWorkspaceResourceId = (string) content.GetValueForProperty("LogAnalyticWorkspaceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).LogAnalyticWorkspaceResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).LogAnalyticWorkspaceResourceId = (string) content.GetValueForProperty("LogAnalyticWorkspaceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal)this).LogAnalyticWorkspaceResourceId, global::System.Convert.ToString); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGenerated DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGenerated DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ContainerGroupPropertiesAutoGenerated(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGenerated DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGenerated DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ContainerGroupPropertiesAutoGenerated(content); } @@ -444,7 +500,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api202 /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGenerated FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGenerated FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupPropertiesAutoGenerated.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupPropertiesAutoGenerated.TypeConverter.cs similarity index 98% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupPropertiesAutoGenerated.TypeConverter.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupPropertiesAutoGenerated.TypeConverter.cs index 911c77a41eb1..3422599721a3 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupPropertiesAutoGenerated.TypeConverter.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupPropertiesAutoGenerated.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -109,14 +109,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGenerated ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGenerated ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGenerated).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGenerated).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupPropertiesAutoGenerated.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupPropertiesAutoGenerated.cs similarity index 69% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupPropertiesAutoGenerated.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupPropertiesAutoGenerated.cs index 94114d678847..81f238da4516 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupPropertiesAutoGenerated.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupPropertiesAutoGenerated.cs @@ -3,96 +3,113 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; /// The container group properties public partial class ContainerGroupPropertiesAutoGenerated : - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGenerated, - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGenerated, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IConfidentialComputeProperties _confidentialComputeProperty; + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfidentialComputeProperties _confidentialComputeProperty; /// The properties for confidential container group [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IConfidentialComputeProperties ConfidentialComputeProperty { get => (this._confidentialComputeProperty = this._confidentialComputeProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ConfidentialComputeProperties()); set => this._confidentialComputeProperty = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfidentialComputeProperties ConfidentialComputeProperty { get => (this._confidentialComputeProperty = this._confidentialComputeProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ConfidentialComputeProperties()); set => this._confidentialComputeProperty = value; } /// The base64 encoded confidential compute enforcement policy [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string ConfidentialComputePropertyCcePolicy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IConfidentialComputePropertiesInternal)ConfidentialComputeProperty).CcePolicy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IConfidentialComputePropertiesInternal)ConfidentialComputeProperty).CcePolicy = value ?? null; } + public string ConfidentialComputePropertyCcePolicy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfidentialComputePropertiesInternal)ConfidentialComputeProperty).CcePolicy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfidentialComputePropertiesInternal)ConfidentialComputeProperty).CcePolicy = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainer[] _container; + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainer[] _container; /// The containers within the container group. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainer[] Container { get => this._container; set => this._container = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainer[] Container { get => this._container; set => this._container = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileReferenceDefinition _containerGroupProfile; + + /// The reference container group profile properties. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileReferenceDefinition ContainerGroupProfile { get => (this._containerGroupProfile = this._containerGroupProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupProfileReferenceDefinition()); set => this._containerGroupProfile = value; } + + /// + /// The container group profile reference id.This will be an ARM resource id in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}'. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public string ContainerGroupProfileId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileReferenceDefinitionInternal)ContainerGroupProfile).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileReferenceDefinitionInternal)ContainerGroupProfile).Id = value ?? null; } + + /// The container group profile reference revision. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public int? ContainerGroupProfileRevision { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileReferenceDefinitionInternal)ContainerGroupProfile).Revision; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileReferenceDefinitionInternal)ContainerGroupProfile).Revision = value ?? default(int); } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupDiagnostics _diagnostic; + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnostics _diagnostic; /// The diagnostic information for a container group. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupDiagnostics Diagnostic { get => (this._diagnostic = this._diagnostic ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroupDiagnostics()); set => this._diagnostic = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnostics Diagnostic { get => (this._diagnostic = this._diagnostic ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupDiagnostics()); set => this._diagnostic = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDnsConfiguration _dnsConfig; + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDnsConfiguration _dnsConfig; /// The DNS config information for a container group. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDnsConfiguration DnsConfig { get => (this._dnsConfig = this._dnsConfig ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.DnsConfiguration()); set => this._dnsConfig = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDnsConfiguration DnsConfig { get => (this._dnsConfig = this._dnsConfig ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.DnsConfiguration()); set => this._dnsConfig = value; } /// The DNS servers for the container group. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string[] DnsConfigNameServer { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDnsConfigurationInternal)DnsConfig).NameServer; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDnsConfigurationInternal)DnsConfig).NameServer = value ?? null /* arrayOf */; } + public string[] DnsConfigNameServer { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDnsConfigurationInternal)DnsConfig).NameServer; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDnsConfigurationInternal)DnsConfig).NameServer = value ?? null /* arrayOf */; } /// The DNS options for the container group. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string DnsConfigOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDnsConfigurationInternal)DnsConfig).Option; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDnsConfigurationInternal)DnsConfig).Option = value ?? null; } + public string DnsConfigOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDnsConfigurationInternal)DnsConfig).Option; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDnsConfigurationInternal)DnsConfig).Option = value ?? null; } /// The DNS search domains for hostname lookup in the container group. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string DnsConfigSearchDomain { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDnsConfigurationInternal)DnsConfig).SearchDomain; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDnsConfigurationInternal)DnsConfig).SearchDomain = value ?? null; } + public string DnsConfigSearchDomain { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDnsConfigurationInternal)DnsConfig).SearchDomain; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDnsConfigurationInternal)DnsConfig).SearchDomain = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEncryptionProperties _encryptionProperty; + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEncryptionProperties _encryptionProperty; /// The encryption properties for a container group. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEncryptionProperties EncryptionProperty { get => (this._encryptionProperty = this._encryptionProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.EncryptionProperties()); set => this._encryptionProperty = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEncryptionProperties EncryptionProperty { get => (this._encryptionProperty = this._encryptionProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.EncryptionProperties()); set => this._encryptionProperty = value; } /// The keyvault managed identity. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string EncryptionPropertyIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEncryptionPropertiesInternal)EncryptionProperty).Identity; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEncryptionPropertiesInternal)EncryptionProperty).Identity = value ?? null; } + public string EncryptionPropertyIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEncryptionPropertiesInternal)EncryptionProperty).Identity; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEncryptionPropertiesInternal)EncryptionProperty).Identity = value ?? null; } /// The encryption key name. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string EncryptionPropertyKeyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEncryptionPropertiesInternal)EncryptionProperty).KeyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEncryptionPropertiesInternal)EncryptionProperty).KeyName = value ?? null; } + public string EncryptionPropertyKeyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEncryptionPropertiesInternal)EncryptionProperty).KeyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEncryptionPropertiesInternal)EncryptionProperty).KeyName = value ?? null; } /// The encryption key version. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string EncryptionPropertyKeyVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEncryptionPropertiesInternal)EncryptionProperty).KeyVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEncryptionPropertiesInternal)EncryptionProperty).KeyVersion = value ?? null; } + public string EncryptionPropertyKeyVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEncryptionPropertiesInternal)EncryptionProperty).KeyVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEncryptionPropertiesInternal)EncryptionProperty).KeyVersion = value ?? null; } /// The keyvault base url. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string EncryptionPropertyVaultBaseUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEncryptionPropertiesInternal)EncryptionProperty).VaultBaseUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEncryptionPropertiesInternal)EncryptionProperty).VaultBaseUrl = value ?? null; } + public string EncryptionPropertyVaultBaseUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEncryptionPropertiesInternal)EncryptionProperty).VaultBaseUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEncryptionPropertiesInternal)EncryptionProperty).VaultBaseUrl = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpec[] _extension; + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpec[] _extension; /// extensions used by virtual kubelet [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpec[] Extension { get => this._extension; set => this._extension = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpec[] Extension { get => this._extension; set => this._extension = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IIPAddress _iPAddress; + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddress _iPAddress; /// The IP address type of the container group. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IIPAddress IPAddress { get => (this._iPAddress = this._iPAddress ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IPAddress()); set => this._iPAddress = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddress IPAddress { get => (this._iPAddress = this._iPAddress ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPAddress()); set => this._iPAddress = value; } /// /// The value representing the security enum. The 'Unsecure' value is the default value if not selected and means the object's @@ -103,116 +120,132 @@ public partial class ContainerGroupPropertiesAutoGenerated : /// cannot be reused within the same resource group, subscription, or tenant. /// [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy? IPAddressAutoGeneratedDomainNameLabelScope { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IIPAddressInternal)IPAddress).AutoGeneratedDomainNameLabelScope; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IIPAddressInternal)IPAddress).AutoGeneratedDomainNameLabelScope = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy)""); } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy? IPAddressAutoGeneratedDomainNameLabelScope { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddressInternal)IPAddress).AutoGeneratedDomainNameLabelScope; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddressInternal)IPAddress).AutoGeneratedDomainNameLabelScope = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy)""); } /// The Dns name label for the IP. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string IPAddressDnsNameLabel { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IIPAddressInternal)IPAddress).DnsNameLabel; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IIPAddressInternal)IPAddress).DnsNameLabel = value ?? null; } + public string IPAddressDnsNameLabel { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddressInternal)IPAddress).DnsNameLabel; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddressInternal)IPAddress).DnsNameLabel = value ?? null; } /// The FQDN for the IP. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string IPAddressFqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IIPAddressInternal)IPAddress).Fqdn; } + public string IPAddressFqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddressInternal)IPAddress).Fqdn; } /// The IP exposed to the public internet. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string IPAddressIP { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IIPAddressInternal)IPAddress).IP; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IIPAddressInternal)IPAddress).IP = value ?? null; } + public string IPAddressIP { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddressInternal)IPAddress).IP; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddressInternal)IPAddress).IP = value ?? null; } /// The list of ports exposed on the container group. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IPort[] IPAddressPort { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IIPAddressInternal)IPAddress).Port; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IIPAddressInternal)IPAddress).Port = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPort[] IPAddressPort { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddressInternal)IPAddress).Port; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddressInternal)IPAddress).Port = value ?? null /* arrayOf */; } /// Specifies if the IP is exposed to the public internet or private VNET. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType? IPAddressType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IIPAddressInternal)IPAddress).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IIPAddressInternal)IPAddress).Type = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType? IPAddressType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddressInternal)IPAddress).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddressInternal)IPAddress).Type = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType)""); } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IImageRegistryCredential[] _imageRegistryCredentials; + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredential[] _imageRegistryCredentials; /// The image registry credentials by which the container group is created from. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IImageRegistryCredential[] ImageRegistryCredentials { get => this._imageRegistryCredentials; set => this._imageRegistryCredentials = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredential[] ImageRegistryCredentials { get => this._imageRegistryCredentials; set => this._imageRegistryCredentials = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinition[] _initContainer; + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinition[] _initContainer; /// The init containers for a container group. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinition[] InitContainer { get => this._initContainer; set => this._initContainer = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinition[] InitContainer { get => this._initContainer; set => this._initContainer = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInstanceView _instanceView; + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInstanceView _instanceView; /// The instance view of the container group. Only valid in response. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInstanceView InstanceView { get => (this._instanceView = this._instanceView ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroupPropertiesInstanceView()); } + internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInstanceView InstanceView { get => (this._instanceView = this._instanceView ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupPropertiesInstanceView()); } /// The events of this container group. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent[] InstanceViewEvent { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInstanceViewInternal)InstanceView).Event; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent[] InstanceViewEvent { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInstanceViewInternal)InstanceView).Event; } /// The state of the container group. Only valid in response. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string InstanceViewState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInstanceViewInternal)InstanceView).State; } + public string InstanceViewState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInstanceViewInternal)InstanceView).State; } + + /// Backing field for property. + private bool? _isCreatedFromStandbyPool; + + /// The flag indicating whether the container group is created by standby pool. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] + public bool? IsCreatedFromStandbyPool { get => this._isCreatedFromStandbyPool; } /// The log type to be used. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType? LogAnalyticLogType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupDiagnosticsInternal)Diagnostic).LogAnalyticLogType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupDiagnosticsInternal)Diagnostic).LogAnalyticLogType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType? LogAnalyticLogType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnosticsInternal)Diagnostic).LogAnalyticLogType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnosticsInternal)Diagnostic).LogAnalyticLogType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType)""); } /// Metadata for log analytics. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsMetadata LogAnalyticMetadata { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupDiagnosticsInternal)Diagnostic).LogAnalyticMetadata; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupDiagnosticsInternal)Diagnostic).LogAnalyticMetadata = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsMetadata LogAnalyticMetadata { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnosticsInternal)Diagnostic).LogAnalyticMetadata; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnosticsInternal)Diagnostic).LogAnalyticMetadata = value ?? null /* model class */; } /// The workspace id for log analytics [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string LogAnalyticWorkspaceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupDiagnosticsInternal)Diagnostic).LogAnalyticWorkspaceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupDiagnosticsInternal)Diagnostic).LogAnalyticWorkspaceId = value ?? null; } + public string LogAnalyticWorkspaceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnosticsInternal)Diagnostic).LogAnalyticWorkspaceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnosticsInternal)Diagnostic).LogAnalyticWorkspaceId = value ?? null; } /// The workspace key for log analytics [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string LogAnalyticWorkspaceKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupDiagnosticsInternal)Diagnostic).LogAnalyticWorkspaceKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupDiagnosticsInternal)Diagnostic).LogAnalyticWorkspaceKey = value ?? null; } + public string LogAnalyticWorkspaceKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnosticsInternal)Diagnostic).LogAnalyticWorkspaceKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnosticsInternal)Diagnostic).LogAnalyticWorkspaceKey = value ?? null; } /// The workspace resource id for log analytics [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string LogAnalyticWorkspaceResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupDiagnosticsInternal)Diagnostic).LogAnalyticWorkspaceResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupDiagnosticsInternal)Diagnostic).LogAnalyticWorkspaceResourceId = value ?? null; } + public string LogAnalyticWorkspaceResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnosticsInternal)Diagnostic).LogAnalyticWorkspaceResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnosticsInternal)Diagnostic).LogAnalyticWorkspaceResourceId = value ?? null; } /// Internal Acessors for ConfidentialComputeProperty - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IConfidentialComputeProperties Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal.ConfidentialComputeProperty { get => (this._confidentialComputeProperty = this._confidentialComputeProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ConfidentialComputeProperties()); set { {_confidentialComputeProperty = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfidentialComputeProperties Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal.ConfidentialComputeProperty { get => (this._confidentialComputeProperty = this._confidentialComputeProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ConfidentialComputeProperties()); set { {_confidentialComputeProperty = value;} } } + + /// Internal Acessors for ContainerGroupProfile + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileReferenceDefinition Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal.ContainerGroupProfile { get => (this._containerGroupProfile = this._containerGroupProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupProfileReferenceDefinition()); set { {_containerGroupProfile = value;} } } /// Internal Acessors for Diagnostic - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupDiagnostics Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal.Diagnostic { get => (this._diagnostic = this._diagnostic ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroupDiagnostics()); set { {_diagnostic = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnostics Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal.Diagnostic { get => (this._diagnostic = this._diagnostic ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupDiagnostics()); set { {_diagnostic = value;} } } /// Internal Acessors for DiagnosticLogAnalytic - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalytics Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal.DiagnosticLogAnalytic { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupDiagnosticsInternal)Diagnostic).LogAnalytic; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupDiagnosticsInternal)Diagnostic).LogAnalytic = value; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalytics Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal.DiagnosticLogAnalytic { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnosticsInternal)Diagnostic).LogAnalytic; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnosticsInternal)Diagnostic).LogAnalytic = value; } /// Internal Acessors for DnsConfig - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDnsConfiguration Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal.DnsConfig { get => (this._dnsConfig = this._dnsConfig ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.DnsConfiguration()); set { {_dnsConfig = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDnsConfiguration Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal.DnsConfig { get => (this._dnsConfig = this._dnsConfig ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.DnsConfiguration()); set { {_dnsConfig = value;} } } /// Internal Acessors for EncryptionProperty - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEncryptionProperties Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal.EncryptionProperty { get => (this._encryptionProperty = this._encryptionProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.EncryptionProperties()); set { {_encryptionProperty = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEncryptionProperties Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal.EncryptionProperty { get => (this._encryptionProperty = this._encryptionProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.EncryptionProperties()); set { {_encryptionProperty = value;} } } /// Internal Acessors for IPAddress - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IIPAddress Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal.IPAddress { get => (this._iPAddress = this._iPAddress ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IPAddress()); set { {_iPAddress = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddress Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal.IPAddress { get => (this._iPAddress = this._iPAddress ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPAddress()); set { {_iPAddress = value;} } } /// Internal Acessors for IPAddressFqdn - string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal.IPAddressFqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IIPAddressInternal)IPAddress).Fqdn; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IIPAddressInternal)IPAddress).Fqdn = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal.IPAddressFqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddressInternal)IPAddress).Fqdn; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddressInternal)IPAddress).Fqdn = value; } /// Internal Acessors for InstanceView - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInstanceView Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal.InstanceView { get => (this._instanceView = this._instanceView ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroupPropertiesInstanceView()); set { {_instanceView = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInstanceView Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal.InstanceView { get => (this._instanceView = this._instanceView ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupPropertiesInstanceView()); set { {_instanceView = value;} } } /// Internal Acessors for InstanceViewEvent - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent[] Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal.InstanceViewEvent { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInstanceViewInternal)InstanceView).Event; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInstanceViewInternal)InstanceView).Event = value; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent[] Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal.InstanceViewEvent { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInstanceViewInternal)InstanceView).Event; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInstanceViewInternal)InstanceView).Event = value; } /// Internal Acessors for InstanceViewState - string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal.InstanceViewState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInstanceViewInternal)InstanceView).State; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInstanceViewInternal)InstanceView).State = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal.InstanceViewState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInstanceViewInternal)InstanceView).State; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInstanceViewInternal)InstanceView).State = value; } + + /// Internal Acessors for IsCreatedFromStandbyPool + bool? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal.IsCreatedFromStandbyPool { get => this._isCreatedFromStandbyPool; set { {_isCreatedFromStandbyPool = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGeneratedInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + + /// Internal Acessors for StandbyPoolProfile + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IStandbyPoolProfileDefinition Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGeneratedInternal.StandbyPoolProfile { get => (this._standbyPoolProfile = this._standbyPoolProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.StandbyPoolProfileDefinition()); set { {_standbyPoolProfile = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes _oSType; + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes? _oSType; /// The operating system type required by the containers in the container group. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes OSType { get => this._oSType; set => this._oSType = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes? OSType { get => this._oSType; set => this._oSType = value; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority? _priority; @@ -249,19 +282,39 @@ public partial class ContainerGroupPropertiesAutoGenerated : [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku? Sku { get => this._sku; set => this._sku = value; } + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IStandbyPoolProfileDefinition _standbyPoolProfile; + + /// The reference standby pool profile properties. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IStandbyPoolProfileDefinition StandbyPoolProfile { get => (this._standbyPoolProfile = this._standbyPoolProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.StandbyPoolProfileDefinition()); set => this._standbyPoolProfile = value; } + + /// + /// The flag to determine whether ACI should fail the create request if the container group can not be obtained from standby + /// pool. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public bool? StandbyPoolProfileFailContainerGroupCreateOnReuseFailure { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IStandbyPoolProfileDefinitionInternal)StandbyPoolProfile).FailContainerGroupCreateOnReuseFailure; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IStandbyPoolProfileDefinitionInternal)StandbyPoolProfile).FailContainerGroupCreateOnReuseFailure = value ?? default(bool); } + + /// + /// The standby pool profile reference id.This will be an ARM resource id in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyContainerGroupPools/{standbyPoolName}'. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public string StandbyPoolProfileId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IStandbyPoolProfileDefinitionInternal)StandbyPoolProfile).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IStandbyPoolProfileDefinitionInternal)StandbyPoolProfile).Id = value ?? null; } + /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupSubnetId[] _subnetId; + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupSubnetId[] _subnetId; /// The subnet resource IDs for a container group. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupSubnetId[] SubnetId { get => this._subnetId; set => this._subnetId = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupSubnetId[] SubnetId { get => this._subnetId; set => this._subnetId = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolume[] _volume; + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolume[] _volume; /// The list of volumes that can be mounted by containers in this container group. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolume[] Volume { get => this._volume; set => this._volume = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolume[] Volume { get => this._volume; set => this._volume = value; } /// Creates an new instance. public ContainerGroupPropertiesAutoGenerated() @@ -287,8 +340,26 @@ public partial interface IContainerGroupPropertiesAutoGenerated : ReadOnly = false, Description = @"The containers within the container group.", SerializedName = @"containers", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainer) })] - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainer[] Container { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainer) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainer[] Container { get; set; } + /// + /// The container group profile reference id.This will be an ARM resource id in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}'. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The container group profile reference id.This will be an ARM resource id in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}'.", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string ContainerGroupProfileId { get; set; } + /// The container group profile reference revision. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The container group profile reference revision.", + SerializedName = @"revision", + PossibleTypes = new [] { typeof(int) })] + int? ContainerGroupProfileRevision { get; set; } /// The DNS servers for the container group. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = false, @@ -351,8 +422,8 @@ public partial interface IContainerGroupPropertiesAutoGenerated : ReadOnly = false, Description = @"extensions used by virtual kubelet", SerializedName = @"extensions", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpec) })] - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpec[] Extension { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpec) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpec[] Extension { get; set; } /// /// The value representing the security enum. The 'Unsecure' value is the default value if not selected and means the object's /// domain name label is not secured against subdomain takeover. The 'TenantReuse' value is the default value if selected @@ -398,8 +469,8 @@ public partial interface IContainerGroupPropertiesAutoGenerated : ReadOnly = false, Description = @"The list of ports exposed on the container group.", SerializedName = @"ports", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IPort) })] - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IPort[] IPAddressPort { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPort) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPort[] IPAddressPort { get; set; } /// Specifies if the IP is exposed to the public internet or private VNET. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = false, @@ -414,24 +485,24 @@ public partial interface IContainerGroupPropertiesAutoGenerated : ReadOnly = false, Description = @"The image registry credentials by which the container group is created from.", SerializedName = @"imageRegistryCredentials", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IImageRegistryCredential) })] - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IImageRegistryCredential[] ImageRegistryCredentials { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredential) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredential[] ImageRegistryCredentials { get; set; } /// The init containers for a container group. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = false, ReadOnly = false, Description = @"The init containers for a container group.", SerializedName = @"initContainers", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinition) })] - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinition[] InitContainer { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinition) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinition[] InitContainer { get; set; } /// The events of this container group. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = false, ReadOnly = true, Description = @"The events of this container group.", SerializedName = @"events", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent) })] - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent[] InstanceViewEvent { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent[] InstanceViewEvent { get; } /// The state of the container group. Only valid in response. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = false, @@ -440,6 +511,14 @@ public partial interface IContainerGroupPropertiesAutoGenerated : SerializedName = @"state", PossibleTypes = new [] { typeof(string) })] string InstanceViewState { get; } + /// The flag indicating whether the container group is created by standby pool. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The flag indicating whether the container group is created by standby pool.", + SerializedName = @"isCreatedFromStandbyPool", + PossibleTypes = new [] { typeof(bool) })] + bool? IsCreatedFromStandbyPool { get; } /// The log type to be used. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = false, @@ -454,8 +533,8 @@ public partial interface IContainerGroupPropertiesAutoGenerated : ReadOnly = false, Description = @"Metadata for log analytics.", SerializedName = @"metadata", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsMetadata) })] - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsMetadata LogAnalyticMetadata { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsMetadata) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsMetadata LogAnalyticMetadata { get; set; } /// The workspace id for log analytics [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = false, @@ -482,12 +561,12 @@ public partial interface IContainerGroupPropertiesAutoGenerated : string LogAnalyticWorkspaceResourceId { get; set; } /// The operating system type required by the containers in the container group. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Description = @"The operating system type required by the containers in the container group.", SerializedName = @"osType", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes) })] - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes OSType { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes? OSType { get; set; } /// The priority of the container group. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = false, @@ -531,22 +610,43 @@ public partial interface IContainerGroupPropertiesAutoGenerated : SerializedName = @"sku", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku) })] Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku? Sku { get; set; } + /// + /// The flag to determine whether ACI should fail the create request if the container group can not be obtained from standby + /// pool. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The flag to determine whether ACI should fail the create request if the container group can not be obtained from standby pool.", + SerializedName = @"failContainerGroupCreateOnReuseFailure", + PossibleTypes = new [] { typeof(bool) })] + bool? StandbyPoolProfileFailContainerGroupCreateOnReuseFailure { get; set; } + /// + /// The standby pool profile reference id.This will be an ARM resource id in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyContainerGroupPools/{standbyPoolName}'. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The standby pool profile reference id.This will be an ARM resource id in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyContainerGroupPools/{standbyPoolName}'.", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string StandbyPoolProfileId { get; set; } /// The subnet resource IDs for a container group. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = false, ReadOnly = false, Description = @"The subnet resource IDs for a container group.", SerializedName = @"subnetIds", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupSubnetId) })] - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupSubnetId[] SubnetId { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupSubnetId) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupSubnetId[] SubnetId { get; set; } /// The list of volumes that can be mounted by containers in this container group. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = false, ReadOnly = false, Description = @"The list of volumes that can be mounted by containers in this container group.", SerializedName = @"volumes", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolume) })] - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolume[] Volume { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolume) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolume[] Volume { get; set; } } /// The container group properties @@ -554,17 +654,25 @@ internal partial interface IContainerGroupPropertiesAutoGeneratedInternal { /// The properties for confidential container group - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IConfidentialComputeProperties ConfidentialComputeProperty { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfidentialComputeProperties ConfidentialComputeProperty { get; set; } /// The base64 encoded confidential compute enforcement policy string ConfidentialComputePropertyCcePolicy { get; set; } /// The containers within the container group. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainer[] Container { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainer[] Container { get; set; } + /// The reference container group profile properties. + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileReferenceDefinition ContainerGroupProfile { get; set; } + /// + /// The container group profile reference id.This will be an ARM resource id in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}'. + /// + string ContainerGroupProfileId { get; set; } + /// The container group profile reference revision. + int? ContainerGroupProfileRevision { get; set; } /// The diagnostic information for a container group. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupDiagnostics Diagnostic { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupDiagnostics Diagnostic { get; set; } /// Container group log analytics information. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalytics DiagnosticLogAnalytic { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalytics DiagnosticLogAnalytic { get; set; } /// The DNS config information for a container group. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDnsConfiguration DnsConfig { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDnsConfiguration DnsConfig { get; set; } /// The DNS servers for the container group. string[] DnsConfigNameServer { get; set; } /// The DNS options for the container group. @@ -572,7 +680,7 @@ internal partial interface IContainerGroupPropertiesAutoGeneratedInternal /// The DNS search domains for hostname lookup in the container group. string DnsConfigSearchDomain { get; set; } /// The encryption properties for a container group. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEncryptionProperties EncryptionProperty { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEncryptionProperties EncryptionProperty { get; set; } /// The keyvault managed identity. string EncryptionPropertyIdentity { get; set; } /// The encryption key name. @@ -582,9 +690,9 @@ internal partial interface IContainerGroupPropertiesAutoGeneratedInternal /// The keyvault base url. string EncryptionPropertyVaultBaseUrl { get; set; } /// extensions used by virtual kubelet - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpec[] Extension { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpec[] Extension { get; set; } /// The IP address type of the container group. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IIPAddress IPAddress { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddress IPAddress { get; set; } /// /// The value representing the security enum. The 'Unsecure' value is the default value if not selected and means the object's /// domain name label is not secured against subdomain takeover. The 'TenantReuse' value is the default value if selected @@ -601,23 +709,25 @@ internal partial interface IContainerGroupPropertiesAutoGeneratedInternal /// The IP exposed to the public internet. string IPAddressIP { get; set; } /// The list of ports exposed on the container group. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IPort[] IPAddressPort { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPort[] IPAddressPort { get; set; } /// Specifies if the IP is exposed to the public internet or private VNET. Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType? IPAddressType { get; set; } /// The image registry credentials by which the container group is created from. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IImageRegistryCredential[] ImageRegistryCredentials { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredential[] ImageRegistryCredentials { get; set; } /// The init containers for a container group. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinition[] InitContainer { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinition[] InitContainer { get; set; } /// The instance view of the container group. Only valid in response. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInstanceView InstanceView { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInstanceView InstanceView { get; set; } /// The events of this container group. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent[] InstanceViewEvent { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent[] InstanceViewEvent { get; set; } /// The state of the container group. Only valid in response. string InstanceViewState { get; set; } + /// The flag indicating whether the container group is created by standby pool. + bool? IsCreatedFromStandbyPool { get; set; } /// The log type to be used. Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType? LogAnalyticLogType { get; set; } /// Metadata for log analytics. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsMetadata LogAnalyticMetadata { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsMetadata LogAnalyticMetadata { get; set; } /// The workspace id for log analytics string LogAnalyticWorkspaceId { get; set; } /// The workspace key for log analytics @@ -625,7 +735,7 @@ internal partial interface IContainerGroupPropertiesAutoGeneratedInternal /// The workspace resource id for log analytics string LogAnalyticWorkspaceResourceId { get; set; } /// The operating system type required by the containers in the container group. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes OSType { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes? OSType { get; set; } /// The priority of the container group. Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority? Priority { get; set; } /// @@ -641,10 +751,21 @@ internal partial interface IContainerGroupPropertiesAutoGeneratedInternal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy? RestartPolicy { get; set; } /// The SKU for a container group. Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku? Sku { get; set; } + /// The reference standby pool profile properties. + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IStandbyPoolProfileDefinition StandbyPoolProfile { get; set; } + /// + /// The flag to determine whether ACI should fail the create request if the container group can not be obtained from standby + /// pool. + /// + bool? StandbyPoolProfileFailContainerGroupCreateOnReuseFailure { get; set; } + /// + /// The standby pool profile reference id.This will be an ARM resource id in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyContainerGroupPools/{standbyPoolName}'. + /// + string StandbyPoolProfileId { get; set; } /// The subnet resource IDs for a container group. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupSubnetId[] SubnetId { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupSubnetId[] SubnetId { get; set; } /// The list of volumes that can be mounted by containers in this container group. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolume[] Volume { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolume[] Volume { get; set; } } } \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupPropertiesAutoGenerated.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupPropertiesAutoGenerated.json.cs similarity index 83% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupPropertiesAutoGenerated.json.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupPropertiesAutoGenerated.json.cs index 5ef17d75997a..d1f6c4b07047 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupPropertiesAutoGenerated.json.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupPropertiesAutoGenerated.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -65,34 +65,37 @@ internal ContainerGroupPropertiesAutoGenerated(Microsoft.Azure.PowerShell.Cmdlet { return; } - {_iPAddress = If( json?.PropertyT("ipAddress"), out var __jsonIPAddress) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IPAddress.FromJson(__jsonIPAddress) : IPAddress;} - {_instanceView = If( json?.PropertyT("instanceView"), out var __jsonInstanceView) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroupPropertiesInstanceView.FromJson(__jsonInstanceView) : InstanceView;} - {_diagnostic = If( json?.PropertyT("diagnostics"), out var __jsonDiagnostics) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroupDiagnostics.FromJson(__jsonDiagnostics) : Diagnostic;} - {_dnsConfig = If( json?.PropertyT("dnsConfig"), out var __jsonDnsConfig) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.DnsConfiguration.FromJson(__jsonDnsConfig) : DnsConfig;} - {_encryptionProperty = If( json?.PropertyT("encryptionProperties"), out var __jsonEncryptionProperties) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.EncryptionProperties.FromJson(__jsonEncryptionProperties) : EncryptionProperty;} - {_confidentialComputeProperty = If( json?.PropertyT("confidentialComputeProperties"), out var __jsonConfidentialComputeProperties) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ConfidentialComputeProperties.FromJson(__jsonConfidentialComputeProperties) : ConfidentialComputeProperty;} + {_iPAddress = If( json?.PropertyT("ipAddress"), out var __jsonIPAddress) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPAddress.FromJson(__jsonIPAddress) : IPAddress;} + {_instanceView = If( json?.PropertyT("instanceView"), out var __jsonInstanceView) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupPropertiesInstanceView.FromJson(__jsonInstanceView) : InstanceView;} + {_diagnostic = If( json?.PropertyT("diagnostics"), out var __jsonDiagnostics) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupDiagnostics.FromJson(__jsonDiagnostics) : Diagnostic;} + {_dnsConfig = If( json?.PropertyT("dnsConfig"), out var __jsonDnsConfig) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.DnsConfiguration.FromJson(__jsonDnsConfig) : DnsConfig;} + {_encryptionProperty = If( json?.PropertyT("encryptionProperties"), out var __jsonEncryptionProperties) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.EncryptionProperties.FromJson(__jsonEncryptionProperties) : EncryptionProperty;} + {_confidentialComputeProperty = If( json?.PropertyT("confidentialComputeProperties"), out var __jsonConfidentialComputeProperties) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ConfidentialComputeProperties.FromJson(__jsonConfidentialComputeProperties) : ConfidentialComputeProperty;} + {_containerGroupProfile = If( json?.PropertyT("containerGroupProfile"), out var __jsonContainerGroupProfile) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupProfileReferenceDefinition.FromJson(__jsonContainerGroupProfile) : ContainerGroupProfile;} + {_standbyPoolProfile = If( json?.PropertyT("standbyPoolProfile"), out var __jsonStandbyPoolProfile) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.StandbyPoolProfileDefinition.FromJson(__jsonStandbyPoolProfile) : StandbyPoolProfile;} {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;} - {_container = If( json?.PropertyT("containers"), out var __jsonContainers) ? If( __jsonContainers as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainer) (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.Container.FromJson(__u) )) ))() : null : Container;} - {_imageRegistryCredentials = If( json?.PropertyT("imageRegistryCredentials"), out var __jsonImageRegistryCredentials) ? If( __jsonImageRegistryCredentials as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IImageRegistryCredential) (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ImageRegistryCredential.FromJson(__p) )) ))() : null : ImageRegistryCredentials;} + {_container = If( json?.PropertyT("containers"), out var __jsonContainers) ? If( __jsonContainers as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainer) (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Container.FromJson(__u) )) ))() : null : Container;} + {_imageRegistryCredentials = If( json?.PropertyT("imageRegistryCredentials"), out var __jsonImageRegistryCredentials) ? If( __jsonImageRegistryCredentials as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredential) (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ImageRegistryCredential.FromJson(__p) )) ))() : null : ImageRegistryCredentials;} {_restartPolicy = If( json?.PropertyT("restartPolicy"), out var __jsonRestartPolicy) ? (string)__jsonRestartPolicy : (string)RestartPolicy;} {_oSType = If( json?.PropertyT("osType"), out var __jsonOSType) ? (string)__jsonOSType : (string)OSType;} - {_volume = If( json?.PropertyT("volumes"), out var __jsonVolumes) ? If( __jsonVolumes as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonArray, out var __l) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__l, (__k)=>(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolume) (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.Volume.FromJson(__k) )) ))() : null : Volume;} - {_subnetId = If( json?.PropertyT("subnetIds"), out var __jsonSubnetIds) ? If( __jsonSubnetIds as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonArray, out var __g) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__g, (__f)=>(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupSubnetId) (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroupSubnetId.FromJson(__f) )) ))() : null : SubnetId;} + {_volume = If( json?.PropertyT("volumes"), out var __jsonVolumes) ? If( __jsonVolumes as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonArray, out var __l) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__l, (__k)=>(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolume) (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Volume.FromJson(__k) )) ))() : null : Volume;} + {_subnetId = If( json?.PropertyT("subnetIds"), out var __jsonSubnetIds) ? If( __jsonSubnetIds as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonArray, out var __g) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__g, (__f)=>(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupSubnetId) (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupSubnetId.FromJson(__f) )) ))() : null : SubnetId;} {_sku = If( json?.PropertyT("sku"), out var __jsonSku) ? (string)__jsonSku : (string)Sku;} - {_initContainer = If( json?.PropertyT("initContainers"), out var __jsonInitContainers) ? If( __jsonInitContainers as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonArray, out var __b) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__b, (__a)=>(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinition) (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.InitContainerDefinition.FromJson(__a) )) ))() : null : InitContainer;} - {_extension = If( json?.PropertyT("extensions"), out var __jsonExtensions) ? If( __jsonExtensions as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonArray, out var ___w) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(___w, (___v)=>(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpec) (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.DeploymentExtensionSpec.FromJson(___v) )) ))() : null : Extension;} + {_initContainer = If( json?.PropertyT("initContainers"), out var __jsonInitContainers) ? If( __jsonInitContainers as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonArray, out var __b) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__b, (__a)=>(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinition) (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.InitContainerDefinition.FromJson(__a) )) ))() : null : InitContainer;} + {_extension = If( json?.PropertyT("extensions"), out var __jsonExtensions) ? If( __jsonExtensions as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonArray, out var ___w) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(___w, (___v)=>(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpec) (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.DeploymentExtensionSpec.FromJson(___v) )) ))() : null : Extension;} {_priority = If( json?.PropertyT("priority"), out var __jsonPriority) ? (string)__jsonPriority : (string)Priority;} + {_isCreatedFromStandbyPool = If( json?.PropertyT("isCreatedFromStandbyPool"), out var __jsonIsCreatedFromStandbyPool) ? (bool?)__jsonIsCreatedFromStandbyPool : IsCreatedFromStandbyPool;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGenerated. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGenerated. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGenerated. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGenerated. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesAutoGenerated FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesAutoGenerated FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new ContainerGroupPropertiesAutoGenerated(json) : null; } @@ -126,6 +129,8 @@ public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNod AddIf( null != this._dnsConfig ? (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode) this._dnsConfig.ToJson(null,serializationMode) : null, "dnsConfig" ,container.Add ); AddIf( null != this._encryptionProperty ? (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode) this._encryptionProperty.ToJson(null,serializationMode) : null, "encryptionProperties" ,container.Add ); AddIf( null != this._confidentialComputeProperty ? (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode) this._confidentialComputeProperty.ToJson(null,serializationMode) : null, "confidentialComputeProperties" ,container.Add ); + AddIf( null != this._containerGroupProfile ? (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode) this._containerGroupProfile.ToJson(null,serializationMode) : null, "containerGroupProfile" ,container.Add ); + AddIf( null != this._standbyPoolProfile ? (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode) this._standbyPoolProfile.ToJson(null,serializationMode) : null, "standbyPoolProfile" ,container.Add ); if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SerializationMode.IncludeReadOnly)) { AddIf( null != (((object)this._provisioningState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonString(this._provisioningState.ToString()) : null, "provisioningState" ,container.Add ); @@ -188,6 +193,10 @@ public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNod container.Add("extensions",___x); } AddIf( null != (((object)this._priority)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonString(this._priority.ToString()) : null, "priority" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._isCreatedFromStandbyPool ? (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonBoolean((bool)this._isCreatedFromStandbyPool) : null, "isCreatedFromStandbyPool" ,container.Add ); + } AfterToJson(ref container); return container; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupPropertiesInstanceView.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupPropertiesInstanceView.PowerShell.cs similarity index 86% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupPropertiesInstanceView.PowerShell.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupPropertiesInstanceView.PowerShell.cs index 0135d96a05d3..aaf7ce5f23ec 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupPropertiesInstanceView.PowerShell.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupPropertiesInstanceView.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -63,7 +63,7 @@ public partial class ContainerGroupPropertiesInstanceView partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -78,17 +78,17 @@ internal ContainerGroupPropertiesInstanceView(global::System.Collections.IDictio // actually deserialize if (content.Contains("Event")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInstanceViewInternal)this).Event = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent[]) content.GetValueForProperty("Event",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInstanceViewInternal)this).Event, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.EventTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInstanceViewInternal)this).Event = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent[]) content.GetValueForProperty("Event",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInstanceViewInternal)this).Event, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.EventTypeConverter.ConvertFrom)); } if (content.Contains("State")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInstanceViewInternal)this).State = (string) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInstanceViewInternal)this).State, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInstanceViewInternal)this).State = (string) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInstanceViewInternal)this).State, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -103,39 +103,39 @@ internal ContainerGroupPropertiesInstanceView(global::System.Management.Automati // actually deserialize if (content.Contains("Event")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInstanceViewInternal)this).Event = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent[]) content.GetValueForProperty("Event",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInstanceViewInternal)this).Event, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.EventTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInstanceViewInternal)this).Event = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent[]) content.GetValueForProperty("Event",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInstanceViewInternal)this).Event, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.EventTypeConverter.ConvertFrom)); } if (content.Contains("State")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInstanceViewInternal)this).State = (string) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInstanceViewInternal)this).State, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInstanceViewInternal)this).State = (string) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInstanceViewInternal)this).State, global::System.Convert.ToString); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInstanceView DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInstanceView DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ContainerGroupPropertiesInstanceView(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInstanceView DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInstanceView DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ContainerGroupPropertiesInstanceView(content); } @@ -147,7 +147,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api202 /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInstanceView FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInstanceView FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupPropertiesInstanceView.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupPropertiesInstanceView.TypeConverter.cs similarity index 98% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupPropertiesInstanceView.TypeConverter.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupPropertiesInstanceView.TypeConverter.cs index 5cb2e8f8f477..df3eb7e7536c 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupPropertiesInstanceView.TypeConverter.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupPropertiesInstanceView.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -109,14 +109,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInstanceView ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInstanceView ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInstanceView).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInstanceView).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupPropertiesInstanceView.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupPropertiesInstanceView.cs similarity index 85% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupPropertiesInstanceView.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupPropertiesInstanceView.cs index 40caa95ba8d3..9ed2309197fb 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupPropertiesInstanceView.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupPropertiesInstanceView.cs @@ -3,28 +3,28 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; /// The instance view of the container group. Only valid in response. public partial class ContainerGroupPropertiesInstanceView : - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInstanceView, - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInstanceViewInternal + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInstanceView, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInstanceViewInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent[] _event; + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent[] _event; /// The events of this container group. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent[] Event { get => this._event; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent[] Event { get => this._event; } /// Internal Acessors for Event - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent[] Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInstanceViewInternal.Event { get => this._event; set { {_event = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent[] Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInstanceViewInternal.Event { get => this._event; set { {_event = value;} } } /// Internal Acessors for State - string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInstanceViewInternal.State { get => this._state; set { {_state = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInstanceViewInternal.State { get => this._state; set { {_state = value;} } } /// Backing field for property. private string _state; @@ -49,8 +49,8 @@ public partial interface IContainerGroupPropertiesInstanceView : ReadOnly = true, Description = @"The events of this container group.", SerializedName = @"events", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent) })] - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent[] Event { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent[] Event { get; } /// The state of the container group. Only valid in response. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = false, @@ -66,7 +66,7 @@ internal partial interface IContainerGroupPropertiesInstanceViewInternal { /// The events of this container group. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent[] Event { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent[] Event { get; set; } /// The state of the container group. Only valid in response. string State { get; set; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupPropertiesInstanceView.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupPropertiesInstanceView.json.cs similarity index 95% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupPropertiesInstanceView.json.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupPropertiesInstanceView.json.cs index 8804db0bfe44..c3e3d0d3c8a2 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupPropertiesInstanceView.json.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupPropertiesInstanceView.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -65,19 +65,19 @@ internal ContainerGroupPropertiesInstanceView(Microsoft.Azure.PowerShell.Cmdlets { return; } - {_event = If( json?.PropertyT("events"), out var __jsonEvents) ? If( __jsonEvents as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent) (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.Event.FromJson(__u) )) ))() : null : Event;} + {_event = If( json?.PropertyT("events"), out var __jsonEvents) ? If( __jsonEvents as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent) (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Event.FromJson(__u) )) ))() : null : Event;} {_state = If( json?.PropertyT("state"), out var __jsonState) ? (string)__jsonState : (string)State;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInstanceView. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInstanceView. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInstanceView. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInstanceView. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupPropertiesInstanceView FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupPropertiesInstanceView FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new ContainerGroupPropertiesInstanceView(json) : null; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupSubnetId.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupSubnetId.PowerShell.cs similarity index 88% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupSubnetId.PowerShell.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupSubnetId.PowerShell.cs index c9fb617773a1..a61c9178e857 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupSubnetId.PowerShell.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupSubnetId.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -63,7 +63,7 @@ public partial class ContainerGroupSubnetId partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -78,17 +78,17 @@ internal ContainerGroupSubnetId(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupSubnetIdInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupSubnetIdInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupSubnetIdInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupSubnetIdInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupSubnetIdInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupSubnetIdInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupSubnetIdInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupSubnetIdInternal)this).Name, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -103,39 +103,39 @@ internal ContainerGroupSubnetId(global::System.Management.Automation.PSObject co // actually deserialize if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupSubnetIdInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupSubnetIdInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupSubnetIdInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupSubnetIdInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupSubnetIdInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupSubnetIdInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupSubnetIdInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupSubnetIdInternal)this).Name, global::System.Convert.ToString); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupSubnetId DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupSubnetId DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ContainerGroupSubnetId(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupSubnetId DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupSubnetId DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ContainerGroupSubnetId(content); } @@ -145,7 +145,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api202 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupSubnetId FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupSubnetId FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupSubnetId.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupSubnetId.TypeConverter.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupSubnetId.TypeConverter.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupSubnetId.TypeConverter.cs index bdcf06793792..9e499fa05bfa 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupSubnetId.TypeConverter.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupSubnetId.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupSubnetId ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupSubnetId ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupSubnetId).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupSubnetId).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupSubnetId.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupSubnetId.cs similarity index 95% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupSubnetId.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupSubnetId.cs index 9d84a0001a40..c43531464ec7 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupSubnetId.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupSubnetId.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; /// Container group subnet information. public partial class ContainerGroupSubnetId : - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupSubnetId, - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupSubnetIdInternal + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupSubnetId, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupSubnetIdInternal { /// Backing field for property. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupSubnetId.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupSubnetId.json.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupSubnetId.json.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupSubnetId.json.cs index f7f8852c35a7..989ec3f6d0f2 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerGroupSubnetId.json.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerGroupSubnetId.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -71,13 +71,13 @@ internal ContainerGroupSubnetId(Microsoft.Azure.PowerShell.Cmdlets.ContainerInst } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupSubnetId. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupSubnetId. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupSubnetId. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupSubnetId. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupSubnetId FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupSubnetId FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new ContainerGroupSubnetId(json) : null; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerHttpGet.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerHttpGet.PowerShell.cs similarity index 84% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerHttpGet.PowerShell.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerHttpGet.PowerShell.cs index 6bc8f59620fe..8faa249de841 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerHttpGet.PowerShell.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerHttpGet.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -63,7 +63,7 @@ public partial class ContainerHttpGet partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -78,25 +78,25 @@ internal ContainerHttpGet(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Path")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerHttpGetInternal)this).Path = (string) content.GetValueForProperty("Path",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerHttpGetInternal)this).Path, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerHttpGetInternal)this).Path = (string) content.GetValueForProperty("Path",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerHttpGetInternal)this).Path, global::System.Convert.ToString); } if (content.Contains("Port")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerHttpGetInternal)this).Port = (int) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerHttpGetInternal)this).Port, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerHttpGetInternal)this).Port = (int) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerHttpGetInternal)this).Port, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("Scheme")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerHttpGetInternal)this).Scheme = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme?) content.GetValueForProperty("Scheme",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerHttpGetInternal)this).Scheme, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerHttpGetInternal)this).Scheme = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme?) content.GetValueForProperty("Scheme",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerHttpGetInternal)this).Scheme, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme.CreateFrom); } if (content.Contains("HttpHeader")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerHttpGetInternal)this).HttpHeader = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IHttpHeader[]) content.GetValueForProperty("HttpHeader",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerHttpGetInternal)this).HttpHeader, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.HttpHeaderTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerHttpGetInternal)this).HttpHeader = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader[]) content.GetValueForProperty("HttpHeader",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerHttpGetInternal)this).HttpHeader, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.HttpHeaderTypeConverter.ConvertFrom)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -111,47 +111,47 @@ internal ContainerHttpGet(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Path")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerHttpGetInternal)this).Path = (string) content.GetValueForProperty("Path",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerHttpGetInternal)this).Path, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerHttpGetInternal)this).Path = (string) content.GetValueForProperty("Path",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerHttpGetInternal)this).Path, global::System.Convert.ToString); } if (content.Contains("Port")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerHttpGetInternal)this).Port = (int) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerHttpGetInternal)this).Port, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerHttpGetInternal)this).Port = (int) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerHttpGetInternal)this).Port, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("Scheme")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerHttpGetInternal)this).Scheme = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme?) content.GetValueForProperty("Scheme",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerHttpGetInternal)this).Scheme, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerHttpGetInternal)this).Scheme = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme?) content.GetValueForProperty("Scheme",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerHttpGetInternal)this).Scheme, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme.CreateFrom); } if (content.Contains("HttpHeader")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerHttpGetInternal)this).HttpHeader = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IHttpHeader[]) content.GetValueForProperty("HttpHeader",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerHttpGetInternal)this).HttpHeader, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.HttpHeaderTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerHttpGetInternal)this).HttpHeader = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader[]) content.GetValueForProperty("HttpHeader",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerHttpGetInternal)this).HttpHeader, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.HttpHeaderTypeConverter.ConvertFrom)); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerHttpGet DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerHttpGet DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ContainerHttpGet(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerHttpGet DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerHttpGet DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ContainerHttpGet(content); } @@ -161,7 +161,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api202 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerHttpGet FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerHttpGet FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerHttpGet.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerHttpGet.TypeConverter.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerHttpGet.TypeConverter.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerHttpGet.TypeConverter.cs index 9289bb09b9ba..f1cc31c12629 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerHttpGet.TypeConverter.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerHttpGet.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerHttpGet ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerHttpGet ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerHttpGet).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerHttpGet).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerHttpGet.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerHttpGet.cs similarity index 92% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerHttpGet.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerHttpGet.cs index b4161f0df345..a83f019a8eea 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerHttpGet.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerHttpGet.cs @@ -3,22 +3,22 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; /// The container Http Get settings, for liveness or readiness probe public partial class ContainerHttpGet : - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerHttpGet, - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerHttpGetInternal + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerHttpGet, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerHttpGetInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IHttpHeader[] _httpHeader; + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader[] _httpHeader; /// The HTTP headers. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IHttpHeader[] HttpHeader { get => this._httpHeader; set => this._httpHeader = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader[] HttpHeader { get => this._httpHeader; set => this._httpHeader = value; } /// Backing field for property. private string _path; @@ -57,8 +57,8 @@ public partial interface IContainerHttpGet : ReadOnly = false, Description = @"The HTTP headers.", SerializedName = @"httpHeaders", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IHttpHeader) })] - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IHttpHeader[] HttpHeader { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader[] HttpHeader { get; set; } /// The path to probe. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = false, @@ -90,7 +90,7 @@ internal partial interface IContainerHttpGetInternal { /// The HTTP headers. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IHttpHeader[] HttpHeader { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader[] HttpHeader { get; set; } /// The path to probe. string Path { get; set; } /// The port number to probe. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerHttpGet.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerHttpGet.json.cs similarity index 95% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerHttpGet.json.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerHttpGet.json.cs index d5d03b1f7d4e..7ee5cb32902c 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerHttpGet.json.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerHttpGet.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -68,18 +68,18 @@ internal ContainerHttpGet(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.R {_path = If( json?.PropertyT("path"), out var __jsonPath) ? (string)__jsonPath : (string)Path;} {_port = If( json?.PropertyT("port"), out var __jsonPort) ? (int)__jsonPort : Port;} {_scheme = If( json?.PropertyT("scheme"), out var __jsonScheme) ? (string)__jsonScheme : (string)Scheme;} - {_httpHeader = If( json?.PropertyT("httpHeaders"), out var __jsonHttpHeaders) ? If( __jsonHttpHeaders as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IHttpHeader) (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.HttpHeader.FromJson(__u) )) ))() : null : HttpHeader;} + {_httpHeader = If( json?.PropertyT("httpHeaders"), out var __jsonHttpHeaders) ? If( __jsonHttpHeaders as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader) (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.HttpHeader.FromJson(__u) )) ))() : null : HttpHeader;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerHttpGet. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerHttpGet. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerHttpGet. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerHttpGet. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerHttpGet FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerHttpGet FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new ContainerHttpGet(json) : null; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerPort.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerPort.PowerShell.cs similarity index 89% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerPort.PowerShell.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerPort.PowerShell.cs index 8de2adce5206..4b32bdecb142 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerPort.PowerShell.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerPort.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -63,7 +63,7 @@ public partial class ContainerPort partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -78,17 +78,17 @@ internal ContainerPort(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Protocol")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPortInternal)this).Protocol = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerNetworkProtocol?) content.GetValueForProperty("Protocol",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPortInternal)this).Protocol, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerNetworkProtocol.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPortInternal)this).Protocol = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerNetworkProtocol?) content.GetValueForProperty("Protocol",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPortInternal)this).Protocol, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerNetworkProtocol.CreateFrom); } if (content.Contains("Port")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPortInternal)this).Port = (int) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPortInternal)this).Port, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPortInternal)this).Port = (int) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPortInternal)this).Port, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -103,39 +103,39 @@ internal ContainerPort(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Protocol")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPortInternal)this).Protocol = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerNetworkProtocol?) content.GetValueForProperty("Protocol",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPortInternal)this).Protocol, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerNetworkProtocol.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPortInternal)this).Protocol = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerNetworkProtocol?) content.GetValueForProperty("Protocol",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPortInternal)this).Protocol, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerNetworkProtocol.CreateFrom); } if (content.Contains("Port")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPortInternal)this).Port = (int) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPortInternal)this).Port, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPortInternal)this).Port = (int) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPortInternal)this).Port, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPort DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPort DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ContainerPort(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPort DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPort DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ContainerPort(content); } @@ -145,7 +145,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api202 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPort FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPort FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerPort.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerPort.TypeConverter.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerPort.TypeConverter.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerPort.TypeConverter.cs index 2b31ecf4a30a..2dadaff6af7b 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerPort.TypeConverter.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerPort.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPort ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPort ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPort).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPort).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerPort.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerPort.cs similarity index 96% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerPort.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerPort.cs index 82bc33ae58be..5f1f29a70ea1 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerPort.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerPort.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; /// The port exposed on the container instance. public partial class ContainerPort : - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPort, - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPortInternal + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPort, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPortInternal { /// Backing field for property. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerPort.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerPort.json.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerPort.json.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerPort.json.cs index 916171bffaa6..d521ba6c61b5 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerPort.json.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerPort.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -71,13 +71,13 @@ internal ContainerPort(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runt } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPort. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPort. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPort. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPort. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPort FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPort FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new ContainerPort(json) : null; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerProbe.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerProbe.PowerShell.cs similarity index 78% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerProbe.PowerShell.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerProbe.PowerShell.cs index e38dff5fb265..9f8da0fe40cb 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerProbe.PowerShell.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerProbe.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -63,7 +63,7 @@ public partial class ContainerProbe partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -78,57 +78,57 @@ internal ContainerProbe(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Exec")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)this).Exec = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExec) content.GetValueForProperty("Exec",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)this).Exec, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerExecTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)this).Exec = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExec) content.GetValueForProperty("Exec",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)this).Exec, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerExecTypeConverter.ConvertFrom); } if (content.Contains("HttpGet")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)this).HttpGet = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerHttpGet) content.GetValueForProperty("HttpGet",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)this).HttpGet, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerHttpGetTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)this).HttpGet = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerHttpGet) content.GetValueForProperty("HttpGet",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)this).HttpGet, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerHttpGetTypeConverter.ConvertFrom); } if (content.Contains("InitialDelaySecond")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)this).InitialDelaySecond = (int?) content.GetValueForProperty("InitialDelaySecond",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)this).InitialDelaySecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)this).InitialDelaySecond = (int?) content.GetValueForProperty("InitialDelaySecond",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)this).InitialDelaySecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("PeriodSecond")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)this).PeriodSecond = (int?) content.GetValueForProperty("PeriodSecond",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)this).PeriodSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)this).PeriodSecond = (int?) content.GetValueForProperty("PeriodSecond",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)this).PeriodSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("FailureThreshold")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)this).FailureThreshold = (int?) content.GetValueForProperty("FailureThreshold",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)this).FailureThreshold, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)this).FailureThreshold = (int?) content.GetValueForProperty("FailureThreshold",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)this).FailureThreshold, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("SuccessThreshold")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)this).SuccessThreshold = (int?) content.GetValueForProperty("SuccessThreshold",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)this).SuccessThreshold, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)this).SuccessThreshold = (int?) content.GetValueForProperty("SuccessThreshold",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)this).SuccessThreshold, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("TimeoutSecond")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)this).TimeoutSecond = (int?) content.GetValueForProperty("TimeoutSecond",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)this).TimeoutSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)this).TimeoutSecond = (int?) content.GetValueForProperty("TimeoutSecond",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)this).TimeoutSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("HttpGetScheme")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)this).HttpGetScheme = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme?) content.GetValueForProperty("HttpGetScheme",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)this).HttpGetScheme, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)this).HttpGetScheme = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme?) content.GetValueForProperty("HttpGetScheme",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)this).HttpGetScheme, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme.CreateFrom); } if (content.Contains("ExecCommand")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)this).ExecCommand = (string[]) content.GetValueForProperty("ExecCommand",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)this).ExecCommand, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)this).ExecCommand = (string[]) content.GetValueForProperty("ExecCommand",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)this).ExecCommand, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("HttpGetPath")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)this).HttpGetPath = (string) content.GetValueForProperty("HttpGetPath",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)this).HttpGetPath, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)this).HttpGetPath = (string) content.GetValueForProperty("HttpGetPath",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)this).HttpGetPath, global::System.Convert.ToString); } if (content.Contains("HttpGetPort")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)this).HttpGetPort = (int) content.GetValueForProperty("HttpGetPort",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)this).HttpGetPort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)this).HttpGetPort = (int) content.GetValueForProperty("HttpGetPort",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)this).HttpGetPort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("HttpGetHttpHeader")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)this).HttpGetHttpHeader = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IHttpHeader[]) content.GetValueForProperty("HttpGetHttpHeader",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)this).HttpGetHttpHeader, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.HttpHeaderTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)this).HttpGetHttpHeader = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader[]) content.GetValueForProperty("HttpGetHttpHeader",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)this).HttpGetHttpHeader, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.HttpHeaderTypeConverter.ConvertFrom)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -143,79 +143,79 @@ internal ContainerProbe(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Exec")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)this).Exec = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExec) content.GetValueForProperty("Exec",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)this).Exec, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerExecTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)this).Exec = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExec) content.GetValueForProperty("Exec",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)this).Exec, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerExecTypeConverter.ConvertFrom); } if (content.Contains("HttpGet")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)this).HttpGet = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerHttpGet) content.GetValueForProperty("HttpGet",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)this).HttpGet, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerHttpGetTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)this).HttpGet = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerHttpGet) content.GetValueForProperty("HttpGet",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)this).HttpGet, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerHttpGetTypeConverter.ConvertFrom); } if (content.Contains("InitialDelaySecond")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)this).InitialDelaySecond = (int?) content.GetValueForProperty("InitialDelaySecond",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)this).InitialDelaySecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)this).InitialDelaySecond = (int?) content.GetValueForProperty("InitialDelaySecond",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)this).InitialDelaySecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("PeriodSecond")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)this).PeriodSecond = (int?) content.GetValueForProperty("PeriodSecond",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)this).PeriodSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)this).PeriodSecond = (int?) content.GetValueForProperty("PeriodSecond",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)this).PeriodSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("FailureThreshold")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)this).FailureThreshold = (int?) content.GetValueForProperty("FailureThreshold",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)this).FailureThreshold, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)this).FailureThreshold = (int?) content.GetValueForProperty("FailureThreshold",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)this).FailureThreshold, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("SuccessThreshold")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)this).SuccessThreshold = (int?) content.GetValueForProperty("SuccessThreshold",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)this).SuccessThreshold, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)this).SuccessThreshold = (int?) content.GetValueForProperty("SuccessThreshold",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)this).SuccessThreshold, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("TimeoutSecond")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)this).TimeoutSecond = (int?) content.GetValueForProperty("TimeoutSecond",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)this).TimeoutSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)this).TimeoutSecond = (int?) content.GetValueForProperty("TimeoutSecond",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)this).TimeoutSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("HttpGetScheme")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)this).HttpGetScheme = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme?) content.GetValueForProperty("HttpGetScheme",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)this).HttpGetScheme, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)this).HttpGetScheme = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme?) content.GetValueForProperty("HttpGetScheme",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)this).HttpGetScheme, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme.CreateFrom); } if (content.Contains("ExecCommand")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)this).ExecCommand = (string[]) content.GetValueForProperty("ExecCommand",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)this).ExecCommand, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)this).ExecCommand = (string[]) content.GetValueForProperty("ExecCommand",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)this).ExecCommand, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("HttpGetPath")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)this).HttpGetPath = (string) content.GetValueForProperty("HttpGetPath",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)this).HttpGetPath, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)this).HttpGetPath = (string) content.GetValueForProperty("HttpGetPath",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)this).HttpGetPath, global::System.Convert.ToString); } if (content.Contains("HttpGetPort")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)this).HttpGetPort = (int) content.GetValueForProperty("HttpGetPort",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)this).HttpGetPort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)this).HttpGetPort = (int) content.GetValueForProperty("HttpGetPort",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)this).HttpGetPort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("HttpGetHttpHeader")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)this).HttpGetHttpHeader = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IHttpHeader[]) content.GetValueForProperty("HttpGetHttpHeader",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)this).HttpGetHttpHeader, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.HttpHeaderTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)this).HttpGetHttpHeader = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader[]) content.GetValueForProperty("HttpGetHttpHeader",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)this).HttpGetHttpHeader, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.HttpHeaderTypeConverter.ConvertFrom)); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbe DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbe DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ContainerProbe(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbe DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbe DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ContainerProbe(content); } @@ -225,7 +225,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api202 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbe FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbe FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerProbe.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerProbe.TypeConverter.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerProbe.TypeConverter.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerProbe.TypeConverter.cs index 875079843f03..8971b53d95d1 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerProbe.TypeConverter.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerProbe.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbe ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbe ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbe).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbe).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerProbe.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerProbe.cs similarity index 86% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerProbe.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerProbe.cs index 13535e9934e8..52f3c39e116e 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerProbe.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerProbe.cs @@ -3,26 +3,26 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; /// The container probe, for liveness or readiness public partial class ContainerProbe : - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbe, - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbe, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExec _exec; + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExec _exec; /// The execution command to probe [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExec Exec { get => (this._exec = this._exec ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerExec()); set => this._exec = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExec Exec { get => (this._exec = this._exec ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerExec()); set => this._exec = value; } /// The commands to execute within the container. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string[] ExecCommand { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecInternal)Exec).Command; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecInternal)Exec).Command = value ?? null /* arrayOf */; } + public string[] ExecCommand { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecInternal)Exec).Command; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecInternal)Exec).Command = value ?? null /* arrayOf */; } /// Backing field for property. private int? _failureThreshold; @@ -32,27 +32,27 @@ public partial class ContainerProbe : public int? FailureThreshold { get => this._failureThreshold; set => this._failureThreshold = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerHttpGet _httpGet; + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerHttpGet _httpGet; /// The Http Get settings to probe [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerHttpGet HttpGet { get => (this._httpGet = this._httpGet ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerHttpGet()); set => this._httpGet = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerHttpGet HttpGet { get => (this._httpGet = this._httpGet ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerHttpGet()); set => this._httpGet = value; } /// The HTTP headers. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IHttpHeader[] HttpGetHttpHeader { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerHttpGetInternal)HttpGet).HttpHeader; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerHttpGetInternal)HttpGet).HttpHeader = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader[] HttpGetHttpHeader { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerHttpGetInternal)HttpGet).HttpHeader; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerHttpGetInternal)HttpGet).HttpHeader = value ?? null /* arrayOf */; } /// The path to probe. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string HttpGetPath { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerHttpGetInternal)HttpGet).Path; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerHttpGetInternal)HttpGet).Path = value ?? null; } + public string HttpGetPath { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerHttpGetInternal)HttpGet).Path; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerHttpGetInternal)HttpGet).Path = value ?? null; } /// The port number to probe. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public int? HttpGetPort { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerHttpGetInternal)HttpGet).Port; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerHttpGetInternal)HttpGet).Port = value ?? default(int); } + public int? HttpGetPort { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerHttpGetInternal)HttpGet).Port; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerHttpGetInternal)HttpGet).Port = value ?? default(int); } /// The scheme. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme? HttpGetScheme { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerHttpGetInternal)HttpGet).Scheme; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerHttpGetInternal)HttpGet).Scheme = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme)""); } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme? HttpGetScheme { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerHttpGetInternal)HttpGet).Scheme; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerHttpGetInternal)HttpGet).Scheme = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme)""); } /// Backing field for property. private int? _initialDelaySecond; @@ -62,10 +62,10 @@ public partial class ContainerProbe : public int? InitialDelaySecond { get => this._initialDelaySecond; set => this._initialDelaySecond = value; } /// Internal Acessors for Exec - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExec Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal.Exec { get => (this._exec = this._exec ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerExec()); set { {_exec = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExec Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal.Exec { get => (this._exec = this._exec ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerExec()); set { {_exec = value;} } } /// Internal Acessors for HttpGet - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerHttpGet Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal.HttpGet { get => (this._httpGet = this._httpGet ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerHttpGet()); set { {_httpGet = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerHttpGet Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal.HttpGet { get => (this._httpGet = this._httpGet ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerHttpGet()); set { {_httpGet = value;} } } /// Backing field for property. private int? _periodSecond; @@ -120,8 +120,8 @@ public partial interface IContainerProbe : ReadOnly = false, Description = @"The HTTP headers.", SerializedName = @"httpHeaders", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IHttpHeader) })] - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IHttpHeader[] HttpGetHttpHeader { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader[] HttpGetHttpHeader { get; set; } /// The path to probe. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = false, @@ -185,15 +185,15 @@ internal partial interface IContainerProbeInternal { /// The execution command to probe - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExec Exec { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExec Exec { get; set; } /// The commands to execute within the container. string[] ExecCommand { get; set; } /// The failure threshold. int? FailureThreshold { get; set; } /// The Http Get settings to probe - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerHttpGet HttpGet { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerHttpGet HttpGet { get; set; } /// The HTTP headers. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IHttpHeader[] HttpGetHttpHeader { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader[] HttpGetHttpHeader { get; set; } /// The path to probe. string HttpGetPath { get; set; } /// The port number to probe. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerProbe.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerProbe.json.cs similarity index 96% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerProbe.json.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerProbe.json.cs index 77bb76fa61ae..d9f929a5b7de 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerProbe.json.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerProbe.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -65,8 +65,8 @@ internal ContainerProbe(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Run { return; } - {_exec = If( json?.PropertyT("exec"), out var __jsonExec) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerExec.FromJson(__jsonExec) : Exec;} - {_httpGet = If( json?.PropertyT("httpGet"), out var __jsonHttpGet) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerHttpGet.FromJson(__jsonHttpGet) : HttpGet;} + {_exec = If( json?.PropertyT("exec"), out var __jsonExec) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerExec.FromJson(__jsonExec) : Exec;} + {_httpGet = If( json?.PropertyT("httpGet"), out var __jsonHttpGet) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerHttpGet.FromJson(__jsonHttpGet) : HttpGet;} {_initialDelaySecond = If( json?.PropertyT("initialDelaySeconds"), out var __jsonInitialDelaySeconds) ? (int?)__jsonInitialDelaySeconds : InitialDelaySecond;} {_periodSecond = If( json?.PropertyT("periodSeconds"), out var __jsonPeriodSeconds) ? (int?)__jsonPeriodSeconds : PeriodSecond;} {_failureThreshold = If( json?.PropertyT("failureThreshold"), out var __jsonFailureThreshold) ? (int?)__jsonFailureThreshold : FailureThreshold;} @@ -76,13 +76,13 @@ internal ContainerProbe(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Run } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbe. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbe. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbe. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbe. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbe FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbe FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new ContainerProbe(json) : null; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerProperties.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerProperties.PowerShell.cs similarity index 62% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerProperties.PowerShell.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerProperties.PowerShell.cs index 7c1f1542b402..7e9bfb718598 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerProperties.PowerShell.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -63,7 +63,7 @@ public partial class ContainerProperties partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -78,245 +78,289 @@ internal ContainerProperties(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("InstanceView")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).InstanceView = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceView) content.GetValueForProperty("InstanceView",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).InstanceView, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerPropertiesInstanceViewTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).InstanceView = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceView) content.GetValueForProperty("InstanceView",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).InstanceView, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerPropertiesInstanceViewTypeConverter.ConvertFrom); } if (content.Contains("Resource")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).Resource = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirements) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).Resource, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ResourceRequirementsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).Resource = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirements) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).Resource, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ResourceRequirementsTypeConverter.ConvertFrom); } if (content.Contains("LivenessProbe")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LivenessProbe = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbe) content.GetValueForProperty("LivenessProbe",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LivenessProbe, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerProbeTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LivenessProbe = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbe) content.GetValueForProperty("LivenessProbe",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LivenessProbe, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerProbeTypeConverter.ConvertFrom); } if (content.Contains("ReadinessProbe")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).ReadinessProbe = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbe) content.GetValueForProperty("ReadinessProbe",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).ReadinessProbe, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerProbeTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).ReadinessProbe = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbe) content.GetValueForProperty("ReadinessProbe",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).ReadinessProbe, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerProbeTypeConverter.ConvertFrom); + } + if (content.Contains("SecurityContext")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).SecurityContext = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinition) content.GetValueForProperty("SecurityContext",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).SecurityContext, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.SecurityContextDefinitionTypeConverter.ConvertFrom); + } + if (content.Contains("ConfigMap")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).ConfigMap = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfigMap) content.GetValueForProperty("ConfigMap",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).ConfigMap, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ConfigMapTypeConverter.ConvertFrom); } if (content.Contains("Image")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).Image = (string) content.GetValueForProperty("Image",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).Image, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).Image = (string) content.GetValueForProperty("Image",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).Image, global::System.Convert.ToString); } if (content.Contains("Command")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).Command = (string[]) content.GetValueForProperty("Command",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).Command, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).Command = (string[]) content.GetValueForProperty("Command",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).Command, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("Port")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).Port = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPort[]) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).Port, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerPortTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).Port = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPort[]) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).Port, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerPortTypeConverter.ConvertFrom)); } if (content.Contains("EnvironmentVariable")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).EnvironmentVariable = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEnvironmentVariable[]) content.GetValueForProperty("EnvironmentVariable",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).EnvironmentVariable, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.EnvironmentVariableTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).EnvironmentVariable = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariable[]) content.GetValueForProperty("EnvironmentVariable",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).EnvironmentVariable, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.EnvironmentVariableTypeConverter.ConvertFrom)); } if (content.Contains("VolumeMount")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).VolumeMount = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeMount[]) content.GetValueForProperty("VolumeMount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).VolumeMount, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.VolumeMountTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).VolumeMount = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMount[]) content.GetValueForProperty("VolumeMount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).VolumeMount, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.VolumeMountTypeConverter.ConvertFrom)); } if (content.Contains("InstanceViewCurrentState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).InstanceViewCurrentState = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerState) content.GetValueForProperty("InstanceViewCurrentState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).InstanceViewCurrentState, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerStateTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).InstanceViewCurrentState = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerState) content.GetValueForProperty("InstanceViewCurrentState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).InstanceViewCurrentState, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerStateTypeConverter.ConvertFrom); } if (content.Contains("InstanceViewPreviousState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).InstanceViewPreviousState = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerState) content.GetValueForProperty("InstanceViewPreviousState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).InstanceViewPreviousState, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerStateTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).InstanceViewPreviousState = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerState) content.GetValueForProperty("InstanceViewPreviousState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).InstanceViewPreviousState, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerStateTypeConverter.ConvertFrom); } if (content.Contains("InstanceViewRestartCount")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).InstanceViewRestartCount = (int?) content.GetValueForProperty("InstanceViewRestartCount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).InstanceViewRestartCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).InstanceViewRestartCount = (int?) content.GetValueForProperty("InstanceViewRestartCount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).InstanceViewRestartCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("InstanceViewEvent")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).InstanceViewEvent = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent[]) content.GetValueForProperty("InstanceViewEvent",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).InstanceViewEvent, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.EventTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).InstanceViewEvent = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent[]) content.GetValueForProperty("InstanceViewEvent",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).InstanceViewEvent, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.EventTypeConverter.ConvertFrom)); } if (content.Contains("ResourceRequest")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).ResourceRequest = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequests) content.GetValueForProperty("ResourceRequest",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).ResourceRequest, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ResourceRequestsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).ResourceRequest = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequests) content.GetValueForProperty("ResourceRequest",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).ResourceRequest, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ResourceRequestsTypeConverter.ConvertFrom); } if (content.Contains("ResourceLimit")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).ResourceLimit = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceLimits) content.GetValueForProperty("ResourceLimit",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).ResourceLimit, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ResourceLimitsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).ResourceLimit = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceLimits) content.GetValueForProperty("ResourceLimit",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).ResourceLimit, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ResourceLimitsTypeConverter.ConvertFrom); } if (content.Contains("LivenessProbeExec")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LivenessProbeExec = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExec) content.GetValueForProperty("LivenessProbeExec",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LivenessProbeExec, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerExecTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LivenessProbeExec = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExec) content.GetValueForProperty("LivenessProbeExec",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LivenessProbeExec, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerExecTypeConverter.ConvertFrom); } if (content.Contains("LivenessProbeHttpGet")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LivenessProbeHttpGet = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerHttpGet) content.GetValueForProperty("LivenessProbeHttpGet",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LivenessProbeHttpGet, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerHttpGetTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LivenessProbeHttpGet = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerHttpGet) content.GetValueForProperty("LivenessProbeHttpGet",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LivenessProbeHttpGet, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerHttpGetTypeConverter.ConvertFrom); } if (content.Contains("LivenessProbeInitialDelaySecond")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LivenessProbeInitialDelaySecond = (int?) content.GetValueForProperty("LivenessProbeInitialDelaySecond",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LivenessProbeInitialDelaySecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LivenessProbeInitialDelaySecond = (int?) content.GetValueForProperty("LivenessProbeInitialDelaySecond",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LivenessProbeInitialDelaySecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("LivenessProbePeriodSecond")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LivenessProbePeriodSecond = (int?) content.GetValueForProperty("LivenessProbePeriodSecond",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LivenessProbePeriodSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LivenessProbePeriodSecond = (int?) content.GetValueForProperty("LivenessProbePeriodSecond",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LivenessProbePeriodSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("LivenessProbeFailureThreshold")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LivenessProbeFailureThreshold = (int?) content.GetValueForProperty("LivenessProbeFailureThreshold",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LivenessProbeFailureThreshold, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LivenessProbeFailureThreshold = (int?) content.GetValueForProperty("LivenessProbeFailureThreshold",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LivenessProbeFailureThreshold, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("LivenessProbeSuccessThreshold")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LivenessProbeSuccessThreshold = (int?) content.GetValueForProperty("LivenessProbeSuccessThreshold",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LivenessProbeSuccessThreshold, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LivenessProbeSuccessThreshold = (int?) content.GetValueForProperty("LivenessProbeSuccessThreshold",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LivenessProbeSuccessThreshold, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("LivenessProbeTimeoutSecond")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LivenessProbeTimeoutSecond = (int?) content.GetValueForProperty("LivenessProbeTimeoutSecond",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LivenessProbeTimeoutSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LivenessProbeTimeoutSecond = (int?) content.GetValueForProperty("LivenessProbeTimeoutSecond",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LivenessProbeTimeoutSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("LivenessProbeHttpGetScheme")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LivenessProbeHttpGetScheme = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme?) content.GetValueForProperty("LivenessProbeHttpGetScheme",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LivenessProbeHttpGetScheme, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LivenessProbeHttpGetScheme = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme?) content.GetValueForProperty("LivenessProbeHttpGetScheme",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LivenessProbeHttpGetScheme, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme.CreateFrom); } if (content.Contains("ReadinessProbeExec")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).ReadinessProbeExec = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExec) content.GetValueForProperty("ReadinessProbeExec",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).ReadinessProbeExec, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerExecTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).ReadinessProbeExec = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExec) content.GetValueForProperty("ReadinessProbeExec",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).ReadinessProbeExec, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerExecTypeConverter.ConvertFrom); } if (content.Contains("ReadinessProbeHttpGet")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).ReadinessProbeHttpGet = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerHttpGet) content.GetValueForProperty("ReadinessProbeHttpGet",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).ReadinessProbeHttpGet, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerHttpGetTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).ReadinessProbeHttpGet = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerHttpGet) content.GetValueForProperty("ReadinessProbeHttpGet",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).ReadinessProbeHttpGet, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerHttpGetTypeConverter.ConvertFrom); } if (content.Contains("ReadinessProbeInitialDelaySecond")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).ReadinessProbeInitialDelaySecond = (int?) content.GetValueForProperty("ReadinessProbeInitialDelaySecond",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).ReadinessProbeInitialDelaySecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).ReadinessProbeInitialDelaySecond = (int?) content.GetValueForProperty("ReadinessProbeInitialDelaySecond",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).ReadinessProbeInitialDelaySecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("ReadinessProbePeriodSecond")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).ReadinessProbePeriodSecond = (int?) content.GetValueForProperty("ReadinessProbePeriodSecond",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).ReadinessProbePeriodSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).ReadinessProbePeriodSecond = (int?) content.GetValueForProperty("ReadinessProbePeriodSecond",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).ReadinessProbePeriodSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("ReadinessProbeFailureThreshold")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).ReadinessProbeFailureThreshold = (int?) content.GetValueForProperty("ReadinessProbeFailureThreshold",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).ReadinessProbeFailureThreshold, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).ReadinessProbeFailureThreshold = (int?) content.GetValueForProperty("ReadinessProbeFailureThreshold",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).ReadinessProbeFailureThreshold, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("ReadinessProbeSuccessThreshold")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).ReadinessProbeSuccessThreshold = (int?) content.GetValueForProperty("ReadinessProbeSuccessThreshold",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).ReadinessProbeSuccessThreshold, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).ReadinessProbeSuccessThreshold = (int?) content.GetValueForProperty("ReadinessProbeSuccessThreshold",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).ReadinessProbeSuccessThreshold, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("ReadinessProbeTimeoutSecond")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).ReadinessProbeTimeoutSecond = (int?) content.GetValueForProperty("ReadinessProbeTimeoutSecond",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).ReadinessProbeTimeoutSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).ReadinessProbeTimeoutSecond = (int?) content.GetValueForProperty("ReadinessProbeTimeoutSecond",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).ReadinessProbeTimeoutSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("ReadinessProbeHttpGetScheme")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).ReadinessProbeHttpGetScheme = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme?) content.GetValueForProperty("ReadinessProbeHttpGetScheme",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).ReadinessProbeHttpGetScheme, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).ReadinessProbeHttpGetScheme = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme?) content.GetValueForProperty("ReadinessProbeHttpGetScheme",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).ReadinessProbeHttpGetScheme, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme.CreateFrom); + } + if (content.Contains("SecurityContextCapability")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).SecurityContextCapability = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextCapabilitiesDefinition) content.GetValueForProperty("SecurityContextCapability",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).SecurityContextCapability, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.SecurityContextCapabilitiesDefinitionTypeConverter.ConvertFrom); + } + if (content.Contains("SecurityContextPrivileged")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).SecurityContextPrivileged = (bool?) content.GetValueForProperty("SecurityContextPrivileged",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).SecurityContextPrivileged, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("SecurityContextAllowPrivilegeEscalation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).SecurityContextAllowPrivilegeEscalation = (bool?) content.GetValueForProperty("SecurityContextAllowPrivilegeEscalation",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).SecurityContextAllowPrivilegeEscalation, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("SecurityContextRunAsGroup")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).SecurityContextRunAsGroup = (int?) content.GetValueForProperty("SecurityContextRunAsGroup",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).SecurityContextRunAsGroup, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("SecurityContextRunAsUser")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).SecurityContextRunAsUser = (int?) content.GetValueForProperty("SecurityContextRunAsUser",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).SecurityContextRunAsUser, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("SecurityContextSeccompProfile")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).SecurityContextSeccompProfile = (string) content.GetValueForProperty("SecurityContextSeccompProfile",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).SecurityContextSeccompProfile, global::System.Convert.ToString); + } + if (content.Contains("ConfigMapKeyValuePair")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).ConfigMapKeyValuePair = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfigMapKeyValuePairs) content.GetValueForProperty("ConfigMapKeyValuePair",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).ConfigMapKeyValuePair, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ConfigMapKeyValuePairsTypeConverter.ConvertFrom); } if (content.Contains("CurrentState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).CurrentState = (string) content.GetValueForProperty("CurrentState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).CurrentState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).CurrentState = (string) content.GetValueForProperty("CurrentState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).CurrentState, global::System.Convert.ToString); } if (content.Contains("CurrentStateStartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).CurrentStateStartTime = (global::System.DateTime?) content.GetValueForProperty("CurrentStateStartTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).CurrentStateStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).CurrentStateStartTime = (global::System.DateTime?) content.GetValueForProperty("CurrentStateStartTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).CurrentStateStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("CurrentStateExitCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).CurrentStateExitCode = (int?) content.GetValueForProperty("CurrentStateExitCode",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).CurrentStateExitCode, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).CurrentStateExitCode = (int?) content.GetValueForProperty("CurrentStateExitCode",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).CurrentStateExitCode, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("CurrentStateFinishTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).CurrentStateFinishTime = (global::System.DateTime?) content.GetValueForProperty("CurrentStateFinishTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).CurrentStateFinishTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).CurrentStateFinishTime = (global::System.DateTime?) content.GetValueForProperty("CurrentStateFinishTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).CurrentStateFinishTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("CurrentStateDetailStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).CurrentStateDetailStatus = (string) content.GetValueForProperty("CurrentStateDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).CurrentStateDetailStatus, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).CurrentStateDetailStatus = (string) content.GetValueForProperty("CurrentStateDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).CurrentStateDetailStatus, global::System.Convert.ToString); } if (content.Contains("PreviousState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).PreviousState = (string) content.GetValueForProperty("PreviousState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).PreviousState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).PreviousState = (string) content.GetValueForProperty("PreviousState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).PreviousState, global::System.Convert.ToString); } if (content.Contains("PreviousStateStartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).PreviousStateStartTime = (global::System.DateTime?) content.GetValueForProperty("PreviousStateStartTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).PreviousStateStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).PreviousStateStartTime = (global::System.DateTime?) content.GetValueForProperty("PreviousStateStartTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).PreviousStateStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("PreviousStateExitCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).PreviousStateExitCode = (int?) content.GetValueForProperty("PreviousStateExitCode",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).PreviousStateExitCode, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).PreviousStateExitCode = (int?) content.GetValueForProperty("PreviousStateExitCode",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).PreviousStateExitCode, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("PreviousStateFinishTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).PreviousStateFinishTime = (global::System.DateTime?) content.GetValueForProperty("PreviousStateFinishTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).PreviousStateFinishTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).PreviousStateFinishTime = (global::System.DateTime?) content.GetValueForProperty("PreviousStateFinishTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).PreviousStateFinishTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("PreviousStateDetailStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).PreviousStateDetailStatus = (string) content.GetValueForProperty("PreviousStateDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).PreviousStateDetailStatus, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).PreviousStateDetailStatus = (string) content.GetValueForProperty("PreviousStateDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).PreviousStateDetailStatus, global::System.Convert.ToString); } if (content.Contains("RequestGpu")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).RequestGpu = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGpuResource) content.GetValueForProperty("RequestGpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).RequestGpu, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.GpuResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).RequestGpu = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGpuResource) content.GetValueForProperty("RequestGpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).RequestGpu, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.GpuResourceTypeConverter.ConvertFrom); } if (content.Contains("RequestMemoryInGb")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).RequestMemoryInGb = (double) content.GetValueForProperty("RequestMemoryInGb",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).RequestMemoryInGb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).RequestMemoryInGb = (double) content.GetValueForProperty("RequestMemoryInGb",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).RequestMemoryInGb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); } if (content.Contains("RequestCpu")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).RequestCpu = (double) content.GetValueForProperty("RequestCpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).RequestCpu, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).RequestCpu = (double) content.GetValueForProperty("RequestCpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).RequestCpu, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); } if (content.Contains("RequestsGpuSku")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).RequestsGpuSku = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku) content.GetValueForProperty("RequestsGpuSku",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).RequestsGpuSku, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).RequestsGpuSku = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku) content.GetValueForProperty("RequestsGpuSku",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).RequestsGpuSku, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku.CreateFrom); } if (content.Contains("LimitGpu")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LimitGpu = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGpuResource) content.GetValueForProperty("LimitGpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LimitGpu, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.GpuResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LimitGpu = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGpuResource) content.GetValueForProperty("LimitGpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LimitGpu, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.GpuResourceTypeConverter.ConvertFrom); } if (content.Contains("LimitMemoryInGb")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LimitMemoryInGb = (double?) content.GetValueForProperty("LimitMemoryInGb",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LimitMemoryInGb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LimitMemoryInGb = (double?) content.GetValueForProperty("LimitMemoryInGb",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LimitMemoryInGb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); } if (content.Contains("LimitCpu")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LimitCpu = (double?) content.GetValueForProperty("LimitCpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LimitCpu, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LimitCpu = (double?) content.GetValueForProperty("LimitCpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LimitCpu, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); } if (content.Contains("LimitsGpuSku")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LimitsGpuSku = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku) content.GetValueForProperty("LimitsGpuSku",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LimitsGpuSku, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LimitsGpuSku = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku) content.GetValueForProperty("LimitsGpuSku",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LimitsGpuSku, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku.CreateFrom); } if (content.Contains("LivenessProbeExecCommand")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LivenessProbeExecCommand = (string[]) content.GetValueForProperty("LivenessProbeExecCommand",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LivenessProbeExecCommand, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LivenessProbeExecCommand = (string[]) content.GetValueForProperty("LivenessProbeExecCommand",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LivenessProbeExecCommand, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("LivenessProbeHttpGetPath")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LivenessProbeHttpGetPath = (string) content.GetValueForProperty("LivenessProbeHttpGetPath",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LivenessProbeHttpGetPath, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LivenessProbeHttpGetPath = (string) content.GetValueForProperty("LivenessProbeHttpGetPath",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LivenessProbeHttpGetPath, global::System.Convert.ToString); } if (content.Contains("LivenessProbeHttpGetPort")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LivenessProbeHttpGetPort = (int) content.GetValueForProperty("LivenessProbeHttpGetPort",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LivenessProbeHttpGetPort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LivenessProbeHttpGetPort = (int) content.GetValueForProperty("LivenessProbeHttpGetPort",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LivenessProbeHttpGetPort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("LivenessProbeHttpGetHttpHeader")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LivenessProbeHttpGetHttpHeader = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IHttpHeader[]) content.GetValueForProperty("LivenessProbeHttpGetHttpHeader",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LivenessProbeHttpGetHttpHeader, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.HttpHeaderTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LivenessProbeHttpGetHttpHeader = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader[]) content.GetValueForProperty("LivenessProbeHttpGetHttpHeader",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LivenessProbeHttpGetHttpHeader, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.HttpHeaderTypeConverter.ConvertFrom)); } if (content.Contains("ReadinessProbeExecCommand")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).ReadinessProbeExecCommand = (string[]) content.GetValueForProperty("ReadinessProbeExecCommand",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).ReadinessProbeExecCommand, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).ReadinessProbeExecCommand = (string[]) content.GetValueForProperty("ReadinessProbeExecCommand",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).ReadinessProbeExecCommand, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("ReadinessProbeHttpGetPath")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).ReadinessProbeHttpGetPath = (string) content.GetValueForProperty("ReadinessProbeHttpGetPath",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).ReadinessProbeHttpGetPath, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).ReadinessProbeHttpGetPath = (string) content.GetValueForProperty("ReadinessProbeHttpGetPath",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).ReadinessProbeHttpGetPath, global::System.Convert.ToString); } if (content.Contains("ReadinessProbeHttpGetPort")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).ReadinessProbeHttpGetPort = (int) content.GetValueForProperty("ReadinessProbeHttpGetPort",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).ReadinessProbeHttpGetPort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).ReadinessProbeHttpGetPort = (int) content.GetValueForProperty("ReadinessProbeHttpGetPort",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).ReadinessProbeHttpGetPort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("ReadinessProbeHttpGetHttpHeader")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).ReadinessProbeHttpGetHttpHeader = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IHttpHeader[]) content.GetValueForProperty("ReadinessProbeHttpGetHttpHeader",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).ReadinessProbeHttpGetHttpHeader, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.HttpHeaderTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).ReadinessProbeHttpGetHttpHeader = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader[]) content.GetValueForProperty("ReadinessProbeHttpGetHttpHeader",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).ReadinessProbeHttpGetHttpHeader, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.HttpHeaderTypeConverter.ConvertFrom)); + } + if (content.Contains("CapabilityAdd")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).CapabilityAdd = (string[]) content.GetValueForProperty("CapabilityAdd",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).CapabilityAdd, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("CapabilityDrop")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).CapabilityDrop = (string[]) content.GetValueForProperty("CapabilityDrop",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).CapabilityDrop, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("RequestsGpuCount")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).RequestsGpuCount = (int) content.GetValueForProperty("RequestsGpuCount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).RequestsGpuCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).RequestsGpuCount = (int) content.GetValueForProperty("RequestsGpuCount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).RequestsGpuCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("LimitsGpuCount")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LimitsGpuCount = (int) content.GetValueForProperty("LimitsGpuCount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LimitsGpuCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LimitsGpuCount = (int) content.GetValueForProperty("LimitsGpuCount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LimitsGpuCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -331,267 +375,311 @@ internal ContainerProperties(global::System.Management.Automation.PSObject conte // actually deserialize if (content.Contains("InstanceView")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).InstanceView = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceView) content.GetValueForProperty("InstanceView",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).InstanceView, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerPropertiesInstanceViewTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).InstanceView = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceView) content.GetValueForProperty("InstanceView",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).InstanceView, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerPropertiesInstanceViewTypeConverter.ConvertFrom); } if (content.Contains("Resource")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).Resource = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirements) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).Resource, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ResourceRequirementsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).Resource = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirements) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).Resource, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ResourceRequirementsTypeConverter.ConvertFrom); } if (content.Contains("LivenessProbe")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LivenessProbe = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbe) content.GetValueForProperty("LivenessProbe",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LivenessProbe, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerProbeTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LivenessProbe = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbe) content.GetValueForProperty("LivenessProbe",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LivenessProbe, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerProbeTypeConverter.ConvertFrom); } if (content.Contains("ReadinessProbe")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).ReadinessProbe = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbe) content.GetValueForProperty("ReadinessProbe",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).ReadinessProbe, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerProbeTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).ReadinessProbe = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbe) content.GetValueForProperty("ReadinessProbe",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).ReadinessProbe, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerProbeTypeConverter.ConvertFrom); + } + if (content.Contains("SecurityContext")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).SecurityContext = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinition) content.GetValueForProperty("SecurityContext",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).SecurityContext, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.SecurityContextDefinitionTypeConverter.ConvertFrom); + } + if (content.Contains("ConfigMap")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).ConfigMap = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfigMap) content.GetValueForProperty("ConfigMap",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).ConfigMap, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ConfigMapTypeConverter.ConvertFrom); } if (content.Contains("Image")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).Image = (string) content.GetValueForProperty("Image",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).Image, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).Image = (string) content.GetValueForProperty("Image",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).Image, global::System.Convert.ToString); } if (content.Contains("Command")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).Command = (string[]) content.GetValueForProperty("Command",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).Command, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).Command = (string[]) content.GetValueForProperty("Command",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).Command, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("Port")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).Port = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPort[]) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).Port, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerPortTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).Port = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPort[]) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).Port, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerPortTypeConverter.ConvertFrom)); } if (content.Contains("EnvironmentVariable")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).EnvironmentVariable = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEnvironmentVariable[]) content.GetValueForProperty("EnvironmentVariable",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).EnvironmentVariable, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.EnvironmentVariableTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).EnvironmentVariable = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariable[]) content.GetValueForProperty("EnvironmentVariable",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).EnvironmentVariable, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.EnvironmentVariableTypeConverter.ConvertFrom)); } if (content.Contains("VolumeMount")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).VolumeMount = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeMount[]) content.GetValueForProperty("VolumeMount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).VolumeMount, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.VolumeMountTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).VolumeMount = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMount[]) content.GetValueForProperty("VolumeMount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).VolumeMount, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.VolumeMountTypeConverter.ConvertFrom)); } if (content.Contains("InstanceViewCurrentState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).InstanceViewCurrentState = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerState) content.GetValueForProperty("InstanceViewCurrentState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).InstanceViewCurrentState, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerStateTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).InstanceViewCurrentState = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerState) content.GetValueForProperty("InstanceViewCurrentState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).InstanceViewCurrentState, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerStateTypeConverter.ConvertFrom); } if (content.Contains("InstanceViewPreviousState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).InstanceViewPreviousState = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerState) content.GetValueForProperty("InstanceViewPreviousState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).InstanceViewPreviousState, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerStateTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).InstanceViewPreviousState = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerState) content.GetValueForProperty("InstanceViewPreviousState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).InstanceViewPreviousState, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerStateTypeConverter.ConvertFrom); } if (content.Contains("InstanceViewRestartCount")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).InstanceViewRestartCount = (int?) content.GetValueForProperty("InstanceViewRestartCount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).InstanceViewRestartCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).InstanceViewRestartCount = (int?) content.GetValueForProperty("InstanceViewRestartCount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).InstanceViewRestartCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("InstanceViewEvent")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).InstanceViewEvent = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent[]) content.GetValueForProperty("InstanceViewEvent",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).InstanceViewEvent, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.EventTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).InstanceViewEvent = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent[]) content.GetValueForProperty("InstanceViewEvent",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).InstanceViewEvent, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.EventTypeConverter.ConvertFrom)); } if (content.Contains("ResourceRequest")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).ResourceRequest = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequests) content.GetValueForProperty("ResourceRequest",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).ResourceRequest, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ResourceRequestsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).ResourceRequest = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequests) content.GetValueForProperty("ResourceRequest",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).ResourceRequest, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ResourceRequestsTypeConverter.ConvertFrom); } if (content.Contains("ResourceLimit")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).ResourceLimit = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceLimits) content.GetValueForProperty("ResourceLimit",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).ResourceLimit, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ResourceLimitsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).ResourceLimit = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceLimits) content.GetValueForProperty("ResourceLimit",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).ResourceLimit, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ResourceLimitsTypeConverter.ConvertFrom); } if (content.Contains("LivenessProbeExec")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LivenessProbeExec = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExec) content.GetValueForProperty("LivenessProbeExec",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LivenessProbeExec, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerExecTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LivenessProbeExec = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExec) content.GetValueForProperty("LivenessProbeExec",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LivenessProbeExec, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerExecTypeConverter.ConvertFrom); } if (content.Contains("LivenessProbeHttpGet")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LivenessProbeHttpGet = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerHttpGet) content.GetValueForProperty("LivenessProbeHttpGet",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LivenessProbeHttpGet, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerHttpGetTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LivenessProbeHttpGet = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerHttpGet) content.GetValueForProperty("LivenessProbeHttpGet",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LivenessProbeHttpGet, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerHttpGetTypeConverter.ConvertFrom); } if (content.Contains("LivenessProbeInitialDelaySecond")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LivenessProbeInitialDelaySecond = (int?) content.GetValueForProperty("LivenessProbeInitialDelaySecond",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LivenessProbeInitialDelaySecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LivenessProbeInitialDelaySecond = (int?) content.GetValueForProperty("LivenessProbeInitialDelaySecond",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LivenessProbeInitialDelaySecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("LivenessProbePeriodSecond")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LivenessProbePeriodSecond = (int?) content.GetValueForProperty("LivenessProbePeriodSecond",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LivenessProbePeriodSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LivenessProbePeriodSecond = (int?) content.GetValueForProperty("LivenessProbePeriodSecond",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LivenessProbePeriodSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("LivenessProbeFailureThreshold")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LivenessProbeFailureThreshold = (int?) content.GetValueForProperty("LivenessProbeFailureThreshold",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LivenessProbeFailureThreshold, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LivenessProbeFailureThreshold = (int?) content.GetValueForProperty("LivenessProbeFailureThreshold",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LivenessProbeFailureThreshold, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("LivenessProbeSuccessThreshold")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LivenessProbeSuccessThreshold = (int?) content.GetValueForProperty("LivenessProbeSuccessThreshold",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LivenessProbeSuccessThreshold, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LivenessProbeSuccessThreshold = (int?) content.GetValueForProperty("LivenessProbeSuccessThreshold",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LivenessProbeSuccessThreshold, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("LivenessProbeTimeoutSecond")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LivenessProbeTimeoutSecond = (int?) content.GetValueForProperty("LivenessProbeTimeoutSecond",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LivenessProbeTimeoutSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LivenessProbeTimeoutSecond = (int?) content.GetValueForProperty("LivenessProbeTimeoutSecond",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LivenessProbeTimeoutSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("LivenessProbeHttpGetScheme")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LivenessProbeHttpGetScheme = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme?) content.GetValueForProperty("LivenessProbeHttpGetScheme",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LivenessProbeHttpGetScheme, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LivenessProbeHttpGetScheme = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme?) content.GetValueForProperty("LivenessProbeHttpGetScheme",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LivenessProbeHttpGetScheme, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme.CreateFrom); } if (content.Contains("ReadinessProbeExec")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).ReadinessProbeExec = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExec) content.GetValueForProperty("ReadinessProbeExec",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).ReadinessProbeExec, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerExecTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).ReadinessProbeExec = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExec) content.GetValueForProperty("ReadinessProbeExec",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).ReadinessProbeExec, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerExecTypeConverter.ConvertFrom); } if (content.Contains("ReadinessProbeHttpGet")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).ReadinessProbeHttpGet = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerHttpGet) content.GetValueForProperty("ReadinessProbeHttpGet",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).ReadinessProbeHttpGet, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerHttpGetTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).ReadinessProbeHttpGet = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerHttpGet) content.GetValueForProperty("ReadinessProbeHttpGet",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).ReadinessProbeHttpGet, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerHttpGetTypeConverter.ConvertFrom); } if (content.Contains("ReadinessProbeInitialDelaySecond")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).ReadinessProbeInitialDelaySecond = (int?) content.GetValueForProperty("ReadinessProbeInitialDelaySecond",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).ReadinessProbeInitialDelaySecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).ReadinessProbeInitialDelaySecond = (int?) content.GetValueForProperty("ReadinessProbeInitialDelaySecond",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).ReadinessProbeInitialDelaySecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("ReadinessProbePeriodSecond")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).ReadinessProbePeriodSecond = (int?) content.GetValueForProperty("ReadinessProbePeriodSecond",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).ReadinessProbePeriodSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).ReadinessProbePeriodSecond = (int?) content.GetValueForProperty("ReadinessProbePeriodSecond",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).ReadinessProbePeriodSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("ReadinessProbeFailureThreshold")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).ReadinessProbeFailureThreshold = (int?) content.GetValueForProperty("ReadinessProbeFailureThreshold",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).ReadinessProbeFailureThreshold, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).ReadinessProbeFailureThreshold = (int?) content.GetValueForProperty("ReadinessProbeFailureThreshold",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).ReadinessProbeFailureThreshold, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("ReadinessProbeSuccessThreshold")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).ReadinessProbeSuccessThreshold = (int?) content.GetValueForProperty("ReadinessProbeSuccessThreshold",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).ReadinessProbeSuccessThreshold, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).ReadinessProbeSuccessThreshold = (int?) content.GetValueForProperty("ReadinessProbeSuccessThreshold",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).ReadinessProbeSuccessThreshold, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("ReadinessProbeTimeoutSecond")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).ReadinessProbeTimeoutSecond = (int?) content.GetValueForProperty("ReadinessProbeTimeoutSecond",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).ReadinessProbeTimeoutSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).ReadinessProbeTimeoutSecond = (int?) content.GetValueForProperty("ReadinessProbeTimeoutSecond",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).ReadinessProbeTimeoutSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("ReadinessProbeHttpGetScheme")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).ReadinessProbeHttpGetScheme = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme?) content.GetValueForProperty("ReadinessProbeHttpGetScheme",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).ReadinessProbeHttpGetScheme, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).ReadinessProbeHttpGetScheme = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme?) content.GetValueForProperty("ReadinessProbeHttpGetScheme",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).ReadinessProbeHttpGetScheme, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme.CreateFrom); + } + if (content.Contains("SecurityContextCapability")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).SecurityContextCapability = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextCapabilitiesDefinition) content.GetValueForProperty("SecurityContextCapability",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).SecurityContextCapability, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.SecurityContextCapabilitiesDefinitionTypeConverter.ConvertFrom); + } + if (content.Contains("SecurityContextPrivileged")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).SecurityContextPrivileged = (bool?) content.GetValueForProperty("SecurityContextPrivileged",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).SecurityContextPrivileged, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("SecurityContextAllowPrivilegeEscalation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).SecurityContextAllowPrivilegeEscalation = (bool?) content.GetValueForProperty("SecurityContextAllowPrivilegeEscalation",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).SecurityContextAllowPrivilegeEscalation, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("SecurityContextRunAsGroup")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).SecurityContextRunAsGroup = (int?) content.GetValueForProperty("SecurityContextRunAsGroup",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).SecurityContextRunAsGroup, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("SecurityContextRunAsUser")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).SecurityContextRunAsUser = (int?) content.GetValueForProperty("SecurityContextRunAsUser",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).SecurityContextRunAsUser, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("SecurityContextSeccompProfile")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).SecurityContextSeccompProfile = (string) content.GetValueForProperty("SecurityContextSeccompProfile",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).SecurityContextSeccompProfile, global::System.Convert.ToString); + } + if (content.Contains("ConfigMapKeyValuePair")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).ConfigMapKeyValuePair = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfigMapKeyValuePairs) content.GetValueForProperty("ConfigMapKeyValuePair",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).ConfigMapKeyValuePair, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ConfigMapKeyValuePairsTypeConverter.ConvertFrom); } if (content.Contains("CurrentState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).CurrentState = (string) content.GetValueForProperty("CurrentState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).CurrentState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).CurrentState = (string) content.GetValueForProperty("CurrentState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).CurrentState, global::System.Convert.ToString); } if (content.Contains("CurrentStateStartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).CurrentStateStartTime = (global::System.DateTime?) content.GetValueForProperty("CurrentStateStartTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).CurrentStateStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).CurrentStateStartTime = (global::System.DateTime?) content.GetValueForProperty("CurrentStateStartTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).CurrentStateStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("CurrentStateExitCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).CurrentStateExitCode = (int?) content.GetValueForProperty("CurrentStateExitCode",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).CurrentStateExitCode, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).CurrentStateExitCode = (int?) content.GetValueForProperty("CurrentStateExitCode",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).CurrentStateExitCode, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("CurrentStateFinishTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).CurrentStateFinishTime = (global::System.DateTime?) content.GetValueForProperty("CurrentStateFinishTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).CurrentStateFinishTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).CurrentStateFinishTime = (global::System.DateTime?) content.GetValueForProperty("CurrentStateFinishTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).CurrentStateFinishTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("CurrentStateDetailStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).CurrentStateDetailStatus = (string) content.GetValueForProperty("CurrentStateDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).CurrentStateDetailStatus, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).CurrentStateDetailStatus = (string) content.GetValueForProperty("CurrentStateDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).CurrentStateDetailStatus, global::System.Convert.ToString); } if (content.Contains("PreviousState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).PreviousState = (string) content.GetValueForProperty("PreviousState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).PreviousState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).PreviousState = (string) content.GetValueForProperty("PreviousState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).PreviousState, global::System.Convert.ToString); } if (content.Contains("PreviousStateStartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).PreviousStateStartTime = (global::System.DateTime?) content.GetValueForProperty("PreviousStateStartTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).PreviousStateStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).PreviousStateStartTime = (global::System.DateTime?) content.GetValueForProperty("PreviousStateStartTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).PreviousStateStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("PreviousStateExitCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).PreviousStateExitCode = (int?) content.GetValueForProperty("PreviousStateExitCode",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).PreviousStateExitCode, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).PreviousStateExitCode = (int?) content.GetValueForProperty("PreviousStateExitCode",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).PreviousStateExitCode, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("PreviousStateFinishTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).PreviousStateFinishTime = (global::System.DateTime?) content.GetValueForProperty("PreviousStateFinishTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).PreviousStateFinishTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).PreviousStateFinishTime = (global::System.DateTime?) content.GetValueForProperty("PreviousStateFinishTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).PreviousStateFinishTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("PreviousStateDetailStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).PreviousStateDetailStatus = (string) content.GetValueForProperty("PreviousStateDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).PreviousStateDetailStatus, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).PreviousStateDetailStatus = (string) content.GetValueForProperty("PreviousStateDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).PreviousStateDetailStatus, global::System.Convert.ToString); } if (content.Contains("RequestGpu")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).RequestGpu = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGpuResource) content.GetValueForProperty("RequestGpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).RequestGpu, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.GpuResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).RequestGpu = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGpuResource) content.GetValueForProperty("RequestGpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).RequestGpu, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.GpuResourceTypeConverter.ConvertFrom); } if (content.Contains("RequestMemoryInGb")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).RequestMemoryInGb = (double) content.GetValueForProperty("RequestMemoryInGb",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).RequestMemoryInGb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).RequestMemoryInGb = (double) content.GetValueForProperty("RequestMemoryInGb",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).RequestMemoryInGb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); } if (content.Contains("RequestCpu")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).RequestCpu = (double) content.GetValueForProperty("RequestCpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).RequestCpu, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).RequestCpu = (double) content.GetValueForProperty("RequestCpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).RequestCpu, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); } if (content.Contains("RequestsGpuSku")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).RequestsGpuSku = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku) content.GetValueForProperty("RequestsGpuSku",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).RequestsGpuSku, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).RequestsGpuSku = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku) content.GetValueForProperty("RequestsGpuSku",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).RequestsGpuSku, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku.CreateFrom); } if (content.Contains("LimitGpu")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LimitGpu = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGpuResource) content.GetValueForProperty("LimitGpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LimitGpu, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.GpuResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LimitGpu = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGpuResource) content.GetValueForProperty("LimitGpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LimitGpu, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.GpuResourceTypeConverter.ConvertFrom); } if (content.Contains("LimitMemoryInGb")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LimitMemoryInGb = (double?) content.GetValueForProperty("LimitMemoryInGb",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LimitMemoryInGb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LimitMemoryInGb = (double?) content.GetValueForProperty("LimitMemoryInGb",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LimitMemoryInGb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); } if (content.Contains("LimitCpu")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LimitCpu = (double?) content.GetValueForProperty("LimitCpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LimitCpu, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LimitCpu = (double?) content.GetValueForProperty("LimitCpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LimitCpu, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); } if (content.Contains("LimitsGpuSku")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LimitsGpuSku = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku) content.GetValueForProperty("LimitsGpuSku",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LimitsGpuSku, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LimitsGpuSku = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku) content.GetValueForProperty("LimitsGpuSku",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LimitsGpuSku, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku.CreateFrom); } if (content.Contains("LivenessProbeExecCommand")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LivenessProbeExecCommand = (string[]) content.GetValueForProperty("LivenessProbeExecCommand",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LivenessProbeExecCommand, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LivenessProbeExecCommand = (string[]) content.GetValueForProperty("LivenessProbeExecCommand",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LivenessProbeExecCommand, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("LivenessProbeHttpGetPath")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LivenessProbeHttpGetPath = (string) content.GetValueForProperty("LivenessProbeHttpGetPath",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LivenessProbeHttpGetPath, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LivenessProbeHttpGetPath = (string) content.GetValueForProperty("LivenessProbeHttpGetPath",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LivenessProbeHttpGetPath, global::System.Convert.ToString); } if (content.Contains("LivenessProbeHttpGetPort")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LivenessProbeHttpGetPort = (int) content.GetValueForProperty("LivenessProbeHttpGetPort",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LivenessProbeHttpGetPort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LivenessProbeHttpGetPort = (int) content.GetValueForProperty("LivenessProbeHttpGetPort",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LivenessProbeHttpGetPort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("LivenessProbeHttpGetHttpHeader")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LivenessProbeHttpGetHttpHeader = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IHttpHeader[]) content.GetValueForProperty("LivenessProbeHttpGetHttpHeader",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LivenessProbeHttpGetHttpHeader, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.HttpHeaderTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LivenessProbeHttpGetHttpHeader = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader[]) content.GetValueForProperty("LivenessProbeHttpGetHttpHeader",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LivenessProbeHttpGetHttpHeader, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.HttpHeaderTypeConverter.ConvertFrom)); } if (content.Contains("ReadinessProbeExecCommand")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).ReadinessProbeExecCommand = (string[]) content.GetValueForProperty("ReadinessProbeExecCommand",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).ReadinessProbeExecCommand, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).ReadinessProbeExecCommand = (string[]) content.GetValueForProperty("ReadinessProbeExecCommand",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).ReadinessProbeExecCommand, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("ReadinessProbeHttpGetPath")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).ReadinessProbeHttpGetPath = (string) content.GetValueForProperty("ReadinessProbeHttpGetPath",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).ReadinessProbeHttpGetPath, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).ReadinessProbeHttpGetPath = (string) content.GetValueForProperty("ReadinessProbeHttpGetPath",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).ReadinessProbeHttpGetPath, global::System.Convert.ToString); } if (content.Contains("ReadinessProbeHttpGetPort")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).ReadinessProbeHttpGetPort = (int) content.GetValueForProperty("ReadinessProbeHttpGetPort",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).ReadinessProbeHttpGetPort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).ReadinessProbeHttpGetPort = (int) content.GetValueForProperty("ReadinessProbeHttpGetPort",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).ReadinessProbeHttpGetPort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("ReadinessProbeHttpGetHttpHeader")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).ReadinessProbeHttpGetHttpHeader = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IHttpHeader[]) content.GetValueForProperty("ReadinessProbeHttpGetHttpHeader",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).ReadinessProbeHttpGetHttpHeader, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.HttpHeaderTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).ReadinessProbeHttpGetHttpHeader = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader[]) content.GetValueForProperty("ReadinessProbeHttpGetHttpHeader",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).ReadinessProbeHttpGetHttpHeader, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.HttpHeaderTypeConverter.ConvertFrom)); + } + if (content.Contains("CapabilityAdd")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).CapabilityAdd = (string[]) content.GetValueForProperty("CapabilityAdd",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).CapabilityAdd, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("CapabilityDrop")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).CapabilityDrop = (string[]) content.GetValueForProperty("CapabilityDrop",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).CapabilityDrop, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("RequestsGpuCount")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).RequestsGpuCount = (int) content.GetValueForProperty("RequestsGpuCount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).RequestsGpuCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).RequestsGpuCount = (int) content.GetValueForProperty("RequestsGpuCount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).RequestsGpuCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("LimitsGpuCount")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LimitsGpuCount = (int) content.GetValueForProperty("LimitsGpuCount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal)this).LimitsGpuCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LimitsGpuCount = (int) content.GetValueForProperty("LimitsGpuCount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal)this).LimitsGpuCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ContainerProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ContainerProperties(content); } @@ -601,7 +689,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api202 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerProperties.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerProperties.TypeConverter.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerProperties.TypeConverter.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerProperties.TypeConverter.cs index 72b61e789eca..c496bdb51b81 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerProperties.TypeConverter.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerProperties.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerProperties.cs similarity index 67% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerProperties.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerProperties.cs index 413e20438c72..c5de92916a69 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerProperties.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerProperties.cs @@ -3,16 +3,24 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; /// The container instance properties. public partial class ContainerProperties : - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProperties, - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProperties, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal { + /// The capabilities to add to the container. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public string[] CapabilityAdd { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinitionInternal)SecurityContext).CapabilityAdd; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinitionInternal)SecurityContext).CapabilityAdd = value ?? null /* arrayOf */; } + + /// The capabilities to drop from the container. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public string[] CapabilityDrop { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinitionInternal)SecurityContext).CapabilityDrop; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinitionInternal)SecurityContext).CapabilityDrop = value ?? null /* arrayOf */; } + /// Backing field for property. private string[] _command; @@ -20,34 +28,45 @@ public partial class ContainerProperties : [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] public string[] Command { get => this._command; set => this._command = value; } + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfigMap _configMap; + + /// The config map. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfigMap ConfigMap { get => (this._configMap = this._configMap ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ConfigMap()); set => this._configMap = value; } + + /// The key value pairs dictionary in the config map. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfigMapKeyValuePairs ConfigMapKeyValuePair { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfigMapInternal)ConfigMap).KeyValuePair; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfigMapInternal)ConfigMap).KeyValuePair = value ?? null /* model class */; } + /// The state of the container instance. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string CurrentState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)InstanceView).CurrentStateState; } + public string CurrentState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)InstanceView).CurrentStateState; } /// The human-readable status of the container instance state. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string CurrentStateDetailStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)InstanceView).CurrentStateDetailStatus; } + public string CurrentStateDetailStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)InstanceView).CurrentStateDetailStatus; } /// /// The container instance exit codes correspond to those from the `docker run` command. /// [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public int? CurrentStateExitCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)InstanceView).CurrentStateExitCode; } + public int? CurrentStateExitCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)InstanceView).CurrentStateExitCode; } /// The date-time when the container instance state finished. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public global::System.DateTime? CurrentStateFinishTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)InstanceView).CurrentStateFinishTime; } + public global::System.DateTime? CurrentStateFinishTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)InstanceView).CurrentStateFinishTime; } /// The date-time when the container instance state started. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public global::System.DateTime? CurrentStateStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)InstanceView).CurrentStateStartTime; } + public global::System.DateTime? CurrentStateStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)InstanceView).CurrentStateStartTime; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEnvironmentVariable[] _environmentVariable; + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariable[] _environmentVariable; /// The environment variables to set in the container instance. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEnvironmentVariable[] EnvironmentVariable { get => this._environmentVariable; set => this._environmentVariable = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariable[] EnvironmentVariable { get => this._environmentVariable; set => this._environmentVariable = value; } /// Backing field for property. private string _image; @@ -57,266 +76,304 @@ public partial class ContainerProperties : public string Image { get => this._image; set => this._image = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceView _instanceView; + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceView _instanceView; /// The instance view of the container instance. Only valid in response. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceView InstanceView { get => (this._instanceView = this._instanceView ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerPropertiesInstanceView()); } + internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceView InstanceView { get => (this._instanceView = this._instanceView ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerPropertiesInstanceView()); } /// The events of the container instance. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent[] InstanceViewEvent { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)InstanceView).Event; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent[] InstanceViewEvent { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)InstanceView).Event; } /// The number of times that the container instance has been restarted. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public int? InstanceViewRestartCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)InstanceView).RestartCount; } + public int? InstanceViewRestartCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)InstanceView).RestartCount; } /// The CPU limit of this container instance. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public double? LimitCpu { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)Resource).LimitCpu; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)Resource).LimitCpu = value ?? default(double); } + public double? LimitCpu { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)Resource).LimitCpu; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)Resource).LimitCpu = value ?? default(double); } /// The memory limit in GB of this container instance. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public double? LimitMemoryInGb { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)Resource).LimitMemoryInGb; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)Resource).LimitMemoryInGb = value ?? default(double); } + public double? LimitMemoryInGb { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)Resource).LimitMemoryInGb; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)Resource).LimitMemoryInGb = value ?? default(double); } /// The count of the GPU resource. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public int? LimitsGpuCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)Resource).LimitsGpuCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)Resource).LimitsGpuCount = value ?? default(int); } + public int? LimitsGpuCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)Resource).LimitsGpuCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)Resource).LimitsGpuCount = value ?? default(int); } /// The SKU of the GPU resource. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku? LimitsGpuSku { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)Resource).LimitsGpuSku; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)Resource).LimitsGpuSku = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku)""); } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku? LimitsGpuSku { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)Resource).LimitsGpuSku; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)Resource).LimitsGpuSku = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku)""); } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbe _livenessProbe; + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbe _livenessProbe; /// The liveness probe. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbe LivenessProbe { get => (this._livenessProbe = this._livenessProbe ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerProbe()); set => this._livenessProbe = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbe LivenessProbe { get => (this._livenessProbe = this._livenessProbe ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerProbe()); set => this._livenessProbe = value; } /// The commands to execute within the container. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string[] LivenessProbeExecCommand { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)LivenessProbe).ExecCommand; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)LivenessProbe).ExecCommand = value ?? null /* arrayOf */; } + public string[] LivenessProbeExecCommand { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)LivenessProbe).ExecCommand; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)LivenessProbe).ExecCommand = value ?? null /* arrayOf */; } /// The failure threshold. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public int? LivenessProbeFailureThreshold { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)LivenessProbe).FailureThreshold; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)LivenessProbe).FailureThreshold = value ?? default(int); } + public int? LivenessProbeFailureThreshold { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)LivenessProbe).FailureThreshold; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)LivenessProbe).FailureThreshold = value ?? default(int); } /// The HTTP headers. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IHttpHeader[] LivenessProbeHttpGetHttpHeader { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)LivenessProbe).HttpGetHttpHeader; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)LivenessProbe).HttpGetHttpHeader = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader[] LivenessProbeHttpGetHttpHeader { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)LivenessProbe).HttpGetHttpHeader; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)LivenessProbe).HttpGetHttpHeader = value ?? null /* arrayOf */; } /// The path to probe. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string LivenessProbeHttpGetPath { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)LivenessProbe).HttpGetPath; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)LivenessProbe).HttpGetPath = value ?? null; } + public string LivenessProbeHttpGetPath { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)LivenessProbe).HttpGetPath; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)LivenessProbe).HttpGetPath = value ?? null; } /// The port number to probe. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public int? LivenessProbeHttpGetPort { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)LivenessProbe).HttpGetPort; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)LivenessProbe).HttpGetPort = value ?? default(int); } + public int? LivenessProbeHttpGetPort { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)LivenessProbe).HttpGetPort; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)LivenessProbe).HttpGetPort = value ?? default(int); } /// The scheme. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme? LivenessProbeHttpGetScheme { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)LivenessProbe).HttpGetScheme; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)LivenessProbe).HttpGetScheme = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme)""); } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme? LivenessProbeHttpGetScheme { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)LivenessProbe).HttpGetScheme; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)LivenessProbe).HttpGetScheme = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme)""); } /// The initial delay seconds. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public int? LivenessProbeInitialDelaySecond { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)LivenessProbe).InitialDelaySecond; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)LivenessProbe).InitialDelaySecond = value ?? default(int); } + public int? LivenessProbeInitialDelaySecond { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)LivenessProbe).InitialDelaySecond; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)LivenessProbe).InitialDelaySecond = value ?? default(int); } /// The period seconds. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public int? LivenessProbePeriodSecond { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)LivenessProbe).PeriodSecond; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)LivenessProbe).PeriodSecond = value ?? default(int); } + public int? LivenessProbePeriodSecond { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)LivenessProbe).PeriodSecond; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)LivenessProbe).PeriodSecond = value ?? default(int); } /// The success threshold. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public int? LivenessProbeSuccessThreshold { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)LivenessProbe).SuccessThreshold; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)LivenessProbe).SuccessThreshold = value ?? default(int); } + public int? LivenessProbeSuccessThreshold { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)LivenessProbe).SuccessThreshold; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)LivenessProbe).SuccessThreshold = value ?? default(int); } /// The timeout seconds. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public int? LivenessProbeTimeoutSecond { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)LivenessProbe).TimeoutSecond; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)LivenessProbe).TimeoutSecond = value ?? default(int); } + public int? LivenessProbeTimeoutSecond { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)LivenessProbe).TimeoutSecond; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)LivenessProbe).TimeoutSecond = value ?? default(int); } + + /// Internal Acessors for ConfigMap + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfigMap Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal.ConfigMap { get => (this._configMap = this._configMap ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ConfigMap()); set { {_configMap = value;} } } /// Internal Acessors for CurrentState - string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal.CurrentState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)InstanceView).CurrentStateState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)InstanceView).CurrentStateState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal.CurrentState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)InstanceView).CurrentStateState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)InstanceView).CurrentStateState = value; } /// Internal Acessors for CurrentStateDetailStatus - string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal.CurrentStateDetailStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)InstanceView).CurrentStateDetailStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)InstanceView).CurrentStateDetailStatus = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal.CurrentStateDetailStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)InstanceView).CurrentStateDetailStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)InstanceView).CurrentStateDetailStatus = value; } /// Internal Acessors for CurrentStateExitCode - int? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal.CurrentStateExitCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)InstanceView).CurrentStateExitCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)InstanceView).CurrentStateExitCode = value; } + int? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal.CurrentStateExitCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)InstanceView).CurrentStateExitCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)InstanceView).CurrentStateExitCode = value; } /// Internal Acessors for CurrentStateFinishTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal.CurrentStateFinishTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)InstanceView).CurrentStateFinishTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)InstanceView).CurrentStateFinishTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal.CurrentStateFinishTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)InstanceView).CurrentStateFinishTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)InstanceView).CurrentStateFinishTime = value; } /// Internal Acessors for CurrentStateStartTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal.CurrentStateStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)InstanceView).CurrentStateStartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)InstanceView).CurrentStateStartTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal.CurrentStateStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)InstanceView).CurrentStateStartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)InstanceView).CurrentStateStartTime = value; } /// Internal Acessors for InstanceView - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceView Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal.InstanceView { get => (this._instanceView = this._instanceView ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerPropertiesInstanceView()); set { {_instanceView = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceView Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal.InstanceView { get => (this._instanceView = this._instanceView ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerPropertiesInstanceView()); set { {_instanceView = value;} } } /// Internal Acessors for InstanceViewCurrentState - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerState Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal.InstanceViewCurrentState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)InstanceView).CurrentState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)InstanceView).CurrentState = value; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerState Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal.InstanceViewCurrentState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)InstanceView).CurrentState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)InstanceView).CurrentState = value; } /// Internal Acessors for InstanceViewEvent - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent[] Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal.InstanceViewEvent { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)InstanceView).Event; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)InstanceView).Event = value; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent[] Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal.InstanceViewEvent { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)InstanceView).Event; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)InstanceView).Event = value; } /// Internal Acessors for InstanceViewPreviousState - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerState Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal.InstanceViewPreviousState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)InstanceView).PreviousStateInternal; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)InstanceView).PreviousStateInternal = value; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerState Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal.InstanceViewPreviousState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)InstanceView).PreviousStateInternal; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)InstanceView).PreviousStateInternal = value; } /// Internal Acessors for InstanceViewRestartCount - int? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal.InstanceViewRestartCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)InstanceView).RestartCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)InstanceView).RestartCount = value; } + int? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal.InstanceViewRestartCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)InstanceView).RestartCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)InstanceView).RestartCount = value; } /// Internal Acessors for LimitGpu - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGpuResource Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal.LimitGpu { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)Resource).LimitGpu; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)Resource).LimitGpu = value; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGpuResource Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal.LimitGpu { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)Resource).LimitGpu; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)Resource).LimitGpu = value; } /// Internal Acessors for LivenessProbe - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbe Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal.LivenessProbe { get => (this._livenessProbe = this._livenessProbe ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerProbe()); set { {_livenessProbe = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbe Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal.LivenessProbe { get => (this._livenessProbe = this._livenessProbe ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerProbe()); set { {_livenessProbe = value;} } } /// Internal Acessors for LivenessProbeExec - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExec Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal.LivenessProbeExec { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)LivenessProbe).Exec; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)LivenessProbe).Exec = value; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExec Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal.LivenessProbeExec { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)LivenessProbe).Exec; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)LivenessProbe).Exec = value; } /// Internal Acessors for LivenessProbeHttpGet - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerHttpGet Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal.LivenessProbeHttpGet { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)LivenessProbe).HttpGet; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)LivenessProbe).HttpGet = value; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerHttpGet Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal.LivenessProbeHttpGet { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)LivenessProbe).HttpGet; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)LivenessProbe).HttpGet = value; } /// Internal Acessors for PreviousState - string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal.PreviousState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)InstanceView).PreviousState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)InstanceView).PreviousState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal.PreviousState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)InstanceView).PreviousState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)InstanceView).PreviousState = value; } /// Internal Acessors for PreviousStateDetailStatus - string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal.PreviousStateDetailStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)InstanceView).PreviousStateDetailStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)InstanceView).PreviousStateDetailStatus = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal.PreviousStateDetailStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)InstanceView).PreviousStateDetailStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)InstanceView).PreviousStateDetailStatus = value; } /// Internal Acessors for PreviousStateExitCode - int? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal.PreviousStateExitCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)InstanceView).PreviousStateExitCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)InstanceView).PreviousStateExitCode = value; } + int? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal.PreviousStateExitCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)InstanceView).PreviousStateExitCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)InstanceView).PreviousStateExitCode = value; } /// Internal Acessors for PreviousStateFinishTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal.PreviousStateFinishTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)InstanceView).PreviousStateFinishTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)InstanceView).PreviousStateFinishTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal.PreviousStateFinishTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)InstanceView).PreviousStateFinishTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)InstanceView).PreviousStateFinishTime = value; } /// Internal Acessors for PreviousStateStartTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal.PreviousStateStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)InstanceView).PreviousStateStartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)InstanceView).PreviousStateStartTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal.PreviousStateStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)InstanceView).PreviousStateStartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)InstanceView).PreviousStateStartTime = value; } /// Internal Acessors for ReadinessProbe - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbe Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal.ReadinessProbe { get => (this._readinessProbe = this._readinessProbe ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerProbe()); set { {_readinessProbe = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbe Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal.ReadinessProbe { get => (this._readinessProbe = this._readinessProbe ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerProbe()); set { {_readinessProbe = value;} } } /// Internal Acessors for ReadinessProbeExec - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExec Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal.ReadinessProbeExec { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)ReadinessProbe).Exec; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)ReadinessProbe).Exec = value; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExec Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal.ReadinessProbeExec { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)ReadinessProbe).Exec; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)ReadinessProbe).Exec = value; } /// Internal Acessors for ReadinessProbeHttpGet - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerHttpGet Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal.ReadinessProbeHttpGet { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)ReadinessProbe).HttpGet; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)ReadinessProbe).HttpGet = value; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerHttpGet Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal.ReadinessProbeHttpGet { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)ReadinessProbe).HttpGet; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)ReadinessProbe).HttpGet = value; } /// Internal Acessors for RequestGpu - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGpuResource Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal.RequestGpu { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)Resource).RequestGpu; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)Resource).RequestGpu = value; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGpuResource Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal.RequestGpu { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)Resource).RequestGpu; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)Resource).RequestGpu = value; } /// Internal Acessors for Resource - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirements Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal.Resource { get => (this._resource = this._resource ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ResourceRequirements()); set { {_resource = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirements Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal.Resource { get => (this._resource = this._resource ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ResourceRequirements()); set { {_resource = value;} } } /// Internal Acessors for ResourceLimit - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceLimits Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal.ResourceLimit { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)Resource).Limit; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)Resource).Limit = value; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceLimits Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal.ResourceLimit { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)Resource).Limit; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)Resource).Limit = value; } /// Internal Acessors for ResourceRequest - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequests Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInternal.ResourceRequest { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)Resource).Request; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)Resource).Request = value; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequests Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal.ResourceRequest { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)Resource).Request; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)Resource).Request = value; } + + /// Internal Acessors for SecurityContext + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinition Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal.SecurityContext { get => (this._securityContext = this._securityContext ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.SecurityContextDefinition()); set { {_securityContext = value;} } } + + /// Internal Acessors for SecurityContextCapability + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextCapabilitiesDefinition Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInternal.SecurityContextCapability { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinitionInternal)SecurityContext).Capability; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinitionInternal)SecurityContext).Capability = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPort[] _port; + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPort[] _port; /// The exposed ports on the container instance. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPort[] Port { get => this._port; set => this._port = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPort[] Port { get => this._port; set => this._port = value; } /// The state of the container instance. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string PreviousState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)InstanceView).PreviousState; } + public string PreviousState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)InstanceView).PreviousState; } /// The human-readable status of the container instance state. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string PreviousStateDetailStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)InstanceView).PreviousStateDetailStatus; } + public string PreviousStateDetailStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)InstanceView).PreviousStateDetailStatus; } /// /// The container instance exit codes correspond to those from the `docker run` command. /// [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public int? PreviousStateExitCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)InstanceView).PreviousStateExitCode; } + public int? PreviousStateExitCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)InstanceView).PreviousStateExitCode; } /// The date-time when the container instance state finished. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public global::System.DateTime? PreviousStateFinishTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)InstanceView).PreviousStateFinishTime; } + public global::System.DateTime? PreviousStateFinishTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)InstanceView).PreviousStateFinishTime; } /// The date-time when the container instance state started. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public global::System.DateTime? PreviousStateStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)InstanceView).PreviousStateStartTime; } + public global::System.DateTime? PreviousStateStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)InstanceView).PreviousStateStartTime; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbe _readinessProbe; + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbe _readinessProbe; /// The readiness probe. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbe ReadinessProbe { get => (this._readinessProbe = this._readinessProbe ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerProbe()); set => this._readinessProbe = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbe ReadinessProbe { get => (this._readinessProbe = this._readinessProbe ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerProbe()); set => this._readinessProbe = value; } /// The commands to execute within the container. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string[] ReadinessProbeExecCommand { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)ReadinessProbe).ExecCommand; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)ReadinessProbe).ExecCommand = value ?? null /* arrayOf */; } + public string[] ReadinessProbeExecCommand { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)ReadinessProbe).ExecCommand; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)ReadinessProbe).ExecCommand = value ?? null /* arrayOf */; } /// The failure threshold. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public int? ReadinessProbeFailureThreshold { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)ReadinessProbe).FailureThreshold; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)ReadinessProbe).FailureThreshold = value ?? default(int); } + public int? ReadinessProbeFailureThreshold { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)ReadinessProbe).FailureThreshold; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)ReadinessProbe).FailureThreshold = value ?? default(int); } /// The HTTP headers. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IHttpHeader[] ReadinessProbeHttpGetHttpHeader { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)ReadinessProbe).HttpGetHttpHeader; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)ReadinessProbe).HttpGetHttpHeader = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader[] ReadinessProbeHttpGetHttpHeader { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)ReadinessProbe).HttpGetHttpHeader; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)ReadinessProbe).HttpGetHttpHeader = value ?? null /* arrayOf */; } /// The path to probe. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string ReadinessProbeHttpGetPath { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)ReadinessProbe).HttpGetPath; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)ReadinessProbe).HttpGetPath = value ?? null; } + public string ReadinessProbeHttpGetPath { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)ReadinessProbe).HttpGetPath; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)ReadinessProbe).HttpGetPath = value ?? null; } /// The port number to probe. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public int? ReadinessProbeHttpGetPort { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)ReadinessProbe).HttpGetPort; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)ReadinessProbe).HttpGetPort = value ?? default(int); } + public int? ReadinessProbeHttpGetPort { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)ReadinessProbe).HttpGetPort; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)ReadinessProbe).HttpGetPort = value ?? default(int); } /// The scheme. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme? ReadinessProbeHttpGetScheme { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)ReadinessProbe).HttpGetScheme; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)ReadinessProbe).HttpGetScheme = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme)""); } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme? ReadinessProbeHttpGetScheme { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)ReadinessProbe).HttpGetScheme; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)ReadinessProbe).HttpGetScheme = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme)""); } /// The initial delay seconds. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public int? ReadinessProbeInitialDelaySecond { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)ReadinessProbe).InitialDelaySecond; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)ReadinessProbe).InitialDelaySecond = value ?? default(int); } + public int? ReadinessProbeInitialDelaySecond { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)ReadinessProbe).InitialDelaySecond; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)ReadinessProbe).InitialDelaySecond = value ?? default(int); } /// The period seconds. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public int? ReadinessProbePeriodSecond { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)ReadinessProbe).PeriodSecond; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)ReadinessProbe).PeriodSecond = value ?? default(int); } + public int? ReadinessProbePeriodSecond { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)ReadinessProbe).PeriodSecond; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)ReadinessProbe).PeriodSecond = value ?? default(int); } /// The success threshold. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public int? ReadinessProbeSuccessThreshold { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)ReadinessProbe).SuccessThreshold; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)ReadinessProbe).SuccessThreshold = value ?? default(int); } + public int? ReadinessProbeSuccessThreshold { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)ReadinessProbe).SuccessThreshold; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)ReadinessProbe).SuccessThreshold = value ?? default(int); } /// The timeout seconds. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public int? ReadinessProbeTimeoutSecond { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)ReadinessProbe).TimeoutSecond; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbeInternal)ReadinessProbe).TimeoutSecond = value ?? default(int); } + public int? ReadinessProbeTimeoutSecond { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)ReadinessProbe).TimeoutSecond; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbeInternal)ReadinessProbe).TimeoutSecond = value ?? default(int); } /// The CPU request of this container instance. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public double RequestCpu { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)Resource).RequestCpu; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)Resource).RequestCpu = value ; } + public double? RequestCpu { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)Resource).RequestCpu; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)Resource).RequestCpu = value ?? default(double); } /// The memory request in GB of this container instance. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public double RequestMemoryInGb { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)Resource).RequestMemoryInGb; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)Resource).RequestMemoryInGb = value ; } + public double? RequestMemoryInGb { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)Resource).RequestMemoryInGb; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)Resource).RequestMemoryInGb = value ?? default(double); } /// The count of the GPU resource. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public int? RequestsGpuCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)Resource).RequestsGpuCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)Resource).RequestsGpuCount = value ?? default(int); } + public int? RequestsGpuCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)Resource).RequestsGpuCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)Resource).RequestsGpuCount = value ?? default(int); } /// The SKU of the GPU resource. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku? RequestsGpuSku { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)Resource).RequestsGpuSku; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)Resource).RequestsGpuSku = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku)""); } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku? RequestsGpuSku { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)Resource).RequestsGpuSku; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)Resource).RequestsGpuSku = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku)""); } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirements _resource; + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirements _resource; /// The resource requirements of the container instance. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirements Resource { get => (this._resource = this._resource ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ResourceRequirements()); set => this._resource = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirements Resource { get => (this._resource = this._resource ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ResourceRequirements()); set => this._resource = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinition _securityContext; + + /// The container security properties. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinition SecurityContext { get => (this._securityContext = this._securityContext ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.SecurityContextDefinition()); set => this._securityContext = value; } + + /// A boolean value indicating whether the init process can elevate its privileges + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public bool? SecurityContextAllowPrivilegeEscalation { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinitionInternal)SecurityContext).AllowPrivilegeEscalation; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinitionInternal)SecurityContext).AllowPrivilegeEscalation = value ?? default(bool); } + + /// The flag to determine if the container permissions is elevated to Privileged. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public bool? SecurityContextPrivileged { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinitionInternal)SecurityContext).Privileged; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinitionInternal)SecurityContext).Privileged = value ?? default(bool); } + + /// Sets the User GID for the container. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public int? SecurityContextRunAsGroup { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinitionInternal)SecurityContext).RunAsGroup; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinitionInternal)SecurityContext).RunAsGroup = value ?? default(int); } + + /// Sets the User UID for the container. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public int? SecurityContextRunAsUser { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinitionInternal)SecurityContext).RunAsUser; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinitionInternal)SecurityContext).RunAsUser = value ?? default(int); } + + /// + /// a base64 encoded string containing the contents of the JSON in the seccomp profile + /// + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public string SecurityContextSeccompProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinitionInternal)SecurityContext).SeccompProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinitionInternal)SecurityContext).SeccompProfile = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeMount[] _volumeMount; + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMount[] _volumeMount; /// The volume mounts available to the container instance. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeMount[] VolumeMount { get => this._volumeMount; set => this._volumeMount = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMount[] VolumeMount { get => this._volumeMount; set => this._volumeMount = value; } /// Creates an new instance. public ContainerProperties() @@ -328,6 +385,22 @@ public ContainerProperties() public partial interface IContainerProperties : Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IJsonSerializable { + /// The capabilities to add to the container. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The capabilities to add to the container.", + SerializedName = @"add", + PossibleTypes = new [] { typeof(string) })] + string[] CapabilityAdd { get; set; } + /// The capabilities to drop from the container. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The capabilities to drop from the container.", + SerializedName = @"drop", + PossibleTypes = new [] { typeof(string) })] + string[] CapabilityDrop { get; set; } /// The commands to execute within the container instance in exec form. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = false, @@ -336,6 +409,14 @@ public partial interface IContainerProperties : SerializedName = @"command", PossibleTypes = new [] { typeof(string) })] string[] Command { get; set; } + /// The key value pairs dictionary in the config map. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The key value pairs dictionary in the config map.", + SerializedName = @"keyValuePairs", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfigMapKeyValuePairs) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfigMapKeyValuePairs ConfigMapKeyValuePair { get; set; } /// The state of the container instance. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = false, @@ -384,11 +465,11 @@ public partial interface IContainerProperties : ReadOnly = false, Description = @"The environment variables to set in the container instance.", SerializedName = @"environmentVariables", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEnvironmentVariable) })] - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEnvironmentVariable[] EnvironmentVariable { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariable) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariable[] EnvironmentVariable { get; set; } /// The name of the image used to create the container instance. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Description = @"The name of the image used to create the container instance.", SerializedName = @"image", @@ -400,8 +481,8 @@ public partial interface IContainerProperties : ReadOnly = true, Description = @"The events of the container instance.", SerializedName = @"events", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent) })] - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent[] InstanceViewEvent { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent[] InstanceViewEvent { get; } /// The number of times that the container instance has been restarted. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = false, @@ -464,8 +545,8 @@ public partial interface IContainerProperties : ReadOnly = false, Description = @"The HTTP headers.", SerializedName = @"httpHeaders", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IHttpHeader) })] - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IHttpHeader[] LivenessProbeHttpGetHttpHeader { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader[] LivenessProbeHttpGetHttpHeader { get; set; } /// The path to probe. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = false, @@ -528,8 +609,8 @@ public partial interface IContainerProperties : ReadOnly = false, Description = @"The exposed ports on the container instance.", SerializedName = @"ports", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPort) })] - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPort[] Port { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPort) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPort[] Port { get; set; } /// The state of the container instance. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = false, @@ -594,8 +675,8 @@ public partial interface IContainerProperties : ReadOnly = false, Description = @"The HTTP headers.", SerializedName = @"httpHeaders", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IHttpHeader) })] - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IHttpHeader[] ReadinessProbeHttpGetHttpHeader { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader[] ReadinessProbeHttpGetHttpHeader { get; set; } /// The path to probe. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = false, @@ -654,20 +735,20 @@ public partial interface IContainerProperties : int? ReadinessProbeTimeoutSecond { get; set; } /// The CPU request of this container instance. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Description = @"The CPU request of this container instance.", SerializedName = @"cpu", PossibleTypes = new [] { typeof(double) })] - double RequestCpu { get; set; } + double? RequestCpu { get; set; } /// The memory request in GB of this container instance. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Description = @"The memory request in GB of this container instance.", SerializedName = @"memoryInGB", PossibleTypes = new [] { typeof(double) })] - double RequestMemoryInGb { get; set; } + double? RequestMemoryInGb { get; set; } /// The count of the GPU resource. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = false, @@ -684,22 +765,72 @@ public partial interface IContainerProperties : SerializedName = @"sku", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku) })] Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku? RequestsGpuSku { get; set; } + /// A boolean value indicating whether the init process can elevate its privileges + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A boolean value indicating whether the init process can elevate its privileges", + SerializedName = @"allowPrivilegeEscalation", + PossibleTypes = new [] { typeof(bool) })] + bool? SecurityContextAllowPrivilegeEscalation { get; set; } + /// The flag to determine if the container permissions is elevated to Privileged. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The flag to determine if the container permissions is elevated to Privileged.", + SerializedName = @"privileged", + PossibleTypes = new [] { typeof(bool) })] + bool? SecurityContextPrivileged { get; set; } + /// Sets the User GID for the container. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Sets the User GID for the container.", + SerializedName = @"runAsGroup", + PossibleTypes = new [] { typeof(int) })] + int? SecurityContextRunAsGroup { get; set; } + /// Sets the User UID for the container. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Sets the User UID for the container.", + SerializedName = @"runAsUser", + PossibleTypes = new [] { typeof(int) })] + int? SecurityContextRunAsUser { get; set; } + /// + /// a base64 encoded string containing the contents of the JSON in the seccomp profile + /// + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"a base64 encoded string containing the contents of the JSON in the seccomp profile", + SerializedName = @"seccompProfile", + PossibleTypes = new [] { typeof(string) })] + string SecurityContextSeccompProfile { get; set; } /// The volume mounts available to the container instance. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = false, ReadOnly = false, Description = @"The volume mounts available to the container instance.", SerializedName = @"volumeMounts", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeMount) })] - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeMount[] VolumeMount { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMount) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMount[] VolumeMount { get; set; } } /// The container instance properties. internal partial interface IContainerPropertiesInternal { + /// The capabilities to add to the container. + string[] CapabilityAdd { get; set; } + /// The capabilities to drop from the container. + string[] CapabilityDrop { get; set; } /// The commands to execute within the container instance in exec form. string[] Command { get; set; } + /// The config map. + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfigMap ConfigMap { get; set; } + /// The key value pairs dictionary in the config map. + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfigMapKeyValuePairs ConfigMapKeyValuePair { get; set; } /// The state of the container instance. string CurrentState { get; set; } /// The human-readable status of the container instance state. @@ -713,23 +844,23 @@ internal partial interface IContainerPropertiesInternal /// The date-time when the container instance state started. global::System.DateTime? CurrentStateStartTime { get; set; } /// The environment variables to set in the container instance. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEnvironmentVariable[] EnvironmentVariable { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariable[] EnvironmentVariable { get; set; } /// The name of the image used to create the container instance. string Image { get; set; } /// The instance view of the container instance. Only valid in response. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceView InstanceView { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceView InstanceView { get; set; } /// Current container instance state. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerState InstanceViewCurrentState { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerState InstanceViewCurrentState { get; set; } /// The events of the container instance. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent[] InstanceViewEvent { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent[] InstanceViewEvent { get; set; } /// Previous container instance state. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerState InstanceViewPreviousState { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerState InstanceViewPreviousState { get; set; } /// The number of times that the container instance has been restarted. int? InstanceViewRestartCount { get; set; } /// The CPU limit of this container instance. double? LimitCpu { get; set; } /// The GPU limit of this container instance. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGpuResource LimitGpu { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGpuResource LimitGpu { get; set; } /// The memory limit in GB of this container instance. double? LimitMemoryInGb { get; set; } /// The count of the GPU resource. @@ -737,17 +868,17 @@ internal partial interface IContainerPropertiesInternal /// The SKU of the GPU resource. Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku? LimitsGpuSku { get; set; } /// The liveness probe. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbe LivenessProbe { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbe LivenessProbe { get; set; } /// The execution command to probe - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExec LivenessProbeExec { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExec LivenessProbeExec { get; set; } /// The commands to execute within the container. string[] LivenessProbeExecCommand { get; set; } /// The failure threshold. int? LivenessProbeFailureThreshold { get; set; } /// The Http Get settings to probe - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerHttpGet LivenessProbeHttpGet { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerHttpGet LivenessProbeHttpGet { get; set; } /// The HTTP headers. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IHttpHeader[] LivenessProbeHttpGetHttpHeader { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader[] LivenessProbeHttpGetHttpHeader { get; set; } /// The path to probe. string LivenessProbeHttpGetPath { get; set; } /// The port number to probe. @@ -763,7 +894,7 @@ internal partial interface IContainerPropertiesInternal /// The timeout seconds. int? LivenessProbeTimeoutSecond { get; set; } /// The exposed ports on the container instance. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPort[] Port { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPort[] Port { get; set; } /// The state of the container instance. string PreviousState { get; set; } /// The human-readable status of the container instance state. @@ -777,17 +908,17 @@ internal partial interface IContainerPropertiesInternal /// The date-time when the container instance state started. global::System.DateTime? PreviousStateStartTime { get; set; } /// The readiness probe. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProbe ReadinessProbe { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProbe ReadinessProbe { get; set; } /// The execution command to probe - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExec ReadinessProbeExec { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExec ReadinessProbeExec { get; set; } /// The commands to execute within the container. string[] ReadinessProbeExecCommand { get; set; } /// The failure threshold. int? ReadinessProbeFailureThreshold { get; set; } /// The Http Get settings to probe - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerHttpGet ReadinessProbeHttpGet { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerHttpGet ReadinessProbeHttpGet { get; set; } /// The HTTP headers. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IHttpHeader[] ReadinessProbeHttpGetHttpHeader { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader[] ReadinessProbeHttpGetHttpHeader { get; set; } /// The path to probe. string ReadinessProbeHttpGetPath { get; set; } /// The port number to probe. @@ -803,23 +934,39 @@ internal partial interface IContainerPropertiesInternal /// The timeout seconds. int? ReadinessProbeTimeoutSecond { get; set; } /// The CPU request of this container instance. - double RequestCpu { get; set; } + double? RequestCpu { get; set; } /// The GPU request of this container instance. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGpuResource RequestGpu { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGpuResource RequestGpu { get; set; } /// The memory request in GB of this container instance. - double RequestMemoryInGb { get; set; } + double? RequestMemoryInGb { get; set; } /// The count of the GPU resource. int? RequestsGpuCount { get; set; } /// The SKU of the GPU resource. Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku? RequestsGpuSku { get; set; } /// The resource requirements of the container instance. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirements Resource { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirements Resource { get; set; } /// The resource limits of this container instance. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceLimits ResourceLimit { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceLimits ResourceLimit { get; set; } /// The resource requests of this container instance. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequests ResourceRequest { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequests ResourceRequest { get; set; } + /// The container security properties. + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinition SecurityContext { get; set; } + /// A boolean value indicating whether the init process can elevate its privileges + bool? SecurityContextAllowPrivilegeEscalation { get; set; } + /// The capabilities to add or drop from a container. + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextCapabilitiesDefinition SecurityContextCapability { get; set; } + /// The flag to determine if the container permissions is elevated to Privileged. + bool? SecurityContextPrivileged { get; set; } + /// Sets the User GID for the container. + int? SecurityContextRunAsGroup { get; set; } + /// Sets the User UID for the container. + int? SecurityContextRunAsUser { get; set; } + /// + /// a base64 encoded string containing the contents of the JSON in the seccomp profile + /// + string SecurityContextSeccompProfile { get; set; } /// The volume mounts available to the container instance. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeMount[] VolumeMount { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMount[] VolumeMount { get; set; } } } \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerProperties.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerProperties.json.cs similarity index 86% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerProperties.json.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerProperties.json.cs index 17a01f908e87..b8ba31c7c599 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerProperties.json.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -65,26 +65,28 @@ internal ContainerProperties(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstanc { return; } - {_instanceView = If( json?.PropertyT("instanceView"), out var __jsonInstanceView) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerPropertiesInstanceView.FromJson(__jsonInstanceView) : InstanceView;} - {_resource = If( json?.PropertyT("resources"), out var __jsonResources) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ResourceRequirements.FromJson(__jsonResources) : Resource;} - {_livenessProbe = If( json?.PropertyT("livenessProbe"), out var __jsonLivenessProbe) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerProbe.FromJson(__jsonLivenessProbe) : LivenessProbe;} - {_readinessProbe = If( json?.PropertyT("readinessProbe"), out var __jsonReadinessProbe) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerProbe.FromJson(__jsonReadinessProbe) : ReadinessProbe;} + {_instanceView = If( json?.PropertyT("instanceView"), out var __jsonInstanceView) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerPropertiesInstanceView.FromJson(__jsonInstanceView) : InstanceView;} + {_resource = If( json?.PropertyT("resources"), out var __jsonResources) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ResourceRequirements.FromJson(__jsonResources) : Resource;} + {_livenessProbe = If( json?.PropertyT("livenessProbe"), out var __jsonLivenessProbe) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerProbe.FromJson(__jsonLivenessProbe) : LivenessProbe;} + {_readinessProbe = If( json?.PropertyT("readinessProbe"), out var __jsonReadinessProbe) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerProbe.FromJson(__jsonReadinessProbe) : ReadinessProbe;} + {_securityContext = If( json?.PropertyT("securityContext"), out var __jsonSecurityContext) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.SecurityContextDefinition.FromJson(__jsonSecurityContext) : SecurityContext;} + {_configMap = If( json?.PropertyT("configMap"), out var __jsonConfigMap) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ConfigMap.FromJson(__jsonConfigMap) : ConfigMap;} {_image = If( json?.PropertyT("image"), out var __jsonImage) ? (string)__jsonImage : (string)Image;} {_command = If( json?.PropertyT("command"), out var __jsonCommand) ? If( __jsonCommand as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : Command;} - {_port = If( json?.PropertyT("ports"), out var __jsonPorts) ? If( __jsonPorts as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPort) (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerPort.FromJson(__p) )) ))() : null : Port;} - {_environmentVariable = If( json?.PropertyT("environmentVariables"), out var __jsonEnvironmentVariables) ? If( __jsonEnvironmentVariables as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonArray, out var __l) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__l, (__k)=>(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEnvironmentVariable) (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.EnvironmentVariable.FromJson(__k) )) ))() : null : EnvironmentVariable;} - {_volumeMount = If( json?.PropertyT("volumeMounts"), out var __jsonVolumeMounts) ? If( __jsonVolumeMounts as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonArray, out var __g) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__g, (__f)=>(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeMount) (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.VolumeMount.FromJson(__f) )) ))() : null : VolumeMount;} + {_port = If( json?.PropertyT("ports"), out var __jsonPorts) ? If( __jsonPorts as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPort) (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerPort.FromJson(__p) )) ))() : null : Port;} + {_environmentVariable = If( json?.PropertyT("environmentVariables"), out var __jsonEnvironmentVariables) ? If( __jsonEnvironmentVariables as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonArray, out var __l) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__l, (__k)=>(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariable) (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.EnvironmentVariable.FromJson(__k) )) ))() : null : EnvironmentVariable;} + {_volumeMount = If( json?.PropertyT("volumeMounts"), out var __jsonVolumeMounts) ? If( __jsonVolumeMounts as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonArray, out var __g) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__g, (__f)=>(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMount) (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.VolumeMount.FromJson(__f) )) ))() : null : VolumeMount;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new ContainerProperties(json) : null; } @@ -115,6 +117,8 @@ public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNod AddIf( null != this._resource ? (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode) this._resource.ToJson(null,serializationMode) : null, "resources" ,container.Add ); AddIf( null != this._livenessProbe ? (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode) this._livenessProbe.ToJson(null,serializationMode) : null, "livenessProbe" ,container.Add ); AddIf( null != this._readinessProbe ? (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode) this._readinessProbe.ToJson(null,serializationMode) : null, "readinessProbe" ,container.Add ); + AddIf( null != this._securityContext ? (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode) this._securityContext.ToJson(null,serializationMode) : null, "securityContext" ,container.Add ); + AddIf( null != this._configMap ? (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode) this._configMap.ToJson(null,serializationMode) : null, "configMap" ,container.Add ); AddIf( null != (((object)this._image)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonString(this._image.ToString()) : null, "image" ,container.Add ); if (null != this._command) { diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerPropertiesInstanceView.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerPropertiesInstanceView.PowerShell.cs similarity index 79% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerPropertiesInstanceView.PowerShell.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerPropertiesInstanceView.PowerShell.cs index 897e8637cd07..3f87fc26188d 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerPropertiesInstanceView.PowerShell.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerPropertiesInstanceView.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -63,7 +63,7 @@ public partial class ContainerPropertiesInstanceView partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -78,65 +78,65 @@ internal ContainerPropertiesInstanceView(global::System.Collections.IDictionary // actually deserialize if (content.Contains("CurrentState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)this).CurrentState = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerState) content.GetValueForProperty("CurrentState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)this).CurrentState, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerStateTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)this).CurrentState = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerState) content.GetValueForProperty("CurrentState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)this).CurrentState, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerStateTypeConverter.ConvertFrom); } if (content.Contains("PreviousStateInternal")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)this).PreviousStateInternal = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerState) content.GetValueForProperty("PreviousStateInternal",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)this).PreviousStateInternal, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerStateTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)this).PreviousStateInternal = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerState) content.GetValueForProperty("PreviousStateInternal",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)this).PreviousStateInternal, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerStateTypeConverter.ConvertFrom); } if (content.Contains("RestartCount")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)this).RestartCount = (int?) content.GetValueForProperty("RestartCount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)this).RestartCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)this).RestartCount = (int?) content.GetValueForProperty("RestartCount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)this).RestartCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("Event")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)this).Event = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent[]) content.GetValueForProperty("Event",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)this).Event, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.EventTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)this).Event = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent[]) content.GetValueForProperty("Event",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)this).Event, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.EventTypeConverter.ConvertFrom)); } if (content.Contains("CurrentStateState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)this).CurrentStateState = (string) content.GetValueForProperty("CurrentStateState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)this).CurrentStateState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)this).CurrentStateState = (string) content.GetValueForProperty("CurrentStateState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)this).CurrentStateState, global::System.Convert.ToString); } if (content.Contains("CurrentStateStartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)this).CurrentStateStartTime = (global::System.DateTime?) content.GetValueForProperty("CurrentStateStartTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)this).CurrentStateStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)this).CurrentStateStartTime = (global::System.DateTime?) content.GetValueForProperty("CurrentStateStartTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)this).CurrentStateStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("CurrentStateExitCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)this).CurrentStateExitCode = (int?) content.GetValueForProperty("CurrentStateExitCode",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)this).CurrentStateExitCode, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)this).CurrentStateExitCode = (int?) content.GetValueForProperty("CurrentStateExitCode",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)this).CurrentStateExitCode, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("CurrentStateFinishTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)this).CurrentStateFinishTime = (global::System.DateTime?) content.GetValueForProperty("CurrentStateFinishTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)this).CurrentStateFinishTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)this).CurrentStateFinishTime = (global::System.DateTime?) content.GetValueForProperty("CurrentStateFinishTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)this).CurrentStateFinishTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("CurrentStateDetailStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)this).CurrentStateDetailStatus = (string) content.GetValueForProperty("CurrentStateDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)this).CurrentStateDetailStatus, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)this).CurrentStateDetailStatus = (string) content.GetValueForProperty("CurrentStateDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)this).CurrentStateDetailStatus, global::System.Convert.ToString); } if (content.Contains("PreviousState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)this).PreviousState = (string) content.GetValueForProperty("PreviousState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)this).PreviousState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)this).PreviousState = (string) content.GetValueForProperty("PreviousState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)this).PreviousState, global::System.Convert.ToString); } if (content.Contains("PreviousStateStartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)this).PreviousStateStartTime = (global::System.DateTime?) content.GetValueForProperty("PreviousStateStartTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)this).PreviousStateStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)this).PreviousStateStartTime = (global::System.DateTime?) content.GetValueForProperty("PreviousStateStartTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)this).PreviousStateStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("PreviousStateExitCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)this).PreviousStateExitCode = (int?) content.GetValueForProperty("PreviousStateExitCode",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)this).PreviousStateExitCode, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)this).PreviousStateExitCode = (int?) content.GetValueForProperty("PreviousStateExitCode",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)this).PreviousStateExitCode, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("PreviousStateFinishTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)this).PreviousStateFinishTime = (global::System.DateTime?) content.GetValueForProperty("PreviousStateFinishTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)this).PreviousStateFinishTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)this).PreviousStateFinishTime = (global::System.DateTime?) content.GetValueForProperty("PreviousStateFinishTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)this).PreviousStateFinishTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("PreviousStateDetailStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)this).PreviousStateDetailStatus = (string) content.GetValueForProperty("PreviousStateDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)this).PreviousStateDetailStatus, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)this).PreviousStateDetailStatus = (string) content.GetValueForProperty("PreviousStateDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)this).PreviousStateDetailStatus, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -151,87 +151,87 @@ internal ContainerPropertiesInstanceView(global::System.Management.Automation.PS // actually deserialize if (content.Contains("CurrentState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)this).CurrentState = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerState) content.GetValueForProperty("CurrentState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)this).CurrentState, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerStateTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)this).CurrentState = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerState) content.GetValueForProperty("CurrentState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)this).CurrentState, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerStateTypeConverter.ConvertFrom); } if (content.Contains("PreviousStateInternal")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)this).PreviousStateInternal = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerState) content.GetValueForProperty("PreviousStateInternal",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)this).PreviousStateInternal, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerStateTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)this).PreviousStateInternal = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerState) content.GetValueForProperty("PreviousStateInternal",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)this).PreviousStateInternal, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerStateTypeConverter.ConvertFrom); } if (content.Contains("RestartCount")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)this).RestartCount = (int?) content.GetValueForProperty("RestartCount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)this).RestartCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)this).RestartCount = (int?) content.GetValueForProperty("RestartCount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)this).RestartCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("Event")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)this).Event = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent[]) content.GetValueForProperty("Event",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)this).Event, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.EventTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)this).Event = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent[]) content.GetValueForProperty("Event",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)this).Event, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.EventTypeConverter.ConvertFrom)); } if (content.Contains("CurrentStateState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)this).CurrentStateState = (string) content.GetValueForProperty("CurrentStateState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)this).CurrentStateState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)this).CurrentStateState = (string) content.GetValueForProperty("CurrentStateState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)this).CurrentStateState, global::System.Convert.ToString); } if (content.Contains("CurrentStateStartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)this).CurrentStateStartTime = (global::System.DateTime?) content.GetValueForProperty("CurrentStateStartTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)this).CurrentStateStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)this).CurrentStateStartTime = (global::System.DateTime?) content.GetValueForProperty("CurrentStateStartTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)this).CurrentStateStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("CurrentStateExitCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)this).CurrentStateExitCode = (int?) content.GetValueForProperty("CurrentStateExitCode",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)this).CurrentStateExitCode, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)this).CurrentStateExitCode = (int?) content.GetValueForProperty("CurrentStateExitCode",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)this).CurrentStateExitCode, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("CurrentStateFinishTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)this).CurrentStateFinishTime = (global::System.DateTime?) content.GetValueForProperty("CurrentStateFinishTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)this).CurrentStateFinishTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)this).CurrentStateFinishTime = (global::System.DateTime?) content.GetValueForProperty("CurrentStateFinishTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)this).CurrentStateFinishTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("CurrentStateDetailStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)this).CurrentStateDetailStatus = (string) content.GetValueForProperty("CurrentStateDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)this).CurrentStateDetailStatus, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)this).CurrentStateDetailStatus = (string) content.GetValueForProperty("CurrentStateDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)this).CurrentStateDetailStatus, global::System.Convert.ToString); } if (content.Contains("PreviousState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)this).PreviousState = (string) content.GetValueForProperty("PreviousState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)this).PreviousState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)this).PreviousState = (string) content.GetValueForProperty("PreviousState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)this).PreviousState, global::System.Convert.ToString); } if (content.Contains("PreviousStateStartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)this).PreviousStateStartTime = (global::System.DateTime?) content.GetValueForProperty("PreviousStateStartTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)this).PreviousStateStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)this).PreviousStateStartTime = (global::System.DateTime?) content.GetValueForProperty("PreviousStateStartTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)this).PreviousStateStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("PreviousStateExitCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)this).PreviousStateExitCode = (int?) content.GetValueForProperty("PreviousStateExitCode",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)this).PreviousStateExitCode, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)this).PreviousStateExitCode = (int?) content.GetValueForProperty("PreviousStateExitCode",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)this).PreviousStateExitCode, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("PreviousStateFinishTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)this).PreviousStateFinishTime = (global::System.DateTime?) content.GetValueForProperty("PreviousStateFinishTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)this).PreviousStateFinishTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)this).PreviousStateFinishTime = (global::System.DateTime?) content.GetValueForProperty("PreviousStateFinishTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)this).PreviousStateFinishTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("PreviousStateDetailStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)this).PreviousStateDetailStatus = (string) content.GetValueForProperty("PreviousStateDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal)this).PreviousStateDetailStatus, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)this).PreviousStateDetailStatus = (string) content.GetValueForProperty("PreviousStateDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal)this).PreviousStateDetailStatus, global::System.Convert.ToString); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceView DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceView DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ContainerPropertiesInstanceView(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceView DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceView DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ContainerPropertiesInstanceView(content); } @@ -241,7 +241,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api202 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceView FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceView FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerPropertiesInstanceView.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerPropertiesInstanceView.TypeConverter.cs similarity index 98% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerPropertiesInstanceView.TypeConverter.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerPropertiesInstanceView.TypeConverter.cs index 1be36116f687..4f194d51b82d 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerPropertiesInstanceView.TypeConverter.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerPropertiesInstanceView.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -107,14 +107,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceView ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceView ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceView).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceView).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerPropertiesInstanceView.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerPropertiesInstanceView.cs similarity index 82% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerPropertiesInstanceView.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerPropertiesInstanceView.cs index f61a4d8a848f..29fa317ad5b4 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerPropertiesInstanceView.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerPropertiesInstanceView.cs @@ -3,122 +3,122 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; /// The instance view of the container instance. Only valid in response. public partial class ContainerPropertiesInstanceView : - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceView, - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceView, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerState _currentState; + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerState _currentState; /// Current container instance state. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerState CurrentState { get => (this._currentState = this._currentState ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerState()); } + internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerState CurrentState { get => (this._currentState = this._currentState ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerState()); } /// The human-readable status of the container instance state. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string CurrentStateDetailStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)CurrentState).DetailStatus; } + public string CurrentStateDetailStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)CurrentState).DetailStatus; } /// /// The container instance exit codes correspond to those from the `docker run` command. /// [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public int? CurrentStateExitCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)CurrentState).ExitCode; } + public int? CurrentStateExitCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)CurrentState).ExitCode; } /// The date-time when the container instance state finished. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public global::System.DateTime? CurrentStateFinishTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)CurrentState).FinishTime; } + public global::System.DateTime? CurrentStateFinishTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)CurrentState).FinishTime; } /// The date-time when the container instance state started. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public global::System.DateTime? CurrentStateStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)CurrentState).StartTime; } + public global::System.DateTime? CurrentStateStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)CurrentState).StartTime; } /// The state of the container instance. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string CurrentStateState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)CurrentState).State; } + public string CurrentStateState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)CurrentState).State; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent[] _event; + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent[] _event; /// The events of the container instance. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent[] Event { get => this._event; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent[] Event { get => this._event; } /// Internal Acessors for CurrentState - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerState Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal.CurrentState { get => (this._currentState = this._currentState ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerState()); set { {_currentState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerState Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal.CurrentState { get => (this._currentState = this._currentState ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerState()); set { {_currentState = value;} } } /// Internal Acessors for CurrentStateDetailStatus - string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal.CurrentStateDetailStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)CurrentState).DetailStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)CurrentState).DetailStatus = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal.CurrentStateDetailStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)CurrentState).DetailStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)CurrentState).DetailStatus = value; } /// Internal Acessors for CurrentStateExitCode - int? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal.CurrentStateExitCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)CurrentState).ExitCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)CurrentState).ExitCode = value; } + int? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal.CurrentStateExitCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)CurrentState).ExitCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)CurrentState).ExitCode = value; } /// Internal Acessors for CurrentStateFinishTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal.CurrentStateFinishTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)CurrentState).FinishTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)CurrentState).FinishTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal.CurrentStateFinishTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)CurrentState).FinishTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)CurrentState).FinishTime = value; } /// Internal Acessors for CurrentStateStartTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal.CurrentStateStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)CurrentState).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)CurrentState).StartTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal.CurrentStateStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)CurrentState).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)CurrentState).StartTime = value; } /// Internal Acessors for CurrentStateState - string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal.CurrentStateState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)CurrentState).State; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)CurrentState).State = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal.CurrentStateState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)CurrentState).State; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)CurrentState).State = value; } /// Internal Acessors for Event - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent[] Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal.Event { get => this._event; set { {_event = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent[] Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal.Event { get => this._event; set { {_event = value;} } } /// Internal Acessors for PreviousState - string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal.PreviousState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)PreviousStateInternal).State; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)PreviousStateInternal).State = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal.PreviousState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)PreviousStateInternal).State; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)PreviousStateInternal).State = value; } /// Internal Acessors for PreviousStateDetailStatus - string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal.PreviousStateDetailStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)PreviousStateInternal).DetailStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)PreviousStateInternal).DetailStatus = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal.PreviousStateDetailStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)PreviousStateInternal).DetailStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)PreviousStateInternal).DetailStatus = value; } /// Internal Acessors for PreviousStateExitCode - int? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal.PreviousStateExitCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)PreviousStateInternal).ExitCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)PreviousStateInternal).ExitCode = value; } + int? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal.PreviousStateExitCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)PreviousStateInternal).ExitCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)PreviousStateInternal).ExitCode = value; } /// Internal Acessors for PreviousStateFinishTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal.PreviousStateFinishTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)PreviousStateInternal).FinishTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)PreviousStateInternal).FinishTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal.PreviousStateFinishTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)PreviousStateInternal).FinishTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)PreviousStateInternal).FinishTime = value; } /// Internal Acessors for PreviousStateInternal - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerState Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal.PreviousStateInternal { get => (this._previousStateInternal = this._previousStateInternal ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerState()); set { {_previousStateInternal = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerState Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal.PreviousStateInternal { get => (this._previousStateInternal = this._previousStateInternal ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerState()); set { {_previousStateInternal = value;} } } /// Internal Acessors for PreviousStateStartTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal.PreviousStateStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)PreviousStateInternal).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)PreviousStateInternal).StartTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal.PreviousStateStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)PreviousStateInternal).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)PreviousStateInternal).StartTime = value; } /// Internal Acessors for RestartCount - int? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceViewInternal.RestartCount { get => this._restartCount; set { {_restartCount = value;} } } + int? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceViewInternal.RestartCount { get => this._restartCount; set { {_restartCount = value;} } } /// The state of the container instance. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string PreviousState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)PreviousStateInternal).State; } + public string PreviousState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)PreviousStateInternal).State; } /// The human-readable status of the container instance state. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string PreviousStateDetailStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)PreviousStateInternal).DetailStatus; } + public string PreviousStateDetailStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)PreviousStateInternal).DetailStatus; } /// /// The container instance exit codes correspond to those from the `docker run` command. /// [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public int? PreviousStateExitCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)PreviousStateInternal).ExitCode; } + public int? PreviousStateExitCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)PreviousStateInternal).ExitCode; } /// The date-time when the container instance state finished. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public global::System.DateTime? PreviousStateFinishTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)PreviousStateInternal).FinishTime; } + public global::System.DateTime? PreviousStateFinishTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)PreviousStateInternal).FinishTime; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerState _previousStateInternal; + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerState _previousStateInternal; /// Previous container instance state. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerState PreviousStateInternal { get => (this._previousStateInternal = this._previousStateInternal ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerState()); } + internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerState PreviousStateInternal { get => (this._previousStateInternal = this._previousStateInternal ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerState()); } /// The date-time when the container instance state started. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public global::System.DateTime? PreviousStateStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)PreviousStateInternal).StartTime; } + public global::System.DateTime? PreviousStateStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)PreviousStateInternal).StartTime; } /// Backing field for property. private int? _restartCount; @@ -185,8 +185,8 @@ public partial interface IContainerPropertiesInstanceView : ReadOnly = true, Description = @"The events of the container instance.", SerializedName = @"events", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent) })] - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent[] Event { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent[] Event { get; } /// The state of the container instance. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = false, @@ -244,7 +244,7 @@ internal partial interface IContainerPropertiesInstanceViewInternal { /// Current container instance state. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerState CurrentState { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerState CurrentState { get; set; } /// The human-readable status of the container instance state. string CurrentStateDetailStatus { get; set; } /// @@ -258,7 +258,7 @@ internal partial interface IContainerPropertiesInstanceViewInternal /// The state of the container instance. string CurrentStateState { get; set; } /// The events of the container instance. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent[] Event { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent[] Event { get; set; } /// The state of the container instance. string PreviousState { get; set; } /// The human-readable status of the container instance state. @@ -270,7 +270,7 @@ internal partial interface IContainerPropertiesInstanceViewInternal /// The date-time when the container instance state finished. global::System.DateTime? PreviousStateFinishTime { get; set; } /// Previous container instance state. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerState PreviousStateInternal { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerState PreviousStateInternal { get; set; } /// The date-time when the container instance state started. global::System.DateTime? PreviousStateStartTime { get; set; } /// The number of times that the container instance has been restarted. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerPropertiesInstanceView.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerPropertiesInstanceView.json.cs similarity index 94% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerPropertiesInstanceView.json.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerPropertiesInstanceView.json.cs index 00e92dd2c4fd..d49929f4dbb5 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerPropertiesInstanceView.json.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerPropertiesInstanceView.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -65,21 +65,21 @@ internal ContainerPropertiesInstanceView(Microsoft.Azure.PowerShell.Cmdlets.Cont { return; } - {_currentState = If( json?.PropertyT("currentState"), out var __jsonCurrentState) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerState.FromJson(__jsonCurrentState) : CurrentState;} - {_previousStateInternal = If( json?.PropertyT("previousState"), out var __jsonPreviousState) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerState.FromJson(__jsonPreviousState) : PreviousStateInternal;} + {_currentState = If( json?.PropertyT("currentState"), out var __jsonCurrentState) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerState.FromJson(__jsonCurrentState) : CurrentState;} + {_previousStateInternal = If( json?.PropertyT("previousState"), out var __jsonPreviousState) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerState.FromJson(__jsonPreviousState) : PreviousStateInternal;} {_restartCount = If( json?.PropertyT("restartCount"), out var __jsonRestartCount) ? (int?)__jsonRestartCount : RestartCount;} - {_event = If( json?.PropertyT("events"), out var __jsonEvents) ? If( __jsonEvents as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent) (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.Event.FromJson(__u) )) ))() : null : Event;} + {_event = If( json?.PropertyT("events"), out var __jsonEvents) ? If( __jsonEvents as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent) (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Event.FromJson(__u) )) ))() : null : Event;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceView. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceView. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceView. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceView. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPropertiesInstanceView FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPropertiesInstanceView FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new ContainerPropertiesInstanceView(json) : null; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerState.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerState.PowerShell.cs similarity index 85% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerState.PowerShell.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerState.PowerShell.cs index bad8a5b84c27..b2f2c8061a72 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerState.PowerShell.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerState.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -63,7 +63,7 @@ public partial class ContainerState partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -78,29 +78,29 @@ internal ContainerState(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("State")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)this).State = (string) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)this).State, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)this).State = (string) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)this).State, global::System.Convert.ToString); } if (content.Contains("StartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("ExitCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)this).ExitCode = (int?) content.GetValueForProperty("ExitCode",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)this).ExitCode, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)this).ExitCode = (int?) content.GetValueForProperty("ExitCode",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)this).ExitCode, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("FinishTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)this).FinishTime = (global::System.DateTime?) content.GetValueForProperty("FinishTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)this).FinishTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)this).FinishTime = (global::System.DateTime?) content.GetValueForProperty("FinishTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)this).FinishTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("DetailStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)this).DetailStatus = (string) content.GetValueForProperty("DetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)this).DetailStatus, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)this).DetailStatus = (string) content.GetValueForProperty("DetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)this).DetailStatus, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -115,51 +115,51 @@ internal ContainerState(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("State")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)this).State = (string) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)this).State, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)this).State = (string) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)this).State, global::System.Convert.ToString); } if (content.Contains("StartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("ExitCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)this).ExitCode = (int?) content.GetValueForProperty("ExitCode",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)this).ExitCode, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)this).ExitCode = (int?) content.GetValueForProperty("ExitCode",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)this).ExitCode, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("FinishTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)this).FinishTime = (global::System.DateTime?) content.GetValueForProperty("FinishTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)this).FinishTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)this).FinishTime = (global::System.DateTime?) content.GetValueForProperty("FinishTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)this).FinishTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("DetailStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)this).DetailStatus = (string) content.GetValueForProperty("DetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)this).DetailStatus, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)this).DetailStatus = (string) content.GetValueForProperty("DetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)this).DetailStatus, global::System.Convert.ToString); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerState DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerState DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ContainerState(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerState DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerState DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ContainerState(content); } @@ -169,7 +169,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api202 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerState FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerState FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerState.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerState.TypeConverter.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerState.TypeConverter.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerState.TypeConverter.cs index fa9699f4e760..55f8231e623f 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerState.TypeConverter.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerState.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerState ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerState ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerState).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerState).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerState.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerState.cs similarity index 94% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerState.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerState.cs index 2f1b48243d33..76a10b6103e7 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerState.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerState.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; /// The container instance state. public partial class ContainerState : - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerState, - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerState, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal { /// Backing field for property. @@ -37,19 +37,19 @@ public partial class ContainerState : public global::System.DateTime? FinishTime { get => this._finishTime; } /// Internal Acessors for DetailStatus - string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal.DetailStatus { get => this._detailStatus; set { {_detailStatus = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal.DetailStatus { get => this._detailStatus; set { {_detailStatus = value;} } } /// Internal Acessors for ExitCode - int? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal.ExitCode { get => this._exitCode; set { {_exitCode = value;} } } + int? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal.ExitCode { get => this._exitCode; set { {_exitCode = value;} } } /// Internal Acessors for FinishTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal.FinishTime { get => this._finishTime; set { {_finishTime = value;} } } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal.FinishTime { get => this._finishTime; set { {_finishTime = value;} } } /// Internal Acessors for StartTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal.StartTime { get => this._startTime; set { {_startTime = value;} } } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal.StartTime { get => this._startTime; set { {_startTime = value;} } } /// Internal Acessors for State - string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal.State { get => this._state; set { {_state = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal.State { get => this._state; set { {_state = value;} } } /// Backing field for property. private global::System.DateTime? _startTime; diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerState.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerState.json.cs similarity index 98% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerState.json.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerState.json.cs index d0cac061b5b9..ae1963563d60 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ContainerState.json.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ContainerState.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -74,13 +74,13 @@ internal ContainerState(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Run } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerState. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerState. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerState. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerState. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerState FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerState FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new ContainerState(json) : null; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/DeploymentExtensionSpec.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/DeploymentExtensionSpec.PowerShell.cs similarity index 82% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/DeploymentExtensionSpec.PowerShell.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/DeploymentExtensionSpec.PowerShell.cs index 235fdae0ca7a..3f2656c03b25 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/DeploymentExtensionSpec.PowerShell.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/DeploymentExtensionSpec.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -63,7 +63,7 @@ public partial class DeploymentExtensionSpec partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -78,33 +78,33 @@ internal DeploymentExtensionSpec(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpecInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpecProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpecInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.DeploymentExtensionSpecPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpecInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpecProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpecInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.DeploymentExtensionSpecPropertiesTypeConverter.ConvertFrom); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpecInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpecInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpecInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpecInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("ExtensionType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpecInternal)this).ExtensionType = (string) content.GetValueForProperty("ExtensionType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpecInternal)this).ExtensionType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpecInternal)this).ExtensionType = (string) content.GetValueForProperty("ExtensionType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpecInternal)this).ExtensionType, global::System.Convert.ToString); } if (content.Contains("Version")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpecInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpecInternal)this).Version, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpecInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpecInternal)this).Version, global::System.Convert.ToString); } if (content.Contains("Setting")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpecInternal)this).Setting = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IAny) content.GetValueForProperty("Setting",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpecInternal)this).Setting, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.AnyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpecInternal)this).Setting = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IAny) content.GetValueForProperty("Setting",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpecInternal)this).Setting, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.AnyTypeConverter.ConvertFrom); } if (content.Contains("ProtectedSetting")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpecInternal)this).ProtectedSetting = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IAny) content.GetValueForProperty("ProtectedSetting",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpecInternal)this).ProtectedSetting, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.AnyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpecInternal)this).ProtectedSetting = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IAny) content.GetValueForProperty("ProtectedSetting",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpecInternal)this).ProtectedSetting, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.AnyTypeConverter.ConvertFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -119,55 +119,55 @@ internal DeploymentExtensionSpec(global::System.Management.Automation.PSObject c // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpecInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpecProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpecInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.DeploymentExtensionSpecPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpecInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpecProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpecInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.DeploymentExtensionSpecPropertiesTypeConverter.ConvertFrom); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpecInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpecInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpecInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpecInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("ExtensionType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpecInternal)this).ExtensionType = (string) content.GetValueForProperty("ExtensionType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpecInternal)this).ExtensionType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpecInternal)this).ExtensionType = (string) content.GetValueForProperty("ExtensionType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpecInternal)this).ExtensionType, global::System.Convert.ToString); } if (content.Contains("Version")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpecInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpecInternal)this).Version, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpecInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpecInternal)this).Version, global::System.Convert.ToString); } if (content.Contains("Setting")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpecInternal)this).Setting = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IAny) content.GetValueForProperty("Setting",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpecInternal)this).Setting, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.AnyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpecInternal)this).Setting = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IAny) content.GetValueForProperty("Setting",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpecInternal)this).Setting, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.AnyTypeConverter.ConvertFrom); } if (content.Contains("ProtectedSetting")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpecInternal)this).ProtectedSetting = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IAny) content.GetValueForProperty("ProtectedSetting",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpecInternal)this).ProtectedSetting, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.AnyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpecInternal)this).ProtectedSetting = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IAny) content.GetValueForProperty("ProtectedSetting",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpecInternal)this).ProtectedSetting, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.AnyTypeConverter.ConvertFrom); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpec DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpec DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DeploymentExtensionSpec(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpec DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpec DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DeploymentExtensionSpec(content); } @@ -177,7 +177,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api202 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpec FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpec FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/DeploymentExtensionSpec.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/DeploymentExtensionSpec.TypeConverter.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/DeploymentExtensionSpec.TypeConverter.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/DeploymentExtensionSpec.TypeConverter.cs index fb41786b14af..a6125b3896f1 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/DeploymentExtensionSpec.TypeConverter.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/DeploymentExtensionSpec.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpec ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpec ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpec).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpec).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/DeploymentExtensionSpec.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/DeploymentExtensionSpec.cs similarity index 86% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/DeploymentExtensionSpec.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/DeploymentExtensionSpec.cs index ae48e2abdc47..bde05b7c2893 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/DeploymentExtensionSpec.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/DeploymentExtensionSpec.cs @@ -3,22 +3,22 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; /// Extension sidecars to be added to the deployment. public partial class DeploymentExtensionSpec : - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpec, - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpecInternal + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpec, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpecInternal { /// Type of extension to be added. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string ExtensionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpecPropertiesInternal)Property).ExtensionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpecPropertiesInternal)Property).ExtensionType = value ?? null; } + public string ExtensionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpecPropertiesInternal)Property).ExtensionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpecPropertiesInternal)Property).ExtensionType = value ?? null; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpecProperties Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpecInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.DeploymentExtensionSpecProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpecProperties Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpecInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.DeploymentExtensionSpecProperties()); set { {_property = value;} } } /// Backing field for property. private string _name; @@ -28,23 +28,23 @@ public partial class DeploymentExtensionSpec : public string Name { get => this._name; set => this._name = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpecProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpecProperties _property; /// Extension specific properties [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpecProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.DeploymentExtensionSpecProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpecProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.DeploymentExtensionSpecProperties()); set => this._property = value; } /// Protected settings for the extension. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IAny ProtectedSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpecPropertiesInternal)Property).ProtectedSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpecPropertiesInternal)Property).ProtectedSetting = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IAny ProtectedSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpecPropertiesInternal)Property).ProtectedSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpecPropertiesInternal)Property).ProtectedSetting = value ?? null /* model class */; } /// Settings for the extension. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IAny Setting { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpecPropertiesInternal)Property).Setting; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpecPropertiesInternal)Property).Setting = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IAny Setting { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpecPropertiesInternal)Property).Setting; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpecPropertiesInternal)Property).Setting = value ?? null /* model class */; } /// Version of the extension being used. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string Version { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpecPropertiesInternal)Property).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpecPropertiesInternal)Property).Version = value ?? null; } + public string Version { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpecPropertiesInternal)Property).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpecPropertiesInternal)Property).Version = value ?? null; } /// Creates an new instance. public DeploymentExtensionSpec() @@ -107,7 +107,7 @@ internal partial interface IDeploymentExtensionSpecInternal /// Name of the extension. string Name { get; set; } /// Extension specific properties - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpecProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpecProperties Property { get; set; } /// Protected settings for the extension. Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IAny ProtectedSetting { get; set; } /// Settings for the extension. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/DeploymentExtensionSpec.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/DeploymentExtensionSpec.json.cs similarity index 96% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/DeploymentExtensionSpec.json.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/DeploymentExtensionSpec.json.cs index ef7c73398038..5323069cf60b 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/DeploymentExtensionSpec.json.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/DeploymentExtensionSpec.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -65,19 +65,19 @@ internal DeploymentExtensionSpec(Microsoft.Azure.PowerShell.Cmdlets.ContainerIns { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.DeploymentExtensionSpecProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.DeploymentExtensionSpecProperties.FromJson(__jsonProperties) : Property;} {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpec. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpec. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpec. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpec. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpec FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpec FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new DeploymentExtensionSpec(json) : null; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/DeploymentExtensionSpecProperties.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/DeploymentExtensionSpecProperties.PowerShell.cs similarity index 87% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/DeploymentExtensionSpecProperties.PowerShell.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/DeploymentExtensionSpecProperties.PowerShell.cs index 57e633ea95ef..f9d2b5b690e8 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/DeploymentExtensionSpecProperties.PowerShell.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/DeploymentExtensionSpecProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -63,7 +63,7 @@ public partial class DeploymentExtensionSpecProperties partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -78,25 +78,25 @@ internal DeploymentExtensionSpecProperties(global::System.Collections.IDictionar // actually deserialize if (content.Contains("ExtensionType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpecPropertiesInternal)this).ExtensionType = (string) content.GetValueForProperty("ExtensionType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpecPropertiesInternal)this).ExtensionType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpecPropertiesInternal)this).ExtensionType = (string) content.GetValueForProperty("ExtensionType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpecPropertiesInternal)this).ExtensionType, global::System.Convert.ToString); } if (content.Contains("Version")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpecPropertiesInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpecPropertiesInternal)this).Version, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpecPropertiesInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpecPropertiesInternal)this).Version, global::System.Convert.ToString); } if (content.Contains("Setting")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpecPropertiesInternal)this).Setting = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IAny) content.GetValueForProperty("Setting",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpecPropertiesInternal)this).Setting, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.AnyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpecPropertiesInternal)this).Setting = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IAny) content.GetValueForProperty("Setting",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpecPropertiesInternal)this).Setting, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.AnyTypeConverter.ConvertFrom); } if (content.Contains("ProtectedSetting")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpecPropertiesInternal)this).ProtectedSetting = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IAny) content.GetValueForProperty("ProtectedSetting",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpecPropertiesInternal)this).ProtectedSetting, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.AnyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpecPropertiesInternal)this).ProtectedSetting = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IAny) content.GetValueForProperty("ProtectedSetting",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpecPropertiesInternal)this).ProtectedSetting, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.AnyTypeConverter.ConvertFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -111,47 +111,47 @@ internal DeploymentExtensionSpecProperties(global::System.Management.Automation. // actually deserialize if (content.Contains("ExtensionType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpecPropertiesInternal)this).ExtensionType = (string) content.GetValueForProperty("ExtensionType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpecPropertiesInternal)this).ExtensionType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpecPropertiesInternal)this).ExtensionType = (string) content.GetValueForProperty("ExtensionType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpecPropertiesInternal)this).ExtensionType, global::System.Convert.ToString); } if (content.Contains("Version")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpecPropertiesInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpecPropertiesInternal)this).Version, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpecPropertiesInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpecPropertiesInternal)this).Version, global::System.Convert.ToString); } if (content.Contains("Setting")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpecPropertiesInternal)this).Setting = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IAny) content.GetValueForProperty("Setting",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpecPropertiesInternal)this).Setting, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.AnyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpecPropertiesInternal)this).Setting = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IAny) content.GetValueForProperty("Setting",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpecPropertiesInternal)this).Setting, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.AnyTypeConverter.ConvertFrom); } if (content.Contains("ProtectedSetting")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpecPropertiesInternal)this).ProtectedSetting = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IAny) content.GetValueForProperty("ProtectedSetting",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpecPropertiesInternal)this).ProtectedSetting, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.AnyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpecPropertiesInternal)this).ProtectedSetting = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IAny) content.GetValueForProperty("ProtectedSetting",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpecPropertiesInternal)this).ProtectedSetting, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.AnyTypeConverter.ConvertFrom); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpecProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpecProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DeploymentExtensionSpecProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpecProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpecProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DeploymentExtensionSpecProperties(content); } @@ -163,7 +163,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api202 /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpecProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpecProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/DeploymentExtensionSpecProperties.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/DeploymentExtensionSpecProperties.TypeConverter.cs similarity index 98% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/DeploymentExtensionSpecProperties.TypeConverter.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/DeploymentExtensionSpecProperties.TypeConverter.cs index d6e18bc5665e..f6715a0a0b19 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/DeploymentExtensionSpecProperties.TypeConverter.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/DeploymentExtensionSpecProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -107,14 +107,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpecProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpecProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpecProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpecProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/DeploymentExtensionSpecProperties.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/DeploymentExtensionSpecProperties.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/DeploymentExtensionSpecProperties.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/DeploymentExtensionSpecProperties.cs index 8c49740b6892..b0fa0f5e9536 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/DeploymentExtensionSpecProperties.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/DeploymentExtensionSpecProperties.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; /// Extension specific properties public partial class DeploymentExtensionSpecProperties : - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpecProperties, - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpecPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpecProperties, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpecPropertiesInternal { /// Backing field for property. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/DeploymentExtensionSpecProperties.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/DeploymentExtensionSpecProperties.json.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/DeploymentExtensionSpecProperties.json.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/DeploymentExtensionSpecProperties.json.cs index 18656aa0cf59..8da9e0130a5d 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/DeploymentExtensionSpecProperties.json.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/DeploymentExtensionSpecProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -73,13 +73,13 @@ internal DeploymentExtensionSpecProperties(Microsoft.Azure.PowerShell.Cmdlets.Co } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpecProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpecProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpecProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpecProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpecProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpecProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new DeploymentExtensionSpecProperties(json) : null; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/DnsConfiguration.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/DnsConfiguration.PowerShell.cs similarity index 87% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/DnsConfiguration.PowerShell.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/DnsConfiguration.PowerShell.cs index b397c22f7c5a..463e49f52ebb 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/DnsConfiguration.PowerShell.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/DnsConfiguration.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -63,35 +63,35 @@ public partial class DnsConfiguration partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDnsConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDnsConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DnsConfiguration(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDnsConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDnsConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DnsConfiguration(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -106,21 +106,21 @@ internal DnsConfiguration(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("NameServer")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDnsConfigurationInternal)this).NameServer = (string[]) content.GetValueForProperty("NameServer",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDnsConfigurationInternal)this).NameServer, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDnsConfigurationInternal)this).NameServer = (string[]) content.GetValueForProperty("NameServer",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDnsConfigurationInternal)this).NameServer, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("SearchDomain")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDnsConfigurationInternal)this).SearchDomain = (string) content.GetValueForProperty("SearchDomain",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDnsConfigurationInternal)this).SearchDomain, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDnsConfigurationInternal)this).SearchDomain = (string) content.GetValueForProperty("SearchDomain",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDnsConfigurationInternal)this).SearchDomain, global::System.Convert.ToString); } if (content.Contains("Option")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDnsConfigurationInternal)this).Option = (string) content.GetValueForProperty("Option",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDnsConfigurationInternal)this).Option, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDnsConfigurationInternal)this).Option = (string) content.GetValueForProperty("Option",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDnsConfigurationInternal)this).Option, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -135,15 +135,15 @@ internal DnsConfiguration(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("NameServer")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDnsConfigurationInternal)this).NameServer = (string[]) content.GetValueForProperty("NameServer",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDnsConfigurationInternal)this).NameServer, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDnsConfigurationInternal)this).NameServer = (string[]) content.GetValueForProperty("NameServer",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDnsConfigurationInternal)this).NameServer, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("SearchDomain")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDnsConfigurationInternal)this).SearchDomain = (string) content.GetValueForProperty("SearchDomain",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDnsConfigurationInternal)this).SearchDomain, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDnsConfigurationInternal)this).SearchDomain = (string) content.GetValueForProperty("SearchDomain",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDnsConfigurationInternal)this).SearchDomain, global::System.Convert.ToString); } if (content.Contains("Option")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDnsConfigurationInternal)this).Option = (string) content.GetValueForProperty("Option",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDnsConfigurationInternal)this).Option, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDnsConfigurationInternal)this).Option = (string) content.GetValueForProperty("Option",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDnsConfigurationInternal)this).Option, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -153,7 +153,7 @@ internal DnsConfiguration(global::System.Management.Automation.PSObject content) /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDnsConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDnsConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/DnsConfiguration.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/DnsConfiguration.TypeConverter.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/DnsConfiguration.TypeConverter.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/DnsConfiguration.TypeConverter.cs index 42df3a097b86..06f0a009ee72 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/DnsConfiguration.TypeConverter.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/DnsConfiguration.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDnsConfiguration ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDnsConfiguration ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDnsConfiguration).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDnsConfiguration).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/DnsConfiguration.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/DnsConfiguration.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/DnsConfiguration.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/DnsConfiguration.cs index b69d6f840421..58a1b4f6d7a4 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/DnsConfiguration.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/DnsConfiguration.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; /// DNS configuration for the container group. public partial class DnsConfiguration : - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDnsConfiguration, - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDnsConfigurationInternal + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDnsConfiguration, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDnsConfigurationInternal { /// Backing field for property. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/DnsConfiguration.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/DnsConfiguration.json.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/DnsConfiguration.json.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/DnsConfiguration.json.cs index 7271d0b6ae71..87828cdfde2b 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/DnsConfiguration.json.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/DnsConfiguration.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -72,13 +72,13 @@ internal DnsConfiguration(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.R } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDnsConfiguration. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDnsConfiguration. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDnsConfiguration. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDnsConfiguration. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDnsConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDnsConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new DnsConfiguration(json) : null; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/EncryptionProperties.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/EncryptionProperties.PowerShell.cs similarity index 86% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/EncryptionProperties.PowerShell.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/EncryptionProperties.PowerShell.cs index 4edf330e6661..4a8903e53132 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/EncryptionProperties.PowerShell.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/EncryptionProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -63,35 +63,35 @@ public partial class EncryptionProperties partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEncryptionProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEncryptionProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new EncryptionProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEncryptionProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEncryptionProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new EncryptionProperties(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -106,25 +106,25 @@ internal EncryptionProperties(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("VaultBaseUrl")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEncryptionPropertiesInternal)this).VaultBaseUrl = (string) content.GetValueForProperty("VaultBaseUrl",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEncryptionPropertiesInternal)this).VaultBaseUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEncryptionPropertiesInternal)this).VaultBaseUrl = (string) content.GetValueForProperty("VaultBaseUrl",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEncryptionPropertiesInternal)this).VaultBaseUrl, global::System.Convert.ToString); } if (content.Contains("KeyName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEncryptionPropertiesInternal)this).KeyName = (string) content.GetValueForProperty("KeyName",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEncryptionPropertiesInternal)this).KeyName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEncryptionPropertiesInternal)this).KeyName = (string) content.GetValueForProperty("KeyName",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEncryptionPropertiesInternal)this).KeyName, global::System.Convert.ToString); } if (content.Contains("KeyVersion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEncryptionPropertiesInternal)this).KeyVersion = (string) content.GetValueForProperty("KeyVersion",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEncryptionPropertiesInternal)this).KeyVersion, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEncryptionPropertiesInternal)this).KeyVersion = (string) content.GetValueForProperty("KeyVersion",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEncryptionPropertiesInternal)this).KeyVersion, global::System.Convert.ToString); } if (content.Contains("Identity")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEncryptionPropertiesInternal)this).Identity = (string) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEncryptionPropertiesInternal)this).Identity, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEncryptionPropertiesInternal)this).Identity = (string) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEncryptionPropertiesInternal)this).Identity, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -139,19 +139,19 @@ internal EncryptionProperties(global::System.Management.Automation.PSObject cont // actually deserialize if (content.Contains("VaultBaseUrl")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEncryptionPropertiesInternal)this).VaultBaseUrl = (string) content.GetValueForProperty("VaultBaseUrl",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEncryptionPropertiesInternal)this).VaultBaseUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEncryptionPropertiesInternal)this).VaultBaseUrl = (string) content.GetValueForProperty("VaultBaseUrl",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEncryptionPropertiesInternal)this).VaultBaseUrl, global::System.Convert.ToString); } if (content.Contains("KeyName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEncryptionPropertiesInternal)this).KeyName = (string) content.GetValueForProperty("KeyName",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEncryptionPropertiesInternal)this).KeyName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEncryptionPropertiesInternal)this).KeyName = (string) content.GetValueForProperty("KeyName",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEncryptionPropertiesInternal)this).KeyName, global::System.Convert.ToString); } if (content.Contains("KeyVersion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEncryptionPropertiesInternal)this).KeyVersion = (string) content.GetValueForProperty("KeyVersion",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEncryptionPropertiesInternal)this).KeyVersion, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEncryptionPropertiesInternal)this).KeyVersion = (string) content.GetValueForProperty("KeyVersion",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEncryptionPropertiesInternal)this).KeyVersion, global::System.Convert.ToString); } if (content.Contains("Identity")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEncryptionPropertiesInternal)this).Identity = (string) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEncryptionPropertiesInternal)this).Identity, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEncryptionPropertiesInternal)this).Identity = (string) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEncryptionPropertiesInternal)this).Identity, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -161,7 +161,7 @@ internal EncryptionProperties(global::System.Management.Automation.PSObject cont /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEncryptionProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEncryptionProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/EncryptionProperties.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/EncryptionProperties.TypeConverter.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/EncryptionProperties.TypeConverter.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/EncryptionProperties.TypeConverter.cs index 8aaadc29d2d4..54514288df09 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/EncryptionProperties.TypeConverter.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/EncryptionProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEncryptionProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEncryptionProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEncryptionProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEncryptionProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/EncryptionProperties.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/EncryptionProperties.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/EncryptionProperties.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/EncryptionProperties.cs index 800537a7e6d9..4d0ade05361e 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/EncryptionProperties.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/EncryptionProperties.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; /// The container group encryption properties. public partial class EncryptionProperties : - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEncryptionProperties, - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEncryptionPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEncryptionProperties, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEncryptionPropertiesInternal { /// Backing field for property. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/EncryptionProperties.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/EncryptionProperties.json.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/EncryptionProperties.json.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/EncryptionProperties.json.cs index 9e63a22dd003..a1537e33e3b1 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/EncryptionProperties.json.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/EncryptionProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -73,13 +73,13 @@ internal EncryptionProperties(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstan } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEncryptionProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEncryptionProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEncryptionProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEncryptionProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEncryptionProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEncryptionProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new EncryptionProperties(json) : null; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/EnvironmentVariable.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/EnvironmentVariable.PowerShell.cs similarity index 87% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/EnvironmentVariable.PowerShell.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/EnvironmentVariable.PowerShell.cs index 88549eae12bc..9b0d518e5166 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/EnvironmentVariable.PowerShell.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/EnvironmentVariable.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -63,35 +63,35 @@ public partial class EnvironmentVariable partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEnvironmentVariable DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariable DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new EnvironmentVariable(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEnvironmentVariable DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariable DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new EnvironmentVariable(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -106,21 +106,21 @@ internal EnvironmentVariable(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEnvironmentVariableInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEnvironmentVariableInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariableInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariableInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEnvironmentVariableInternal)this).Value = (string) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEnvironmentVariableInternal)this).Value, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariableInternal)this).Value = (string) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariableInternal)this).Value, global::System.Convert.ToString); } if (content.Contains("SecureValue")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEnvironmentVariableInternal)this).SecureValue = (string) content.GetValueForProperty("SecureValue",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEnvironmentVariableInternal)this).SecureValue, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariableInternal)this).SecureValue = (string) content.GetValueForProperty("SecureValue",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariableInternal)this).SecureValue, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -135,15 +135,15 @@ internal EnvironmentVariable(global::System.Management.Automation.PSObject conte // actually deserialize if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEnvironmentVariableInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEnvironmentVariableInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariableInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariableInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEnvironmentVariableInternal)this).Value = (string) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEnvironmentVariableInternal)this).Value, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariableInternal)this).Value = (string) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariableInternal)this).Value, global::System.Convert.ToString); } if (content.Contains("SecureValue")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEnvironmentVariableInternal)this).SecureValue = (string) content.GetValueForProperty("SecureValue",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEnvironmentVariableInternal)this).SecureValue, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariableInternal)this).SecureValue = (string) content.GetValueForProperty("SecureValue",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariableInternal)this).SecureValue, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -153,7 +153,7 @@ internal EnvironmentVariable(global::System.Management.Automation.PSObject conte /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEnvironmentVariable FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariable FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/EnvironmentVariable.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/EnvironmentVariable.TypeConverter.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/EnvironmentVariable.TypeConverter.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/EnvironmentVariable.TypeConverter.cs index 98914885dc38..ddcdaa919540 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/EnvironmentVariable.TypeConverter.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/EnvironmentVariable.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEnvironmentVariable ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariable ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEnvironmentVariable).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariable).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/EnvironmentVariable.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/EnvironmentVariable.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/EnvironmentVariable.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/EnvironmentVariable.cs index 640026ed552d..5f8cde7bce5d 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/EnvironmentVariable.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/EnvironmentVariable.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; /// The environment variable to set within the container instance. public partial class EnvironmentVariable : - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEnvironmentVariable, - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEnvironmentVariableInternal + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariable, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariableInternal { /// Backing field for property. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/EnvironmentVariable.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/EnvironmentVariable.json.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/EnvironmentVariable.json.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/EnvironmentVariable.json.cs index c53753bbae0c..1de6b3a4a882 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/EnvironmentVariable.json.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/EnvironmentVariable.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -72,13 +72,13 @@ internal EnvironmentVariable(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstanc } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEnvironmentVariable. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariable. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEnvironmentVariable. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariable. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEnvironmentVariable FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariable FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new EnvironmentVariable(json) : null; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Event.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Event.PowerShell.cs similarity index 84% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Event.PowerShell.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Event.PowerShell.cs index 6d6c6dd4799e..9f81cae2d51d 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Event.PowerShell.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Event.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -63,33 +63,33 @@ public partial class Event partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new Event(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new Event(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -104,33 +104,33 @@ internal Event(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Count")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEventInternal)this).Count = (int?) content.GetValueForProperty("Count",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEventInternal)this).Count, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEventInternal)this).Count = (int?) content.GetValueForProperty("Count",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEventInternal)this).Count, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("FirstTimestamp")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEventInternal)this).FirstTimestamp = (global::System.DateTime?) content.GetValueForProperty("FirstTimestamp",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEventInternal)this).FirstTimestamp, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEventInternal)this).FirstTimestamp = (global::System.DateTime?) content.GetValueForProperty("FirstTimestamp",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEventInternal)this).FirstTimestamp, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("LastTimestamp")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEventInternal)this).LastTimestamp = (global::System.DateTime?) content.GetValueForProperty("LastTimestamp",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEventInternal)this).LastTimestamp, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEventInternal)this).LastTimestamp = (global::System.DateTime?) content.GetValueForProperty("LastTimestamp",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEventInternal)this).LastTimestamp, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEventInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEventInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEventInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEventInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEventInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEventInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEventInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEventInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEventInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEventInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEventInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEventInternal)this).Type, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -145,27 +145,27 @@ internal Event(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Count")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEventInternal)this).Count = (int?) content.GetValueForProperty("Count",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEventInternal)this).Count, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEventInternal)this).Count = (int?) content.GetValueForProperty("Count",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEventInternal)this).Count, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("FirstTimestamp")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEventInternal)this).FirstTimestamp = (global::System.DateTime?) content.GetValueForProperty("FirstTimestamp",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEventInternal)this).FirstTimestamp, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEventInternal)this).FirstTimestamp = (global::System.DateTime?) content.GetValueForProperty("FirstTimestamp",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEventInternal)this).FirstTimestamp, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("LastTimestamp")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEventInternal)this).LastTimestamp = (global::System.DateTime?) content.GetValueForProperty("LastTimestamp",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEventInternal)this).LastTimestamp, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEventInternal)this).LastTimestamp = (global::System.DateTime?) content.GetValueForProperty("LastTimestamp",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEventInternal)this).LastTimestamp, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEventInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEventInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEventInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEventInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEventInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEventInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEventInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEventInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEventInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEventInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEventInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEventInternal)this).Type, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -175,7 +175,7 @@ internal Event(global::System.Management.Automation.PSObject content) /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Event.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Event.TypeConverter.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Event.TypeConverter.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Event.TypeConverter.cs index 762651096112..8572eb4009bd 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Event.TypeConverter.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Event.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Event.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Event.cs similarity index 93% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Event.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Event.cs index d518702636c9..43595f4bb1e2 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Event.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Event.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; /// A container group or container instance event. public partial class Event : - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent, - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEventInternal + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEventInternal { /// Backing field for property. @@ -42,22 +42,22 @@ public partial class Event : public string Message { get => this._message; } /// Internal Acessors for Count - int? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEventInternal.Count { get => this._count; set { {_count = value;} } } + int? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEventInternal.Count { get => this._count; set { {_count = value;} } } /// Internal Acessors for FirstTimestamp - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEventInternal.FirstTimestamp { get => this._firstTimestamp; set { {_firstTimestamp = value;} } } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEventInternal.FirstTimestamp { get => this._firstTimestamp; set { {_firstTimestamp = value;} } } /// Internal Acessors for LastTimestamp - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEventInternal.LastTimestamp { get => this._lastTimestamp; set { {_lastTimestamp = value;} } } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEventInternal.LastTimestamp { get => this._lastTimestamp; set { {_lastTimestamp = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEventInternal.Message { get => this._message; set { {_message = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEventInternal.Message { get => this._message; set { {_message = value;} } } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEventInternal.Name { get => this._name; set { {_name = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEventInternal.Name { get => this._name; set { {_name = value;} } } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEventInternal.Type { get => this._type; set { {_type = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEventInternal.Type { get => this._type; set { {_type = value;} } } /// Backing field for property. private string _name; diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Event.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Event.json.cs similarity index 98% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Event.json.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Event.json.cs index 413cc1758157..0e46ff933c01 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Event.json.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Event.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -75,13 +75,13 @@ internal Event(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new Event(json) : null; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/GitRepoVolume.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/GitRepoVolume.PowerShell.cs similarity index 86% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/GitRepoVolume.PowerShell.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/GitRepoVolume.PowerShell.cs index 7c9ef1a0367d..18a5e5e7e679 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/GitRepoVolume.PowerShell.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/GitRepoVolume.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -63,29 +63,29 @@ public partial class GitRepoVolume partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGitRepoVolume DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGitRepoVolume DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new GitRepoVolume(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGitRepoVolume DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGitRepoVolume DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new GitRepoVolume(content); } @@ -95,10 +95,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api202 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGitRepoVolume FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGitRepoVolume FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -113,21 +113,21 @@ internal GitRepoVolume(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Directory")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGitRepoVolumeInternal)this).Directory = (string) content.GetValueForProperty("Directory",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGitRepoVolumeInternal)this).Directory, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGitRepoVolumeInternal)this).Directory = (string) content.GetValueForProperty("Directory",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGitRepoVolumeInternal)this).Directory, global::System.Convert.ToString); } if (content.Contains("Repository")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGitRepoVolumeInternal)this).Repository = (string) content.GetValueForProperty("Repository",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGitRepoVolumeInternal)this).Repository, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGitRepoVolumeInternal)this).Repository = (string) content.GetValueForProperty("Repository",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGitRepoVolumeInternal)this).Repository, global::System.Convert.ToString); } if (content.Contains("Revision")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGitRepoVolumeInternal)this).Revision = (string) content.GetValueForProperty("Revision",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGitRepoVolumeInternal)this).Revision, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGitRepoVolumeInternal)this).Revision = (string) content.GetValueForProperty("Revision",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGitRepoVolumeInternal)this).Revision, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -142,15 +142,15 @@ internal GitRepoVolume(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Directory")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGitRepoVolumeInternal)this).Directory = (string) content.GetValueForProperty("Directory",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGitRepoVolumeInternal)this).Directory, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGitRepoVolumeInternal)this).Directory = (string) content.GetValueForProperty("Directory",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGitRepoVolumeInternal)this).Directory, global::System.Convert.ToString); } if (content.Contains("Repository")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGitRepoVolumeInternal)this).Repository = (string) content.GetValueForProperty("Repository",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGitRepoVolumeInternal)this).Repository, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGitRepoVolumeInternal)this).Repository = (string) content.GetValueForProperty("Repository",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGitRepoVolumeInternal)this).Repository, global::System.Convert.ToString); } if (content.Contains("Revision")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGitRepoVolumeInternal)this).Revision = (string) content.GetValueForProperty("Revision",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGitRepoVolumeInternal)this).Revision, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGitRepoVolumeInternal)this).Revision = (string) content.GetValueForProperty("Revision",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGitRepoVolumeInternal)this).Revision, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/GitRepoVolume.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/GitRepoVolume.TypeConverter.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/GitRepoVolume.TypeConverter.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/GitRepoVolume.TypeConverter.cs index 119fb0e4c316..bcc3e062f40d 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/GitRepoVolume.TypeConverter.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/GitRepoVolume.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGitRepoVolume ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGitRepoVolume ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGitRepoVolume).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGitRepoVolume).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/GitRepoVolume.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/GitRepoVolume.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/GitRepoVolume.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/GitRepoVolume.cs index 786a6778c561..a8ffb3836068 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/GitRepoVolume.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/GitRepoVolume.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; /// Represents a volume that is populated with the contents of a git repository public partial class GitRepoVolume : - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGitRepoVolume, - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGitRepoVolumeInternal + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGitRepoVolume, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGitRepoVolumeInternal { /// Backing field for property. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/GitRepoVolume.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/GitRepoVolume.json.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/GitRepoVolume.json.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/GitRepoVolume.json.cs index 15371e523cea..4127f708fbce 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/GitRepoVolume.json.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/GitRepoVolume.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class GitRepoVolume partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGitRepoVolume. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGitRepoVolume. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGitRepoVolume. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGitRepoVolume. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGitRepoVolume FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGitRepoVolume FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new GitRepoVolume(json) : null; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/GpuResource.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/GpuResource.PowerShell.cs similarity index 89% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/GpuResource.PowerShell.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/GpuResource.PowerShell.cs index 1753d0c6c2b4..9946b99f55f2 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/GpuResource.PowerShell.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/GpuResource.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -63,29 +63,29 @@ public partial class GpuResource partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGpuResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGpuResource DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new GpuResource(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGpuResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGpuResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new GpuResource(content); } @@ -95,10 +95,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api202 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGpuResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGpuResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -113,17 +113,17 @@ internal GpuResource(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Count")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGpuResourceInternal)this).Count = (int) content.GetValueForProperty("Count",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGpuResourceInternal)this).Count, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGpuResourceInternal)this).Count = (int) content.GetValueForProperty("Count",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGpuResourceInternal)this).Count, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("Sku")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGpuResourceInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGpuResourceInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGpuResourceInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGpuResourceInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -138,11 +138,11 @@ internal GpuResource(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Count")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGpuResourceInternal)this).Count = (int) content.GetValueForProperty("Count",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGpuResourceInternal)this).Count, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGpuResourceInternal)this).Count = (int) content.GetValueForProperty("Count",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGpuResourceInternal)this).Count, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("Sku")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGpuResourceInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGpuResourceInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGpuResourceInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGpuResourceInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku.CreateFrom); } AfterDeserializePSObject(content); } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/GpuResource.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/GpuResource.TypeConverter.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/GpuResource.TypeConverter.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/GpuResource.TypeConverter.cs index af7a124ec78a..b2005743e2da 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/GpuResource.TypeConverter.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/GpuResource.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGpuResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGpuResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGpuResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGpuResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/GpuResource.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/GpuResource.cs similarity index 96% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/GpuResource.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/GpuResource.cs index 9e3a9e3cf9b5..0a9b9bedc2de 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/GpuResource.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/GpuResource.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; /// The GPU resource. public partial class GpuResource : - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGpuResource, - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGpuResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGpuResource, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGpuResourceInternal { /// Backing field for property. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/GpuResource.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/GpuResource.json.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/GpuResource.json.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/GpuResource.json.cs index 10a65e752153..89c018b5ca77 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/GpuResource.json.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/GpuResource.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class GpuResource partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGpuResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGpuResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGpuResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGpuResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGpuResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGpuResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new GpuResource(json) : null; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/HttpHeader.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/HttpHeader.PowerShell.cs similarity index 88% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/HttpHeader.PowerShell.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/HttpHeader.PowerShell.cs index a4abc28d4654..3b983dd6227f 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/HttpHeader.PowerShell.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/HttpHeader.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -63,29 +63,29 @@ public partial class HttpHeader partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IHttpHeader DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new HttpHeader(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IHttpHeader DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new HttpHeader(content); } @@ -95,10 +95,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api202 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IHttpHeader FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -113,17 +113,17 @@ internal HttpHeader(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IHttpHeaderInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IHttpHeaderInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeaderInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeaderInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IHttpHeaderInternal)this).Value = (string) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IHttpHeaderInternal)this).Value, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeaderInternal)this).Value = (string) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeaderInternal)this).Value, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -138,11 +138,11 @@ internal HttpHeader(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IHttpHeaderInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IHttpHeaderInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeaderInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeaderInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IHttpHeaderInternal)this).Value = (string) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IHttpHeaderInternal)this).Value, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeaderInternal)this).Value = (string) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeaderInternal)this).Value, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/HttpHeader.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/HttpHeader.TypeConverter.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/HttpHeader.TypeConverter.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/HttpHeader.TypeConverter.cs index 9a00cc7504cc..6a9c766779bf 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/HttpHeader.TypeConverter.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/HttpHeader.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IHttpHeader ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IHttpHeader).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/HttpHeader.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/HttpHeader.cs similarity index 96% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/HttpHeader.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/HttpHeader.cs index 6681630c1d11..3e61a936609f 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/HttpHeader.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/HttpHeader.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; /// The HTTP header. public partial class HttpHeader : - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IHttpHeader, - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IHttpHeaderInternal + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeaderInternal { /// Backing field for property. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/HttpHeader.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/HttpHeader.json.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/HttpHeader.json.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/HttpHeader.json.cs index 1c52f15e9df4..b08543ca2451 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/HttpHeader.json.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/HttpHeader.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class HttpHeader partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IHttpHeader. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IHttpHeader. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IHttpHeader FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new HttpHeader(json) : null; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/IPAddress.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/IPAddress.PowerShell.cs similarity index 82% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/IPAddress.PowerShell.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/IPAddress.PowerShell.cs index 434d98c2d4cb..6b4f556f2c15 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/IPAddress.PowerShell.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/IPAddress.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -63,27 +63,27 @@ public partial class IPAddress partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IIPAddress DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddress DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new IPAddress(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IIPAddress DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddress DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new IPAddress(content); } @@ -93,10 +93,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api202 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IIPAddress FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddress FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -111,33 +111,33 @@ internal IPAddress(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Port")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IIPAddressInternal)this).Port = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IPort[]) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IIPAddressInternal)this).Port, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.PortTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddressInternal)this).Port = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPort[]) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddressInternal)this).Port, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.PortTypeConverter.ConvertFrom)); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IIPAddressInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IIPAddressInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddressInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddressInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType.CreateFrom); } if (content.Contains("IP")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IIPAddressInternal)this).IP = (string) content.GetValueForProperty("IP",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IIPAddressInternal)this).IP, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddressInternal)this).IP = (string) content.GetValueForProperty("IP",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddressInternal)this).IP, global::System.Convert.ToString); } if (content.Contains("DnsNameLabel")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IIPAddressInternal)this).DnsNameLabel = (string) content.GetValueForProperty("DnsNameLabel",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IIPAddressInternal)this).DnsNameLabel, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddressInternal)this).DnsNameLabel = (string) content.GetValueForProperty("DnsNameLabel",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddressInternal)this).DnsNameLabel, global::System.Convert.ToString); } if (content.Contains("AutoGeneratedDomainNameLabelScope")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IIPAddressInternal)this).AutoGeneratedDomainNameLabelScope = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy?) content.GetValueForProperty("AutoGeneratedDomainNameLabelScope",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IIPAddressInternal)this).AutoGeneratedDomainNameLabelScope, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddressInternal)this).AutoGeneratedDomainNameLabelScope = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy?) content.GetValueForProperty("AutoGeneratedDomainNameLabelScope",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddressInternal)this).AutoGeneratedDomainNameLabelScope, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy.CreateFrom); } if (content.Contains("Fqdn")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IIPAddressInternal)this).Fqdn = (string) content.GetValueForProperty("Fqdn",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IIPAddressInternal)this).Fqdn, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddressInternal)this).Fqdn = (string) content.GetValueForProperty("Fqdn",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddressInternal)this).Fqdn, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -152,27 +152,27 @@ internal IPAddress(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Port")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IIPAddressInternal)this).Port = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IPort[]) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IIPAddressInternal)this).Port, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.PortTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddressInternal)this).Port = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPort[]) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddressInternal)this).Port, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.PortTypeConverter.ConvertFrom)); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IIPAddressInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IIPAddressInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddressInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddressInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType.CreateFrom); } if (content.Contains("IP")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IIPAddressInternal)this).IP = (string) content.GetValueForProperty("IP",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IIPAddressInternal)this).IP, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddressInternal)this).IP = (string) content.GetValueForProperty("IP",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddressInternal)this).IP, global::System.Convert.ToString); } if (content.Contains("DnsNameLabel")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IIPAddressInternal)this).DnsNameLabel = (string) content.GetValueForProperty("DnsNameLabel",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IIPAddressInternal)this).DnsNameLabel, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddressInternal)this).DnsNameLabel = (string) content.GetValueForProperty("DnsNameLabel",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddressInternal)this).DnsNameLabel, global::System.Convert.ToString); } if (content.Contains("AutoGeneratedDomainNameLabelScope")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IIPAddressInternal)this).AutoGeneratedDomainNameLabelScope = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy?) content.GetValueForProperty("AutoGeneratedDomainNameLabelScope",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IIPAddressInternal)this).AutoGeneratedDomainNameLabelScope, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddressInternal)this).AutoGeneratedDomainNameLabelScope = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy?) content.GetValueForProperty("AutoGeneratedDomainNameLabelScope",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddressInternal)this).AutoGeneratedDomainNameLabelScope, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy.CreateFrom); } if (content.Contains("Fqdn")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IIPAddressInternal)this).Fqdn = (string) content.GetValueForProperty("Fqdn",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IIPAddressInternal)this).Fqdn, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddressInternal)this).Fqdn = (string) content.GetValueForProperty("Fqdn",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddressInternal)this).Fqdn, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/IPAddress.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/IPAddress.TypeConverter.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/IPAddress.TypeConverter.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/IPAddress.TypeConverter.cs index 3929b0061630..6e41ab839167 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/IPAddress.TypeConverter.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/IPAddress.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IIPAddress ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddress ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IIPAddress).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddress).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/IPAddress.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/IPAddress.cs similarity index 96% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/IPAddress.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/IPAddress.cs index b838b8a9c263..16e725b399d8 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/IPAddress.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/IPAddress.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; /// IP address for the container group. public partial class IPAddress : - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IIPAddress, - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IIPAddressInternal + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddress, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddressInternal { /// Backing field for property. @@ -49,14 +49,14 @@ public partial class IPAddress : public string IP { get => this._iP; set => this._iP = value; } /// Internal Acessors for Fqdn - string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IIPAddressInternal.Fqdn { get => this._fqdn; set { {_fqdn = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddressInternal.Fqdn { get => this._fqdn; set { {_fqdn = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IPort[] _port; + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPort[] _port; /// The list of ports exposed on the container group. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IPort[] Port { get => this._port; set => this._port = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPort[] Port { get => this._port; set => this._port = value; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType _type; @@ -120,8 +120,8 @@ public partial interface IIPAddress : ReadOnly = false, Description = @"The list of ports exposed on the container group.", SerializedName = @"ports", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IPort) })] - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IPort[] Port { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPort) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPort[] Port { get; set; } /// Specifies if the IP is exposed to the public internet or private VNET. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = true, @@ -152,7 +152,7 @@ internal partial interface IIPAddressInternal /// The IP exposed to the public internet. string IP { get; set; } /// The list of ports exposed on the container group. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IPort[] Port { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPort[] Port { get; set; } /// Specifies if the IP is exposed to the public internet or private VNET. Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType Type { get; set; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/IPAddress.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/IPAddress.json.cs similarity index 96% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/IPAddress.json.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/IPAddress.json.cs index 9c592831b29d..9217a53a8c9f 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/IPAddress.json.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/IPAddress.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class IPAddress partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IIPAddress. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddress. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IIPAddress. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddress. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IIPAddress FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IIPAddress FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new IPAddress(json) : null; } @@ -77,7 +77,7 @@ internal IPAddress(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime. { return; } - {_port = If( json?.PropertyT("ports"), out var __jsonPorts) ? If( __jsonPorts as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IPort) (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.Port.FromJson(__u) )) ))() : null : Port;} + {_port = If( json?.PropertyT("ports"), out var __jsonPorts) ? If( __jsonPorts as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPort) (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Port.FromJson(__u) )) ))() : null : Port;} {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;} {_iP = If( json?.PropertyT("ip"), out var __jsonIP) ? (string)__jsonIP : (string)IP;} {_dnsNameLabel = If( json?.PropertyT("dnsNameLabel"), out var __jsonDnsNameLabel) ? (string)__jsonDnsNameLabel : (string)DnsNameLabel;} diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ImageRegistryCredential.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ImageRegistryCredential.PowerShell.cs similarity index 85% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ImageRegistryCredential.PowerShell.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ImageRegistryCredential.PowerShell.cs index 90f39bcd48d4..ac2be5d93b0d 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ImageRegistryCredential.PowerShell.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ImageRegistryCredential.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -63,29 +63,29 @@ public partial class ImageRegistryCredential partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IImageRegistryCredential DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredential DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ImageRegistryCredential(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IImageRegistryCredential DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredential DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ImageRegistryCredential(content); } @@ -95,10 +95,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api202 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IImageRegistryCredential FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredential FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -113,29 +113,29 @@ internal ImageRegistryCredential(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Server")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IImageRegistryCredentialInternal)this).Server = (string) content.GetValueForProperty("Server",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IImageRegistryCredentialInternal)this).Server, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredentialInternal)this).Server = (string) content.GetValueForProperty("Server",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredentialInternal)this).Server, global::System.Convert.ToString); } if (content.Contains("Username")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IImageRegistryCredentialInternal)this).Username = (string) content.GetValueForProperty("Username",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IImageRegistryCredentialInternal)this).Username, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredentialInternal)this).Username = (string) content.GetValueForProperty("Username",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredentialInternal)this).Username, global::System.Convert.ToString); } if (content.Contains("Password")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IImageRegistryCredentialInternal)this).Password = (string) content.GetValueForProperty("Password",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IImageRegistryCredentialInternal)this).Password, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredentialInternal)this).Password = (string) content.GetValueForProperty("Password",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredentialInternal)this).Password, global::System.Convert.ToString); } if (content.Contains("Identity")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IImageRegistryCredentialInternal)this).Identity = (string) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IImageRegistryCredentialInternal)this).Identity, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredentialInternal)this).Identity = (string) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredentialInternal)this).Identity, global::System.Convert.ToString); } if (content.Contains("IdentityUrl")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IImageRegistryCredentialInternal)this).IdentityUrl = (string) content.GetValueForProperty("IdentityUrl",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IImageRegistryCredentialInternal)this).IdentityUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredentialInternal)this).IdentityUrl = (string) content.GetValueForProperty("IdentityUrl",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredentialInternal)this).IdentityUrl, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -150,23 +150,23 @@ internal ImageRegistryCredential(global::System.Management.Automation.PSObject c // actually deserialize if (content.Contains("Server")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IImageRegistryCredentialInternal)this).Server = (string) content.GetValueForProperty("Server",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IImageRegistryCredentialInternal)this).Server, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredentialInternal)this).Server = (string) content.GetValueForProperty("Server",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredentialInternal)this).Server, global::System.Convert.ToString); } if (content.Contains("Username")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IImageRegistryCredentialInternal)this).Username = (string) content.GetValueForProperty("Username",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IImageRegistryCredentialInternal)this).Username, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredentialInternal)this).Username = (string) content.GetValueForProperty("Username",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredentialInternal)this).Username, global::System.Convert.ToString); } if (content.Contains("Password")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IImageRegistryCredentialInternal)this).Password = (string) content.GetValueForProperty("Password",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IImageRegistryCredentialInternal)this).Password, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredentialInternal)this).Password = (string) content.GetValueForProperty("Password",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredentialInternal)this).Password, global::System.Convert.ToString); } if (content.Contains("Identity")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IImageRegistryCredentialInternal)this).Identity = (string) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IImageRegistryCredentialInternal)this).Identity, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredentialInternal)this).Identity = (string) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredentialInternal)this).Identity, global::System.Convert.ToString); } if (content.Contains("IdentityUrl")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IImageRegistryCredentialInternal)this).IdentityUrl = (string) content.GetValueForProperty("IdentityUrl",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IImageRegistryCredentialInternal)this).IdentityUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredentialInternal)this).IdentityUrl = (string) content.GetValueForProperty("IdentityUrl",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredentialInternal)this).IdentityUrl, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ImageRegistryCredential.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ImageRegistryCredential.TypeConverter.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ImageRegistryCredential.TypeConverter.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ImageRegistryCredential.TypeConverter.cs index fe3d92ed35c0..35f603560e52 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ImageRegistryCredential.TypeConverter.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ImageRegistryCredential.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IImageRegistryCredential ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredential ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IImageRegistryCredential).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredential).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ImageRegistryCredential.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ImageRegistryCredential.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ImageRegistryCredential.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ImageRegistryCredential.cs index 25d05b672974..42c2e607eee8 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ImageRegistryCredential.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ImageRegistryCredential.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; /// Image registry credential. public partial class ImageRegistryCredential : - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IImageRegistryCredential, - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IImageRegistryCredentialInternal + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredential, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredentialInternal { /// Backing field for property. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ImageRegistryCredential.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ImageRegistryCredential.json.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ImageRegistryCredential.json.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ImageRegistryCredential.json.cs index 9254f081d045..230fcaa5c9b4 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ImageRegistryCredential.json.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ImageRegistryCredential.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ImageRegistryCredential partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IImageRegistryCredential. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredential. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IImageRegistryCredential. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredential. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IImageRegistryCredential FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredential FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new ImageRegistryCredential(json) : null; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/InitContainerDefinition.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/InitContainerDefinition.PowerShell.cs similarity index 57% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/InitContainerDefinition.PowerShell.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/InitContainerDefinition.PowerShell.cs index aef6b0166ae4..b7775ff575b2 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/InitContainerDefinition.PowerShell.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/InitContainerDefinition.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -63,29 +63,29 @@ public partial class InitContainerDefinition partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinition DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinition DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new InitContainerDefinition(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinition DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinition DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new InitContainerDefinition(content); } @@ -95,10 +95,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api202 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinition FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinition FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -113,93 +113,129 @@ internal InitContainerDefinition(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinition) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.InitContainerPropertiesDefinitionTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinition) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.InitContainerPropertiesDefinitionTypeConverter.ConvertFrom); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("InstanceView")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).InstanceView = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceView) content.GetValueForProperty("InstanceView",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).InstanceView, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.InitContainerPropertiesDefinitionInstanceViewTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).InstanceView = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceView) content.GetValueForProperty("InstanceView",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).InstanceView, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.InitContainerPropertiesDefinitionInstanceViewTypeConverter.ConvertFrom); + } + if (content.Contains("SecurityContext")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).SecurityContext = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinition) content.GetValueForProperty("SecurityContext",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).SecurityContext, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.SecurityContextDefinitionTypeConverter.ConvertFrom); } if (content.Contains("Image")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).Image = (string) content.GetValueForProperty("Image",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).Image, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).Image = (string) content.GetValueForProperty("Image",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).Image, global::System.Convert.ToString); } if (content.Contains("Command")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).Command = (string[]) content.GetValueForProperty("Command",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).Command, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).Command = (string[]) content.GetValueForProperty("Command",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).Command, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("EnvironmentVariable")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).EnvironmentVariable = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEnvironmentVariable[]) content.GetValueForProperty("EnvironmentVariable",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).EnvironmentVariable, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.EnvironmentVariableTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).EnvironmentVariable = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariable[]) content.GetValueForProperty("EnvironmentVariable",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).EnvironmentVariable, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.EnvironmentVariableTypeConverter.ConvertFrom)); } if (content.Contains("VolumeMount")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).VolumeMount = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeMount[]) content.GetValueForProperty("VolumeMount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).VolumeMount, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.VolumeMountTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).VolumeMount = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMount[]) content.GetValueForProperty("VolumeMount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).VolumeMount, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.VolumeMountTypeConverter.ConvertFrom)); } if (content.Contains("InstanceViewCurrentState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).InstanceViewCurrentState = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerState) content.GetValueForProperty("InstanceViewCurrentState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).InstanceViewCurrentState, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerStateTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).InstanceViewCurrentState = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerState) content.GetValueForProperty("InstanceViewCurrentState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).InstanceViewCurrentState, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerStateTypeConverter.ConvertFrom); } if (content.Contains("InstanceViewPreviousState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).InstanceViewPreviousState = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerState) content.GetValueForProperty("InstanceViewPreviousState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).InstanceViewPreviousState, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerStateTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).InstanceViewPreviousState = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerState) content.GetValueForProperty("InstanceViewPreviousState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).InstanceViewPreviousState, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerStateTypeConverter.ConvertFrom); } if (content.Contains("InstanceViewRestartCount")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).InstanceViewRestartCount = (int?) content.GetValueForProperty("InstanceViewRestartCount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).InstanceViewRestartCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).InstanceViewRestartCount = (int?) content.GetValueForProperty("InstanceViewRestartCount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).InstanceViewRestartCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("InstanceViewEvent")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).InstanceViewEvent = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent[]) content.GetValueForProperty("InstanceViewEvent",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).InstanceViewEvent, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.EventTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).InstanceViewEvent = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent[]) content.GetValueForProperty("InstanceViewEvent",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).InstanceViewEvent, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.EventTypeConverter.ConvertFrom)); + } + if (content.Contains("SecurityContextCapability")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).SecurityContextCapability = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextCapabilitiesDefinition) content.GetValueForProperty("SecurityContextCapability",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).SecurityContextCapability, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.SecurityContextCapabilitiesDefinitionTypeConverter.ConvertFrom); + } + if (content.Contains("SecurityContextPrivileged")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).SecurityContextPrivileged = (bool?) content.GetValueForProperty("SecurityContextPrivileged",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).SecurityContextPrivileged, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("SecurityContextAllowPrivilegeEscalation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).SecurityContextAllowPrivilegeEscalation = (bool?) content.GetValueForProperty("SecurityContextAllowPrivilegeEscalation",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).SecurityContextAllowPrivilegeEscalation, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("SecurityContextRunAsGroup")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).SecurityContextRunAsGroup = (int?) content.GetValueForProperty("SecurityContextRunAsGroup",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).SecurityContextRunAsGroup, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("SecurityContextRunAsUser")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).SecurityContextRunAsUser = (int?) content.GetValueForProperty("SecurityContextRunAsUser",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).SecurityContextRunAsUser, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("SecurityContextSeccompProfile")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).SecurityContextSeccompProfile = (string) content.GetValueForProperty("SecurityContextSeccompProfile",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).SecurityContextSeccompProfile, global::System.Convert.ToString); } if (content.Contains("CurrentState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).CurrentState = (string) content.GetValueForProperty("CurrentState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).CurrentState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).CurrentState = (string) content.GetValueForProperty("CurrentState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).CurrentState, global::System.Convert.ToString); } if (content.Contains("CurrentStateStartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).CurrentStateStartTime = (global::System.DateTime?) content.GetValueForProperty("CurrentStateStartTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).CurrentStateStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).CurrentStateStartTime = (global::System.DateTime?) content.GetValueForProperty("CurrentStateStartTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).CurrentStateStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("CurrentStateExitCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).CurrentStateExitCode = (int?) content.GetValueForProperty("CurrentStateExitCode",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).CurrentStateExitCode, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).CurrentStateExitCode = (int?) content.GetValueForProperty("CurrentStateExitCode",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).CurrentStateExitCode, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("CurrentStateFinishTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).CurrentStateFinishTime = (global::System.DateTime?) content.GetValueForProperty("CurrentStateFinishTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).CurrentStateFinishTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).CurrentStateFinishTime = (global::System.DateTime?) content.GetValueForProperty("CurrentStateFinishTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).CurrentStateFinishTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("CurrentStateDetailStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).CurrentStateDetailStatus = (string) content.GetValueForProperty("CurrentStateDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).CurrentStateDetailStatus, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).CurrentStateDetailStatus = (string) content.GetValueForProperty("CurrentStateDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).CurrentStateDetailStatus, global::System.Convert.ToString); } if (content.Contains("PreviousState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).PreviousState = (string) content.GetValueForProperty("PreviousState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).PreviousState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).PreviousState = (string) content.GetValueForProperty("PreviousState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).PreviousState, global::System.Convert.ToString); } if (content.Contains("PreviousStateStartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).PreviousStateStartTime = (global::System.DateTime?) content.GetValueForProperty("PreviousStateStartTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).PreviousStateStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).PreviousStateStartTime = (global::System.DateTime?) content.GetValueForProperty("PreviousStateStartTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).PreviousStateStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("PreviousStateExitCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).PreviousStateExitCode = (int?) content.GetValueForProperty("PreviousStateExitCode",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).PreviousStateExitCode, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).PreviousStateExitCode = (int?) content.GetValueForProperty("PreviousStateExitCode",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).PreviousStateExitCode, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("PreviousStateFinishTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).PreviousStateFinishTime = (global::System.DateTime?) content.GetValueForProperty("PreviousStateFinishTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).PreviousStateFinishTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).PreviousStateFinishTime = (global::System.DateTime?) content.GetValueForProperty("PreviousStateFinishTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).PreviousStateFinishTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("PreviousStateDetailStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).PreviousStateDetailStatus = (string) content.GetValueForProperty("PreviousStateDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).PreviousStateDetailStatus, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).PreviousStateDetailStatus = (string) content.GetValueForProperty("PreviousStateDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).PreviousStateDetailStatus, global::System.Convert.ToString); + } + if (content.Contains("CapabilityAdd")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).CapabilityAdd = (string[]) content.GetValueForProperty("CapabilityAdd",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).CapabilityAdd, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("CapabilityDrop")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).CapabilityDrop = (string[]) content.GetValueForProperty("CapabilityDrop",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).CapabilityDrop, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -214,87 +250,123 @@ internal InitContainerDefinition(global::System.Management.Automation.PSObject c // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinition) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.InitContainerPropertiesDefinitionTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinition) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.InitContainerPropertiesDefinitionTypeConverter.ConvertFrom); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("InstanceView")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).InstanceView = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceView) content.GetValueForProperty("InstanceView",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).InstanceView, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.InitContainerPropertiesDefinitionInstanceViewTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).InstanceView = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceView) content.GetValueForProperty("InstanceView",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).InstanceView, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.InitContainerPropertiesDefinitionInstanceViewTypeConverter.ConvertFrom); + } + if (content.Contains("SecurityContext")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).SecurityContext = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinition) content.GetValueForProperty("SecurityContext",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).SecurityContext, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.SecurityContextDefinitionTypeConverter.ConvertFrom); } if (content.Contains("Image")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).Image = (string) content.GetValueForProperty("Image",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).Image, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).Image = (string) content.GetValueForProperty("Image",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).Image, global::System.Convert.ToString); } if (content.Contains("Command")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).Command = (string[]) content.GetValueForProperty("Command",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).Command, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).Command = (string[]) content.GetValueForProperty("Command",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).Command, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("EnvironmentVariable")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).EnvironmentVariable = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEnvironmentVariable[]) content.GetValueForProperty("EnvironmentVariable",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).EnvironmentVariable, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.EnvironmentVariableTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).EnvironmentVariable = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariable[]) content.GetValueForProperty("EnvironmentVariable",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).EnvironmentVariable, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.EnvironmentVariableTypeConverter.ConvertFrom)); } if (content.Contains("VolumeMount")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).VolumeMount = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeMount[]) content.GetValueForProperty("VolumeMount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).VolumeMount, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.VolumeMountTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).VolumeMount = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMount[]) content.GetValueForProperty("VolumeMount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).VolumeMount, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.VolumeMountTypeConverter.ConvertFrom)); } if (content.Contains("InstanceViewCurrentState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).InstanceViewCurrentState = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerState) content.GetValueForProperty("InstanceViewCurrentState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).InstanceViewCurrentState, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerStateTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).InstanceViewCurrentState = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerState) content.GetValueForProperty("InstanceViewCurrentState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).InstanceViewCurrentState, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerStateTypeConverter.ConvertFrom); } if (content.Contains("InstanceViewPreviousState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).InstanceViewPreviousState = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerState) content.GetValueForProperty("InstanceViewPreviousState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).InstanceViewPreviousState, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerStateTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).InstanceViewPreviousState = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerState) content.GetValueForProperty("InstanceViewPreviousState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).InstanceViewPreviousState, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerStateTypeConverter.ConvertFrom); } if (content.Contains("InstanceViewRestartCount")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).InstanceViewRestartCount = (int?) content.GetValueForProperty("InstanceViewRestartCount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).InstanceViewRestartCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).InstanceViewRestartCount = (int?) content.GetValueForProperty("InstanceViewRestartCount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).InstanceViewRestartCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("InstanceViewEvent")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).InstanceViewEvent = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent[]) content.GetValueForProperty("InstanceViewEvent",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).InstanceViewEvent, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.EventTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).InstanceViewEvent = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent[]) content.GetValueForProperty("InstanceViewEvent",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).InstanceViewEvent, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.EventTypeConverter.ConvertFrom)); + } + if (content.Contains("SecurityContextCapability")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).SecurityContextCapability = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextCapabilitiesDefinition) content.GetValueForProperty("SecurityContextCapability",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).SecurityContextCapability, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.SecurityContextCapabilitiesDefinitionTypeConverter.ConvertFrom); + } + if (content.Contains("SecurityContextPrivileged")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).SecurityContextPrivileged = (bool?) content.GetValueForProperty("SecurityContextPrivileged",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).SecurityContextPrivileged, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("SecurityContextAllowPrivilegeEscalation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).SecurityContextAllowPrivilegeEscalation = (bool?) content.GetValueForProperty("SecurityContextAllowPrivilegeEscalation",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).SecurityContextAllowPrivilegeEscalation, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("SecurityContextRunAsGroup")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).SecurityContextRunAsGroup = (int?) content.GetValueForProperty("SecurityContextRunAsGroup",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).SecurityContextRunAsGroup, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("SecurityContextRunAsUser")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).SecurityContextRunAsUser = (int?) content.GetValueForProperty("SecurityContextRunAsUser",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).SecurityContextRunAsUser, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("SecurityContextSeccompProfile")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).SecurityContextSeccompProfile = (string) content.GetValueForProperty("SecurityContextSeccompProfile",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).SecurityContextSeccompProfile, global::System.Convert.ToString); } if (content.Contains("CurrentState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).CurrentState = (string) content.GetValueForProperty("CurrentState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).CurrentState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).CurrentState = (string) content.GetValueForProperty("CurrentState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).CurrentState, global::System.Convert.ToString); } if (content.Contains("CurrentStateStartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).CurrentStateStartTime = (global::System.DateTime?) content.GetValueForProperty("CurrentStateStartTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).CurrentStateStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).CurrentStateStartTime = (global::System.DateTime?) content.GetValueForProperty("CurrentStateStartTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).CurrentStateStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("CurrentStateExitCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).CurrentStateExitCode = (int?) content.GetValueForProperty("CurrentStateExitCode",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).CurrentStateExitCode, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).CurrentStateExitCode = (int?) content.GetValueForProperty("CurrentStateExitCode",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).CurrentStateExitCode, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("CurrentStateFinishTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).CurrentStateFinishTime = (global::System.DateTime?) content.GetValueForProperty("CurrentStateFinishTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).CurrentStateFinishTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).CurrentStateFinishTime = (global::System.DateTime?) content.GetValueForProperty("CurrentStateFinishTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).CurrentStateFinishTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("CurrentStateDetailStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).CurrentStateDetailStatus = (string) content.GetValueForProperty("CurrentStateDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).CurrentStateDetailStatus, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).CurrentStateDetailStatus = (string) content.GetValueForProperty("CurrentStateDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).CurrentStateDetailStatus, global::System.Convert.ToString); } if (content.Contains("PreviousState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).PreviousState = (string) content.GetValueForProperty("PreviousState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).PreviousState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).PreviousState = (string) content.GetValueForProperty("PreviousState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).PreviousState, global::System.Convert.ToString); } if (content.Contains("PreviousStateStartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).PreviousStateStartTime = (global::System.DateTime?) content.GetValueForProperty("PreviousStateStartTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).PreviousStateStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).PreviousStateStartTime = (global::System.DateTime?) content.GetValueForProperty("PreviousStateStartTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).PreviousStateStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("PreviousStateExitCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).PreviousStateExitCode = (int?) content.GetValueForProperty("PreviousStateExitCode",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).PreviousStateExitCode, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).PreviousStateExitCode = (int?) content.GetValueForProperty("PreviousStateExitCode",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).PreviousStateExitCode, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("PreviousStateFinishTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).PreviousStateFinishTime = (global::System.DateTime?) content.GetValueForProperty("PreviousStateFinishTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).PreviousStateFinishTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).PreviousStateFinishTime = (global::System.DateTime?) content.GetValueForProperty("PreviousStateFinishTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).PreviousStateFinishTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("PreviousStateDetailStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).PreviousStateDetailStatus = (string) content.GetValueForProperty("PreviousStateDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal)this).PreviousStateDetailStatus, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).PreviousStateDetailStatus = (string) content.GetValueForProperty("PreviousStateDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).PreviousStateDetailStatus, global::System.Convert.ToString); + } + if (content.Contains("CapabilityAdd")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).CapabilityAdd = (string[]) content.GetValueForProperty("CapabilityAdd",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).CapabilityAdd, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("CapabilityDrop")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).CapabilityDrop = (string[]) content.GetValueForProperty("CapabilityDrop",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal)this).CapabilityDrop, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } AfterDeserializePSObject(content); } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/InitContainerDefinition.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/InitContainerDefinition.TypeConverter.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/InitContainerDefinition.TypeConverter.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/InitContainerDefinition.TypeConverter.cs index 072888feb3f5..86abab5cfcdc 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/InitContainerDefinition.TypeConverter.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/InitContainerDefinition.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinition ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinition ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinition).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinition).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/InitContainerDefinition.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/InitContainerDefinition.cs similarity index 60% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/InitContainerDefinition.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/InitContainerDefinition.cs index 8a12028cb219..e7b6c3c43142 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/InitContainerDefinition.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/InitContainerDefinition.cs @@ -3,105 +3,119 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; /// The init container definition. public partial class InitContainerDefinition : - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinition, - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinition, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal { + /// The capabilities to add to the container. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public string[] CapabilityAdd { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)Property).CapabilityAdd; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)Property).CapabilityAdd = value ?? null /* arrayOf */; } + + /// The capabilities to drop from the container. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public string[] CapabilityDrop { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)Property).CapabilityDrop; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)Property).CapabilityDrop = value ?? null /* arrayOf */; } + /// The command to execute within the init container in exec form. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string[] Command { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)Property).Command; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)Property).Command = value ?? null /* arrayOf */; } + public string[] Command { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)Property).Command; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)Property).Command = value ?? null /* arrayOf */; } /// The state of the container instance. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string CurrentState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)Property).CurrentState; } + public string CurrentState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)Property).CurrentState; } /// The human-readable status of the container instance state. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string CurrentStateDetailStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)Property).CurrentStateDetailStatus; } + public string CurrentStateDetailStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)Property).CurrentStateDetailStatus; } /// /// The container instance exit codes correspond to those from the `docker run` command. /// [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public int? CurrentStateExitCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)Property).CurrentStateExitCode; } + public int? CurrentStateExitCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)Property).CurrentStateExitCode; } /// The date-time when the container instance state finished. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public global::System.DateTime? CurrentStateFinishTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)Property).CurrentStateFinishTime; } + public global::System.DateTime? CurrentStateFinishTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)Property).CurrentStateFinishTime; } /// The date-time when the container instance state started. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public global::System.DateTime? CurrentStateStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)Property).CurrentStateStartTime; } + public global::System.DateTime? CurrentStateStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)Property).CurrentStateStartTime; } /// The environment variables to set in the init container. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEnvironmentVariable[] EnvironmentVariable { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)Property).EnvironmentVariable; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)Property).EnvironmentVariable = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariable[] EnvironmentVariable { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)Property).EnvironmentVariable; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)Property).EnvironmentVariable = value ?? null /* arrayOf */; } /// The image of the init container. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string Image { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)Property).Image; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)Property).Image = value ?? null; } + public string Image { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)Property).Image; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)Property).Image = value ?? null; } /// The events of the init container. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent[] InstanceViewEvent { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)Property).InstanceViewEvent; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent[] InstanceViewEvent { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)Property).InstanceViewEvent; } /// The number of times that the init container has been restarted. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public int? InstanceViewRestartCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)Property).InstanceViewRestartCount; } + public int? InstanceViewRestartCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)Property).InstanceViewRestartCount; } /// Internal Acessors for CurrentState - string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal.CurrentState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)Property).CurrentState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)Property).CurrentState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal.CurrentState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)Property).CurrentState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)Property).CurrentState = value; } /// Internal Acessors for CurrentStateDetailStatus - string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal.CurrentStateDetailStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)Property).CurrentStateDetailStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)Property).CurrentStateDetailStatus = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal.CurrentStateDetailStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)Property).CurrentStateDetailStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)Property).CurrentStateDetailStatus = value; } /// Internal Acessors for CurrentStateExitCode - int? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal.CurrentStateExitCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)Property).CurrentStateExitCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)Property).CurrentStateExitCode = value; } + int? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal.CurrentStateExitCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)Property).CurrentStateExitCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)Property).CurrentStateExitCode = value; } /// Internal Acessors for CurrentStateFinishTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal.CurrentStateFinishTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)Property).CurrentStateFinishTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)Property).CurrentStateFinishTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal.CurrentStateFinishTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)Property).CurrentStateFinishTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)Property).CurrentStateFinishTime = value; } /// Internal Acessors for CurrentStateStartTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal.CurrentStateStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)Property).CurrentStateStartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)Property).CurrentStateStartTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal.CurrentStateStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)Property).CurrentStateStartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)Property).CurrentStateStartTime = value; } /// Internal Acessors for InstanceView - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceView Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal.InstanceView { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)Property).InstanceView; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)Property).InstanceView = value; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceView Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal.InstanceView { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)Property).InstanceView; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)Property).InstanceView = value; } /// Internal Acessors for InstanceViewCurrentState - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerState Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal.InstanceViewCurrentState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)Property).InstanceViewCurrentState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)Property).InstanceViewCurrentState = value; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerState Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal.InstanceViewCurrentState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)Property).InstanceViewCurrentState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)Property).InstanceViewCurrentState = value; } /// Internal Acessors for InstanceViewEvent - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent[] Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal.InstanceViewEvent { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)Property).InstanceViewEvent; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)Property).InstanceViewEvent = value; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent[] Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal.InstanceViewEvent { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)Property).InstanceViewEvent; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)Property).InstanceViewEvent = value; } /// Internal Acessors for InstanceViewPreviousState - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerState Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal.InstanceViewPreviousState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)Property).InstanceViewPreviousState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)Property).InstanceViewPreviousState = value; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerState Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal.InstanceViewPreviousState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)Property).InstanceViewPreviousState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)Property).InstanceViewPreviousState = value; } /// Internal Acessors for InstanceViewRestartCount - int? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal.InstanceViewRestartCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)Property).InstanceViewRestartCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)Property).InstanceViewRestartCount = value; } + int? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal.InstanceViewRestartCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)Property).InstanceViewRestartCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)Property).InstanceViewRestartCount = value; } /// Internal Acessors for PreviousState - string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal.PreviousState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)Property).PreviousState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)Property).PreviousState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal.PreviousState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)Property).PreviousState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)Property).PreviousState = value; } /// Internal Acessors for PreviousStateDetailStatus - string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal.PreviousStateDetailStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)Property).PreviousStateDetailStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)Property).PreviousStateDetailStatus = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal.PreviousStateDetailStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)Property).PreviousStateDetailStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)Property).PreviousStateDetailStatus = value; } /// Internal Acessors for PreviousStateExitCode - int? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal.PreviousStateExitCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)Property).PreviousStateExitCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)Property).PreviousStateExitCode = value; } + int? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal.PreviousStateExitCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)Property).PreviousStateExitCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)Property).PreviousStateExitCode = value; } /// Internal Acessors for PreviousStateFinishTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal.PreviousStateFinishTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)Property).PreviousStateFinishTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)Property).PreviousStateFinishTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal.PreviousStateFinishTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)Property).PreviousStateFinishTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)Property).PreviousStateFinishTime = value; } /// Internal Acessors for PreviousStateStartTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal.PreviousStateStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)Property).PreviousStateStartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)Property).PreviousStateStartTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal.PreviousStateStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)Property).PreviousStateStartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)Property).PreviousStateStartTime = value; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinition Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinitionInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.InitContainerPropertiesDefinition()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinition Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.InitContainerPropertiesDefinition()); set { {_property = value;} } } + + /// Internal Acessors for SecurityContext + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinition Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal.SecurityContext { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)Property).SecurityContext; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)Property).SecurityContext = value; } + + /// Internal Acessors for SecurityContextCapability + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextCapabilitiesDefinition Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinitionInternal.SecurityContextCapability { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)Property).SecurityContextCapability; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)Property).SecurityContextCapability = value; } /// Backing field for property. private string _name; @@ -112,36 +126,58 @@ public partial class InitContainerDefinition : /// The state of the container instance. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string PreviousState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)Property).PreviousState; } + public string PreviousState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)Property).PreviousState; } /// The human-readable status of the container instance state. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string PreviousStateDetailStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)Property).PreviousStateDetailStatus; } + public string PreviousStateDetailStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)Property).PreviousStateDetailStatus; } /// /// The container instance exit codes correspond to those from the `docker run` command. /// [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public int? PreviousStateExitCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)Property).PreviousStateExitCode; } + public int? PreviousStateExitCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)Property).PreviousStateExitCode; } /// The date-time when the container instance state finished. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public global::System.DateTime? PreviousStateFinishTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)Property).PreviousStateFinishTime; } + public global::System.DateTime? PreviousStateFinishTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)Property).PreviousStateFinishTime; } /// The date-time when the container instance state started. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public global::System.DateTime? PreviousStateStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)Property).PreviousStateStartTime; } + public global::System.DateTime? PreviousStateStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)Property).PreviousStateStartTime; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinition _property; + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinition _property; /// The properties for the init container. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinition Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.InitContainerPropertiesDefinition()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinition Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.InitContainerPropertiesDefinition()); set => this._property = value; } + + /// A boolean value indicating whether the init process can elevate its privileges + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public bool? SecurityContextAllowPrivilegeEscalation { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)Property).SecurityContextAllowPrivilegeEscalation; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)Property).SecurityContextAllowPrivilegeEscalation = value ?? default(bool); } + + /// The flag to determine if the container permissions is elevated to Privileged. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public bool? SecurityContextPrivileged { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)Property).SecurityContextPrivileged; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)Property).SecurityContextPrivileged = value ?? default(bool); } + + /// Sets the User GID for the container. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public int? SecurityContextRunAsGroup { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)Property).SecurityContextRunAsGroup; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)Property).SecurityContextRunAsGroup = value ?? default(int); } + + /// Sets the User UID for the container. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public int? SecurityContextRunAsUser { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)Property).SecurityContextRunAsUser; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)Property).SecurityContextRunAsUser = value ?? default(int); } + + /// + /// a base64 encoded string containing the contents of the JSON in the seccomp profile + /// + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public string SecurityContextSeccompProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)Property).SecurityContextSeccompProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)Property).SecurityContextSeccompProfile = value ?? null; } /// The volume mounts available to the init container. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeMount[] VolumeMount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)Property).VolumeMount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)Property).VolumeMount = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMount[] VolumeMount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)Property).VolumeMount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)Property).VolumeMount = value ?? null /* arrayOf */; } /// Creates an new instance. public InitContainerDefinition() @@ -153,6 +189,22 @@ public InitContainerDefinition() public partial interface IInitContainerDefinition : Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IJsonSerializable { + /// The capabilities to add to the container. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The capabilities to add to the container.", + SerializedName = @"add", + PossibleTypes = new [] { typeof(string) })] + string[] CapabilityAdd { get; set; } + /// The capabilities to drop from the container. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The capabilities to drop from the container.", + SerializedName = @"drop", + PossibleTypes = new [] { typeof(string) })] + string[] CapabilityDrop { get; set; } /// The command to execute within the init container in exec form. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = false, @@ -209,8 +261,8 @@ public partial interface IInitContainerDefinition : ReadOnly = false, Description = @"The environment variables to set in the init container.", SerializedName = @"environmentVariables", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEnvironmentVariable) })] - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEnvironmentVariable[] EnvironmentVariable { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariable) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariable[] EnvironmentVariable { get; set; } /// The image of the init container. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = false, @@ -225,8 +277,8 @@ public partial interface IInitContainerDefinition : ReadOnly = true, Description = @"The events of the init container.", SerializedName = @"events", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent) })] - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent[] InstanceViewEvent { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent[] InstanceViewEvent { get; } /// The number of times that the init container has been restarted. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = false, @@ -285,20 +337,66 @@ public partial interface IInitContainerDefinition : SerializedName = @"startTime", PossibleTypes = new [] { typeof(global::System.DateTime) })] global::System.DateTime? PreviousStateStartTime { get; } + /// A boolean value indicating whether the init process can elevate its privileges + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A boolean value indicating whether the init process can elevate its privileges", + SerializedName = @"allowPrivilegeEscalation", + PossibleTypes = new [] { typeof(bool) })] + bool? SecurityContextAllowPrivilegeEscalation { get; set; } + /// The flag to determine if the container permissions is elevated to Privileged. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The flag to determine if the container permissions is elevated to Privileged.", + SerializedName = @"privileged", + PossibleTypes = new [] { typeof(bool) })] + bool? SecurityContextPrivileged { get; set; } + /// Sets the User GID for the container. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Sets the User GID for the container.", + SerializedName = @"runAsGroup", + PossibleTypes = new [] { typeof(int) })] + int? SecurityContextRunAsGroup { get; set; } + /// Sets the User UID for the container. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Sets the User UID for the container.", + SerializedName = @"runAsUser", + PossibleTypes = new [] { typeof(int) })] + int? SecurityContextRunAsUser { get; set; } + /// + /// a base64 encoded string containing the contents of the JSON in the seccomp profile + /// + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"a base64 encoded string containing the contents of the JSON in the seccomp profile", + SerializedName = @"seccompProfile", + PossibleTypes = new [] { typeof(string) })] + string SecurityContextSeccompProfile { get; set; } /// The volume mounts available to the init container. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = false, ReadOnly = false, Description = @"The volume mounts available to the init container.", SerializedName = @"volumeMounts", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeMount) })] - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeMount[] VolumeMount { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMount) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMount[] VolumeMount { get; set; } } /// The init container definition. internal partial interface IInitContainerDefinitionInternal { + /// The capabilities to add to the container. + string[] CapabilityAdd { get; set; } + /// The capabilities to drop from the container. + string[] CapabilityDrop { get; set; } /// The command to execute within the init container in exec form. string[] Command { get; set; } /// The state of the container instance. @@ -314,17 +412,17 @@ internal partial interface IInitContainerDefinitionInternal /// The date-time when the container instance state started. global::System.DateTime? CurrentStateStartTime { get; set; } /// The environment variables to set in the init container. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEnvironmentVariable[] EnvironmentVariable { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariable[] EnvironmentVariable { get; set; } /// The image of the init container. string Image { get; set; } /// The instance view of the init container. Only valid in response. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceView InstanceView { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceView InstanceView { get; set; } /// The current state of the init container. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerState InstanceViewCurrentState { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerState InstanceViewCurrentState { get; set; } /// The events of the init container. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent[] InstanceViewEvent { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent[] InstanceViewEvent { get; set; } /// The previous state of the init container. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerState InstanceViewPreviousState { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerState InstanceViewPreviousState { get; set; } /// The number of times that the init container has been restarted. int? InstanceViewRestartCount { get; set; } /// The name for the init container. @@ -342,9 +440,25 @@ internal partial interface IInitContainerDefinitionInternal /// The date-time when the container instance state started. global::System.DateTime? PreviousStateStartTime { get; set; } /// The properties for the init container. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinition Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinition Property { get; set; } + /// The container security properties. + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinition SecurityContext { get; set; } + /// A boolean value indicating whether the init process can elevate its privileges + bool? SecurityContextAllowPrivilegeEscalation { get; set; } + /// The capabilities to add or drop from a container. + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextCapabilitiesDefinition SecurityContextCapability { get; set; } + /// The flag to determine if the container permissions is elevated to Privileged. + bool? SecurityContextPrivileged { get; set; } + /// Sets the User GID for the container. + int? SecurityContextRunAsGroup { get; set; } + /// Sets the User UID for the container. + int? SecurityContextRunAsUser { get; set; } + /// + /// a base64 encoded string containing the contents of the JSON in the seccomp profile + /// + string SecurityContextSeccompProfile { get; set; } /// The volume mounts available to the init container. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeMount[] VolumeMount { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMount[] VolumeMount { get; set; } } } \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/InitContainerDefinition.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/InitContainerDefinition.json.cs similarity index 96% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/InitContainerDefinition.json.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/InitContainerDefinition.json.cs index 6f29192c157e..3de53fbf9182 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/InitContainerDefinition.json.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/InitContainerDefinition.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InitContainerDefinition partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinition. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinition. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinition. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinition. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinition FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinition FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new InitContainerDefinition(json) : null; } @@ -77,7 +77,7 @@ internal InitContainerDefinition(Microsoft.Azure.PowerShell.Cmdlets.ContainerIns { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.InitContainerPropertiesDefinition.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.InitContainerPropertiesDefinition.FromJson(__jsonProperties) : Property;} {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} AfterFromJson(json); } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/InitContainerPropertiesDefinition.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/InitContainerPropertiesDefinition.PowerShell.cs similarity index 57% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/InitContainerPropertiesDefinition.PowerShell.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/InitContainerPropertiesDefinition.PowerShell.cs index 75ec443d636b..cb49a72c2cc0 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/InitContainerPropertiesDefinition.PowerShell.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/InitContainerPropertiesDefinition.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -63,29 +63,29 @@ public partial class InitContainerPropertiesDefinition partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinition DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinition DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new InitContainerPropertiesDefinition(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinition DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinition DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new InitContainerPropertiesDefinition(content); } @@ -97,10 +97,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api202 /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinition FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinition FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -115,85 +115,121 @@ internal InitContainerPropertiesDefinition(global::System.Collections.IDictionar // actually deserialize if (content.Contains("InstanceView")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).InstanceView = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceView) content.GetValueForProperty("InstanceView",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).InstanceView, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.InitContainerPropertiesDefinitionInstanceViewTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).InstanceView = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceView) content.GetValueForProperty("InstanceView",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).InstanceView, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.InitContainerPropertiesDefinitionInstanceViewTypeConverter.ConvertFrom); + } + if (content.Contains("SecurityContext")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).SecurityContext = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinition) content.GetValueForProperty("SecurityContext",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).SecurityContext, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.SecurityContextDefinitionTypeConverter.ConvertFrom); } if (content.Contains("Image")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).Image = (string) content.GetValueForProperty("Image",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).Image, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).Image = (string) content.GetValueForProperty("Image",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).Image, global::System.Convert.ToString); } if (content.Contains("Command")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).Command = (string[]) content.GetValueForProperty("Command",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).Command, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).Command = (string[]) content.GetValueForProperty("Command",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).Command, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("EnvironmentVariable")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).EnvironmentVariable = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEnvironmentVariable[]) content.GetValueForProperty("EnvironmentVariable",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).EnvironmentVariable, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.EnvironmentVariableTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).EnvironmentVariable = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariable[]) content.GetValueForProperty("EnvironmentVariable",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).EnvironmentVariable, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.EnvironmentVariableTypeConverter.ConvertFrom)); } if (content.Contains("VolumeMount")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).VolumeMount = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeMount[]) content.GetValueForProperty("VolumeMount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).VolumeMount, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.VolumeMountTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).VolumeMount = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMount[]) content.GetValueForProperty("VolumeMount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).VolumeMount, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.VolumeMountTypeConverter.ConvertFrom)); } if (content.Contains("InstanceViewCurrentState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).InstanceViewCurrentState = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerState) content.GetValueForProperty("InstanceViewCurrentState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).InstanceViewCurrentState, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerStateTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).InstanceViewCurrentState = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerState) content.GetValueForProperty("InstanceViewCurrentState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).InstanceViewCurrentState, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerStateTypeConverter.ConvertFrom); } if (content.Contains("InstanceViewPreviousState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).InstanceViewPreviousState = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerState) content.GetValueForProperty("InstanceViewPreviousState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).InstanceViewPreviousState, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerStateTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).InstanceViewPreviousState = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerState) content.GetValueForProperty("InstanceViewPreviousState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).InstanceViewPreviousState, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerStateTypeConverter.ConvertFrom); } if (content.Contains("InstanceViewRestartCount")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).InstanceViewRestartCount = (int?) content.GetValueForProperty("InstanceViewRestartCount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).InstanceViewRestartCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).InstanceViewRestartCount = (int?) content.GetValueForProperty("InstanceViewRestartCount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).InstanceViewRestartCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("InstanceViewEvent")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).InstanceViewEvent = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent[]) content.GetValueForProperty("InstanceViewEvent",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).InstanceViewEvent, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.EventTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).InstanceViewEvent = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent[]) content.GetValueForProperty("InstanceViewEvent",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).InstanceViewEvent, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.EventTypeConverter.ConvertFrom)); + } + if (content.Contains("SecurityContextCapability")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).SecurityContextCapability = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextCapabilitiesDefinition) content.GetValueForProperty("SecurityContextCapability",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).SecurityContextCapability, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.SecurityContextCapabilitiesDefinitionTypeConverter.ConvertFrom); + } + if (content.Contains("SecurityContextPrivileged")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).SecurityContextPrivileged = (bool?) content.GetValueForProperty("SecurityContextPrivileged",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).SecurityContextPrivileged, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("SecurityContextAllowPrivilegeEscalation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).SecurityContextAllowPrivilegeEscalation = (bool?) content.GetValueForProperty("SecurityContextAllowPrivilegeEscalation",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).SecurityContextAllowPrivilegeEscalation, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("SecurityContextRunAsGroup")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).SecurityContextRunAsGroup = (int?) content.GetValueForProperty("SecurityContextRunAsGroup",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).SecurityContextRunAsGroup, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("SecurityContextRunAsUser")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).SecurityContextRunAsUser = (int?) content.GetValueForProperty("SecurityContextRunAsUser",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).SecurityContextRunAsUser, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("SecurityContextSeccompProfile")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).SecurityContextSeccompProfile = (string) content.GetValueForProperty("SecurityContextSeccompProfile",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).SecurityContextSeccompProfile, global::System.Convert.ToString); } if (content.Contains("CurrentState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).CurrentState = (string) content.GetValueForProperty("CurrentState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).CurrentState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).CurrentState = (string) content.GetValueForProperty("CurrentState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).CurrentState, global::System.Convert.ToString); } if (content.Contains("CurrentStateStartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).CurrentStateStartTime = (global::System.DateTime?) content.GetValueForProperty("CurrentStateStartTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).CurrentStateStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).CurrentStateStartTime = (global::System.DateTime?) content.GetValueForProperty("CurrentStateStartTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).CurrentStateStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("CurrentStateExitCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).CurrentStateExitCode = (int?) content.GetValueForProperty("CurrentStateExitCode",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).CurrentStateExitCode, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).CurrentStateExitCode = (int?) content.GetValueForProperty("CurrentStateExitCode",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).CurrentStateExitCode, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("CurrentStateFinishTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).CurrentStateFinishTime = (global::System.DateTime?) content.GetValueForProperty("CurrentStateFinishTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).CurrentStateFinishTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).CurrentStateFinishTime = (global::System.DateTime?) content.GetValueForProperty("CurrentStateFinishTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).CurrentStateFinishTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("CurrentStateDetailStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).CurrentStateDetailStatus = (string) content.GetValueForProperty("CurrentStateDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).CurrentStateDetailStatus, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).CurrentStateDetailStatus = (string) content.GetValueForProperty("CurrentStateDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).CurrentStateDetailStatus, global::System.Convert.ToString); } if (content.Contains("PreviousState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).PreviousState = (string) content.GetValueForProperty("PreviousState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).PreviousState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).PreviousState = (string) content.GetValueForProperty("PreviousState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).PreviousState, global::System.Convert.ToString); } if (content.Contains("PreviousStateStartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).PreviousStateStartTime = (global::System.DateTime?) content.GetValueForProperty("PreviousStateStartTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).PreviousStateStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).PreviousStateStartTime = (global::System.DateTime?) content.GetValueForProperty("PreviousStateStartTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).PreviousStateStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("PreviousStateExitCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).PreviousStateExitCode = (int?) content.GetValueForProperty("PreviousStateExitCode",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).PreviousStateExitCode, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).PreviousStateExitCode = (int?) content.GetValueForProperty("PreviousStateExitCode",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).PreviousStateExitCode, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("PreviousStateFinishTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).PreviousStateFinishTime = (global::System.DateTime?) content.GetValueForProperty("PreviousStateFinishTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).PreviousStateFinishTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).PreviousStateFinishTime = (global::System.DateTime?) content.GetValueForProperty("PreviousStateFinishTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).PreviousStateFinishTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("PreviousStateDetailStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).PreviousStateDetailStatus = (string) content.GetValueForProperty("PreviousStateDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).PreviousStateDetailStatus, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).PreviousStateDetailStatus = (string) content.GetValueForProperty("PreviousStateDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).PreviousStateDetailStatus, global::System.Convert.ToString); + } + if (content.Contains("CapabilityAdd")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).CapabilityAdd = (string[]) content.GetValueForProperty("CapabilityAdd",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).CapabilityAdd, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("CapabilityDrop")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).CapabilityDrop = (string[]) content.GetValueForProperty("CapabilityDrop",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).CapabilityDrop, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -208,79 +244,115 @@ internal InitContainerPropertiesDefinition(global::System.Management.Automation. // actually deserialize if (content.Contains("InstanceView")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).InstanceView = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceView) content.GetValueForProperty("InstanceView",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).InstanceView, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.InitContainerPropertiesDefinitionInstanceViewTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).InstanceView = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceView) content.GetValueForProperty("InstanceView",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).InstanceView, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.InitContainerPropertiesDefinitionInstanceViewTypeConverter.ConvertFrom); + } + if (content.Contains("SecurityContext")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).SecurityContext = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinition) content.GetValueForProperty("SecurityContext",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).SecurityContext, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.SecurityContextDefinitionTypeConverter.ConvertFrom); } if (content.Contains("Image")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).Image = (string) content.GetValueForProperty("Image",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).Image, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).Image = (string) content.GetValueForProperty("Image",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).Image, global::System.Convert.ToString); } if (content.Contains("Command")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).Command = (string[]) content.GetValueForProperty("Command",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).Command, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).Command = (string[]) content.GetValueForProperty("Command",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).Command, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("EnvironmentVariable")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).EnvironmentVariable = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEnvironmentVariable[]) content.GetValueForProperty("EnvironmentVariable",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).EnvironmentVariable, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.EnvironmentVariableTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).EnvironmentVariable = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariable[]) content.GetValueForProperty("EnvironmentVariable",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).EnvironmentVariable, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.EnvironmentVariableTypeConverter.ConvertFrom)); } if (content.Contains("VolumeMount")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).VolumeMount = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeMount[]) content.GetValueForProperty("VolumeMount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).VolumeMount, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.VolumeMountTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).VolumeMount = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMount[]) content.GetValueForProperty("VolumeMount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).VolumeMount, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.VolumeMountTypeConverter.ConvertFrom)); } if (content.Contains("InstanceViewCurrentState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).InstanceViewCurrentState = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerState) content.GetValueForProperty("InstanceViewCurrentState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).InstanceViewCurrentState, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerStateTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).InstanceViewCurrentState = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerState) content.GetValueForProperty("InstanceViewCurrentState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).InstanceViewCurrentState, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerStateTypeConverter.ConvertFrom); } if (content.Contains("InstanceViewPreviousState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).InstanceViewPreviousState = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerState) content.GetValueForProperty("InstanceViewPreviousState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).InstanceViewPreviousState, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerStateTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).InstanceViewPreviousState = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerState) content.GetValueForProperty("InstanceViewPreviousState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).InstanceViewPreviousState, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerStateTypeConverter.ConvertFrom); } if (content.Contains("InstanceViewRestartCount")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).InstanceViewRestartCount = (int?) content.GetValueForProperty("InstanceViewRestartCount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).InstanceViewRestartCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).InstanceViewRestartCount = (int?) content.GetValueForProperty("InstanceViewRestartCount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).InstanceViewRestartCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("InstanceViewEvent")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).InstanceViewEvent = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent[]) content.GetValueForProperty("InstanceViewEvent",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).InstanceViewEvent, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.EventTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).InstanceViewEvent = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent[]) content.GetValueForProperty("InstanceViewEvent",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).InstanceViewEvent, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.EventTypeConverter.ConvertFrom)); + } + if (content.Contains("SecurityContextCapability")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).SecurityContextCapability = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextCapabilitiesDefinition) content.GetValueForProperty("SecurityContextCapability",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).SecurityContextCapability, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.SecurityContextCapabilitiesDefinitionTypeConverter.ConvertFrom); + } + if (content.Contains("SecurityContextPrivileged")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).SecurityContextPrivileged = (bool?) content.GetValueForProperty("SecurityContextPrivileged",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).SecurityContextPrivileged, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("SecurityContextAllowPrivilegeEscalation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).SecurityContextAllowPrivilegeEscalation = (bool?) content.GetValueForProperty("SecurityContextAllowPrivilegeEscalation",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).SecurityContextAllowPrivilegeEscalation, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("SecurityContextRunAsGroup")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).SecurityContextRunAsGroup = (int?) content.GetValueForProperty("SecurityContextRunAsGroup",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).SecurityContextRunAsGroup, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("SecurityContextRunAsUser")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).SecurityContextRunAsUser = (int?) content.GetValueForProperty("SecurityContextRunAsUser",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).SecurityContextRunAsUser, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("SecurityContextSeccompProfile")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).SecurityContextSeccompProfile = (string) content.GetValueForProperty("SecurityContextSeccompProfile",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).SecurityContextSeccompProfile, global::System.Convert.ToString); } if (content.Contains("CurrentState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).CurrentState = (string) content.GetValueForProperty("CurrentState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).CurrentState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).CurrentState = (string) content.GetValueForProperty("CurrentState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).CurrentState, global::System.Convert.ToString); } if (content.Contains("CurrentStateStartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).CurrentStateStartTime = (global::System.DateTime?) content.GetValueForProperty("CurrentStateStartTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).CurrentStateStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).CurrentStateStartTime = (global::System.DateTime?) content.GetValueForProperty("CurrentStateStartTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).CurrentStateStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("CurrentStateExitCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).CurrentStateExitCode = (int?) content.GetValueForProperty("CurrentStateExitCode",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).CurrentStateExitCode, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).CurrentStateExitCode = (int?) content.GetValueForProperty("CurrentStateExitCode",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).CurrentStateExitCode, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("CurrentStateFinishTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).CurrentStateFinishTime = (global::System.DateTime?) content.GetValueForProperty("CurrentStateFinishTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).CurrentStateFinishTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).CurrentStateFinishTime = (global::System.DateTime?) content.GetValueForProperty("CurrentStateFinishTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).CurrentStateFinishTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("CurrentStateDetailStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).CurrentStateDetailStatus = (string) content.GetValueForProperty("CurrentStateDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).CurrentStateDetailStatus, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).CurrentStateDetailStatus = (string) content.GetValueForProperty("CurrentStateDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).CurrentStateDetailStatus, global::System.Convert.ToString); } if (content.Contains("PreviousState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).PreviousState = (string) content.GetValueForProperty("PreviousState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).PreviousState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).PreviousState = (string) content.GetValueForProperty("PreviousState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).PreviousState, global::System.Convert.ToString); } if (content.Contains("PreviousStateStartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).PreviousStateStartTime = (global::System.DateTime?) content.GetValueForProperty("PreviousStateStartTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).PreviousStateStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).PreviousStateStartTime = (global::System.DateTime?) content.GetValueForProperty("PreviousStateStartTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).PreviousStateStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("PreviousStateExitCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).PreviousStateExitCode = (int?) content.GetValueForProperty("PreviousStateExitCode",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).PreviousStateExitCode, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).PreviousStateExitCode = (int?) content.GetValueForProperty("PreviousStateExitCode",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).PreviousStateExitCode, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("PreviousStateFinishTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).PreviousStateFinishTime = (global::System.DateTime?) content.GetValueForProperty("PreviousStateFinishTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).PreviousStateFinishTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).PreviousStateFinishTime = (global::System.DateTime?) content.GetValueForProperty("PreviousStateFinishTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).PreviousStateFinishTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("PreviousStateDetailStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).PreviousStateDetailStatus = (string) content.GetValueForProperty("PreviousStateDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal)this).PreviousStateDetailStatus, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).PreviousStateDetailStatus = (string) content.GetValueForProperty("PreviousStateDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).PreviousStateDetailStatus, global::System.Convert.ToString); + } + if (content.Contains("CapabilityAdd")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).CapabilityAdd = (string[]) content.GetValueForProperty("CapabilityAdd",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).CapabilityAdd, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("CapabilityDrop")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).CapabilityDrop = (string[]) content.GetValueForProperty("CapabilityDrop",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal)this).CapabilityDrop, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } AfterDeserializePSObject(content); } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/InitContainerPropertiesDefinition.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/InitContainerPropertiesDefinition.TypeConverter.cs similarity index 98% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/InitContainerPropertiesDefinition.TypeConverter.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/InitContainerPropertiesDefinition.TypeConverter.cs index 072e5df8ba3a..ac4477f3ef95 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/InitContainerPropertiesDefinition.TypeConverter.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/InitContainerPropertiesDefinition.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -107,14 +107,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinition ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinition ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinition).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinition).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/InitContainerPropertiesDefinition.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/InitContainerPropertiesDefinition.cs similarity index 60% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/InitContainerPropertiesDefinition.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/InitContainerPropertiesDefinition.cs index 5770512cd1b9..15b86adb6392 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/InitContainerPropertiesDefinition.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/InitContainerPropertiesDefinition.cs @@ -3,16 +3,24 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; /// The init container definition properties. public partial class InitContainerPropertiesDefinition : - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinition, - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinition, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal { + /// The capabilities to add to the container. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public string[] CapabilityAdd { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinitionInternal)SecurityContext).CapabilityAdd; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinitionInternal)SecurityContext).CapabilityAdd = value ?? null /* arrayOf */; } + + /// The capabilities to drop from the container. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public string[] CapabilityDrop { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinitionInternal)SecurityContext).CapabilityDrop; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinitionInternal)SecurityContext).CapabilityDrop = value ?? null /* arrayOf */; } + /// Backing field for property. private string[] _command; @@ -22,32 +30,32 @@ public partial class InitContainerPropertiesDefinition : /// The state of the container instance. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string CurrentState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).CurrentStateState; } + public string CurrentState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).CurrentStateState; } /// The human-readable status of the container instance state. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string CurrentStateDetailStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).CurrentStateDetailStatus; } + public string CurrentStateDetailStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).CurrentStateDetailStatus; } /// /// The container instance exit codes correspond to those from the `docker run` command. /// [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public int? CurrentStateExitCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).CurrentStateExitCode; } + public int? CurrentStateExitCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).CurrentStateExitCode; } /// The date-time when the container instance state finished. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public global::System.DateTime? CurrentStateFinishTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).CurrentStateFinishTime; } + public global::System.DateTime? CurrentStateFinishTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).CurrentStateFinishTime; } /// The date-time when the container instance state started. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public global::System.DateTime? CurrentStateStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).CurrentStateStartTime; } + public global::System.DateTime? CurrentStateStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).CurrentStateStartTime; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEnvironmentVariable[] _environmentVariable; + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariable[] _environmentVariable; /// The environment variables to set in the init container. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEnvironmentVariable[] EnvironmentVariable { get => this._environmentVariable; set => this._environmentVariable = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariable[] EnvironmentVariable { get => this._environmentVariable; set => this._environmentVariable = value; } /// Backing field for property. private string _image; @@ -57,93 +65,128 @@ public partial class InitContainerPropertiesDefinition : public string Image { get => this._image; set => this._image = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceView _instanceView; + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceView _instanceView; /// The instance view of the init container. Only valid in response. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceView InstanceView { get => (this._instanceView = this._instanceView ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.InitContainerPropertiesDefinitionInstanceView()); } + internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceView InstanceView { get => (this._instanceView = this._instanceView ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.InitContainerPropertiesDefinitionInstanceView()); } /// The events of the init container. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent[] InstanceViewEvent { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).Event; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent[] InstanceViewEvent { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).Event; } /// The number of times that the init container has been restarted. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public int? InstanceViewRestartCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).RestartCount; } + public int? InstanceViewRestartCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).RestartCount; } /// Internal Acessors for CurrentState - string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal.CurrentState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).CurrentStateState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).CurrentStateState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal.CurrentState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).CurrentStateState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).CurrentStateState = value; } /// Internal Acessors for CurrentStateDetailStatus - string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal.CurrentStateDetailStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).CurrentStateDetailStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).CurrentStateDetailStatus = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal.CurrentStateDetailStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).CurrentStateDetailStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).CurrentStateDetailStatus = value; } /// Internal Acessors for CurrentStateExitCode - int? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal.CurrentStateExitCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).CurrentStateExitCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).CurrentStateExitCode = value; } + int? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal.CurrentStateExitCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).CurrentStateExitCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).CurrentStateExitCode = value; } /// Internal Acessors for CurrentStateFinishTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal.CurrentStateFinishTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).CurrentStateFinishTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).CurrentStateFinishTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal.CurrentStateFinishTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).CurrentStateFinishTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).CurrentStateFinishTime = value; } /// Internal Acessors for CurrentStateStartTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal.CurrentStateStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).CurrentStateStartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).CurrentStateStartTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal.CurrentStateStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).CurrentStateStartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).CurrentStateStartTime = value; } /// Internal Acessors for InstanceView - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceView Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal.InstanceView { get => (this._instanceView = this._instanceView ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.InitContainerPropertiesDefinitionInstanceView()); set { {_instanceView = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceView Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal.InstanceView { get => (this._instanceView = this._instanceView ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.InitContainerPropertiesDefinitionInstanceView()); set { {_instanceView = value;} } } /// Internal Acessors for InstanceViewCurrentState - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerState Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal.InstanceViewCurrentState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).CurrentState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).CurrentState = value; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerState Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal.InstanceViewCurrentState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).CurrentState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).CurrentState = value; } /// Internal Acessors for InstanceViewEvent - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent[] Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal.InstanceViewEvent { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).Event; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).Event = value; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent[] Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal.InstanceViewEvent { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).Event; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).Event = value; } /// Internal Acessors for InstanceViewPreviousState - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerState Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal.InstanceViewPreviousState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).PreviousStateInternal; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).PreviousStateInternal = value; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerState Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal.InstanceViewPreviousState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).PreviousStateInternal; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).PreviousStateInternal = value; } /// Internal Acessors for InstanceViewRestartCount - int? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal.InstanceViewRestartCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).RestartCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).RestartCount = value; } + int? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal.InstanceViewRestartCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).RestartCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).RestartCount = value; } /// Internal Acessors for PreviousState - string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal.PreviousState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).PreviousState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).PreviousState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal.PreviousState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).PreviousState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).PreviousState = value; } /// Internal Acessors for PreviousStateDetailStatus - string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal.PreviousStateDetailStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).PreviousStateDetailStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).PreviousStateDetailStatus = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal.PreviousStateDetailStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).PreviousStateDetailStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).PreviousStateDetailStatus = value; } /// Internal Acessors for PreviousStateExitCode - int? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal.PreviousStateExitCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).PreviousStateExitCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).PreviousStateExitCode = value; } + int? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal.PreviousStateExitCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).PreviousStateExitCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).PreviousStateExitCode = value; } /// Internal Acessors for PreviousStateFinishTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal.PreviousStateFinishTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).PreviousStateFinishTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).PreviousStateFinishTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal.PreviousStateFinishTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).PreviousStateFinishTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).PreviousStateFinishTime = value; } /// Internal Acessors for PreviousStateStartTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInternal.PreviousStateStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).PreviousStateStartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).PreviousStateStartTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal.PreviousStateStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).PreviousStateStartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).PreviousStateStartTime = value; } + + /// Internal Acessors for SecurityContext + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinition Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal.SecurityContext { get => (this._securityContext = this._securityContext ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.SecurityContextDefinition()); set { {_securityContext = value;} } } + + /// Internal Acessors for SecurityContextCapability + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextCapabilitiesDefinition Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInternal.SecurityContextCapability { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinitionInternal)SecurityContext).Capability; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinitionInternal)SecurityContext).Capability = value; } /// The state of the container instance. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string PreviousState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).PreviousState; } + public string PreviousState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).PreviousState; } /// The human-readable status of the container instance state. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string PreviousStateDetailStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).PreviousStateDetailStatus; } + public string PreviousStateDetailStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).PreviousStateDetailStatus; } /// /// The container instance exit codes correspond to those from the `docker run` command. /// [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public int? PreviousStateExitCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).PreviousStateExitCode; } + public int? PreviousStateExitCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).PreviousStateExitCode; } /// The date-time when the container instance state finished. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public global::System.DateTime? PreviousStateFinishTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).PreviousStateFinishTime; } + public global::System.DateTime? PreviousStateFinishTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).PreviousStateFinishTime; } /// The date-time when the container instance state started. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public global::System.DateTime? PreviousStateStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).PreviousStateStartTime; } + public global::System.DateTime? PreviousStateStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)InstanceView).PreviousStateStartTime; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinition _securityContext; + + /// The container security properties. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinition SecurityContext { get => (this._securityContext = this._securityContext ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.SecurityContextDefinition()); set => this._securityContext = value; } + + /// A boolean value indicating whether the init process can elevate its privileges + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public bool? SecurityContextAllowPrivilegeEscalation { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinitionInternal)SecurityContext).AllowPrivilegeEscalation; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinitionInternal)SecurityContext).AllowPrivilegeEscalation = value ?? default(bool); } + + /// The flag to determine if the container permissions is elevated to Privileged. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public bool? SecurityContextPrivileged { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinitionInternal)SecurityContext).Privileged; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinitionInternal)SecurityContext).Privileged = value ?? default(bool); } + + /// Sets the User GID for the container. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public int? SecurityContextRunAsGroup { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinitionInternal)SecurityContext).RunAsGroup; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinitionInternal)SecurityContext).RunAsGroup = value ?? default(int); } + + /// Sets the User UID for the container. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public int? SecurityContextRunAsUser { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinitionInternal)SecurityContext).RunAsUser; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinitionInternal)SecurityContext).RunAsUser = value ?? default(int); } + + /// + /// a base64 encoded string containing the contents of the JSON in the seccomp profile + /// + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public string SecurityContextSeccompProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinitionInternal)SecurityContext).SeccompProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinitionInternal)SecurityContext).SeccompProfile = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeMount[] _volumeMount; + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMount[] _volumeMount; /// The volume mounts available to the init container. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeMount[] VolumeMount { get => this._volumeMount; set => this._volumeMount = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMount[] VolumeMount { get => this._volumeMount; set => this._volumeMount = value; } /// Creates an new instance. public InitContainerPropertiesDefinition() @@ -155,6 +198,22 @@ public InitContainerPropertiesDefinition() public partial interface IInitContainerPropertiesDefinition : Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IJsonSerializable { + /// The capabilities to add to the container. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The capabilities to add to the container.", + SerializedName = @"add", + PossibleTypes = new [] { typeof(string) })] + string[] CapabilityAdd { get; set; } + /// The capabilities to drop from the container. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The capabilities to drop from the container.", + SerializedName = @"drop", + PossibleTypes = new [] { typeof(string) })] + string[] CapabilityDrop { get; set; } /// The command to execute within the init container in exec form. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = false, @@ -211,8 +270,8 @@ public partial interface IInitContainerPropertiesDefinition : ReadOnly = false, Description = @"The environment variables to set in the init container.", SerializedName = @"environmentVariables", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEnvironmentVariable) })] - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEnvironmentVariable[] EnvironmentVariable { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariable) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariable[] EnvironmentVariable { get; set; } /// The image of the init container. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = false, @@ -227,8 +286,8 @@ public partial interface IInitContainerPropertiesDefinition : ReadOnly = true, Description = @"The events of the init container.", SerializedName = @"events", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent) })] - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent[] InstanceViewEvent { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent[] InstanceViewEvent { get; } /// The number of times that the init container has been restarted. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = false, @@ -279,20 +338,66 @@ public partial interface IInitContainerPropertiesDefinition : SerializedName = @"startTime", PossibleTypes = new [] { typeof(global::System.DateTime) })] global::System.DateTime? PreviousStateStartTime { get; } + /// A boolean value indicating whether the init process can elevate its privileges + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A boolean value indicating whether the init process can elevate its privileges", + SerializedName = @"allowPrivilegeEscalation", + PossibleTypes = new [] { typeof(bool) })] + bool? SecurityContextAllowPrivilegeEscalation { get; set; } + /// The flag to determine if the container permissions is elevated to Privileged. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The flag to determine if the container permissions is elevated to Privileged.", + SerializedName = @"privileged", + PossibleTypes = new [] { typeof(bool) })] + bool? SecurityContextPrivileged { get; set; } + /// Sets the User GID for the container. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Sets the User GID for the container.", + SerializedName = @"runAsGroup", + PossibleTypes = new [] { typeof(int) })] + int? SecurityContextRunAsGroup { get; set; } + /// Sets the User UID for the container. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Sets the User UID for the container.", + SerializedName = @"runAsUser", + PossibleTypes = new [] { typeof(int) })] + int? SecurityContextRunAsUser { get; set; } + /// + /// a base64 encoded string containing the contents of the JSON in the seccomp profile + /// + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"a base64 encoded string containing the contents of the JSON in the seccomp profile", + SerializedName = @"seccompProfile", + PossibleTypes = new [] { typeof(string) })] + string SecurityContextSeccompProfile { get; set; } /// The volume mounts available to the init container. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = false, ReadOnly = false, Description = @"The volume mounts available to the init container.", SerializedName = @"volumeMounts", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeMount) })] - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeMount[] VolumeMount { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMount) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMount[] VolumeMount { get; set; } } /// The init container definition properties. internal partial interface IInitContainerPropertiesDefinitionInternal { + /// The capabilities to add to the container. + string[] CapabilityAdd { get; set; } + /// The capabilities to drop from the container. + string[] CapabilityDrop { get; set; } /// The command to execute within the init container in exec form. string[] Command { get; set; } /// The state of the container instance. @@ -308,17 +413,17 @@ internal partial interface IInitContainerPropertiesDefinitionInternal /// The date-time when the container instance state started. global::System.DateTime? CurrentStateStartTime { get; set; } /// The environment variables to set in the init container. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEnvironmentVariable[] EnvironmentVariable { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariable[] EnvironmentVariable { get; set; } /// The image of the init container. string Image { get; set; } /// The instance view of the init container. Only valid in response. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceView InstanceView { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceView InstanceView { get; set; } /// The current state of the init container. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerState InstanceViewCurrentState { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerState InstanceViewCurrentState { get; set; } /// The events of the init container. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent[] InstanceViewEvent { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent[] InstanceViewEvent { get; set; } /// The previous state of the init container. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerState InstanceViewPreviousState { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerState InstanceViewPreviousState { get; set; } /// The number of times that the init container has been restarted. int? InstanceViewRestartCount { get; set; } /// The state of the container instance. @@ -333,8 +438,24 @@ internal partial interface IInitContainerPropertiesDefinitionInternal global::System.DateTime? PreviousStateFinishTime { get; set; } /// The date-time when the container instance state started. global::System.DateTime? PreviousStateStartTime { get; set; } + /// The container security properties. + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinition SecurityContext { get; set; } + /// A boolean value indicating whether the init process can elevate its privileges + bool? SecurityContextAllowPrivilegeEscalation { get; set; } + /// The capabilities to add or drop from a container. + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextCapabilitiesDefinition SecurityContextCapability { get; set; } + /// The flag to determine if the container permissions is elevated to Privileged. + bool? SecurityContextPrivileged { get; set; } + /// Sets the User GID for the container. + int? SecurityContextRunAsGroup { get; set; } + /// Sets the User UID for the container. + int? SecurityContextRunAsUser { get; set; } + /// + /// a base64 encoded string containing the contents of the JSON in the seccomp profile + /// + string SecurityContextSeccompProfile { get; set; } /// The volume mounts available to the init container. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeMount[] VolumeMount { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMount[] VolumeMount { get; set; } } } \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/InitContainerPropertiesDefinition.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/InitContainerPropertiesDefinition.json.cs similarity index 89% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/InitContainerPropertiesDefinition.json.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/InitContainerPropertiesDefinition.json.cs index 2496a6d0f0b4..c7235df1f0b8 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/InitContainerPropertiesDefinition.json.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/InitContainerPropertiesDefinition.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InitContainerPropertiesDefinition partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinition. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinition. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinition. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinition. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinition FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinition FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new InitContainerPropertiesDefinition(json) : null; } @@ -77,11 +77,12 @@ internal InitContainerPropertiesDefinition(Microsoft.Azure.PowerShell.Cmdlets.Co { return; } - {_instanceView = If( json?.PropertyT("instanceView"), out var __jsonInstanceView) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.InitContainerPropertiesDefinitionInstanceView.FromJson(__jsonInstanceView) : InstanceView;} + {_instanceView = If( json?.PropertyT("instanceView"), out var __jsonInstanceView) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.InitContainerPropertiesDefinitionInstanceView.FromJson(__jsonInstanceView) : InstanceView;} + {_securityContext = If( json?.PropertyT("securityContext"), out var __jsonSecurityContext) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.SecurityContextDefinition.FromJson(__jsonSecurityContext) : SecurityContext;} {_image = If( json?.PropertyT("image"), out var __jsonImage) ? (string)__jsonImage : (string)Image;} {_command = If( json?.PropertyT("command"), out var __jsonCommand) ? If( __jsonCommand as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : Command;} - {_environmentVariable = If( json?.PropertyT("environmentVariables"), out var __jsonEnvironmentVariables) ? If( __jsonEnvironmentVariables as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEnvironmentVariable) (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.EnvironmentVariable.FromJson(__p) )) ))() : null : EnvironmentVariable;} - {_volumeMount = If( json?.PropertyT("volumeMounts"), out var __jsonVolumeMounts) ? If( __jsonVolumeMounts as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonArray, out var __l) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__l, (__k)=>(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeMount) (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.VolumeMount.FromJson(__k) )) ))() : null : VolumeMount;} + {_environmentVariable = If( json?.PropertyT("environmentVariables"), out var __jsonEnvironmentVariables) ? If( __jsonEnvironmentVariables as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariable) (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.EnvironmentVariable.FromJson(__p) )) ))() : null : EnvironmentVariable;} + {_volumeMount = If( json?.PropertyT("volumeMounts"), out var __jsonVolumeMounts) ? If( __jsonVolumeMounts as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonArray, out var __l) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__l, (__k)=>(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMount) (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.VolumeMount.FromJson(__k) )) ))() : null : VolumeMount;} AfterFromJson(json); } @@ -108,6 +109,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNod { AddIf( null != this._instanceView ? (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode) this._instanceView.ToJson(null,serializationMode) : null, "instanceView" ,container.Add ); } + AddIf( null != this._securityContext ? (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode) this._securityContext.ToJson(null,serializationMode) : null, "securityContext" ,container.Add ); AddIf( null != (((object)this._image)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonString(this._image.ToString()) : null, "image" ,container.Add ); if (null != this._command) { diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/InitContainerPropertiesDefinitionInstanceView.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/InitContainerPropertiesDefinitionInstanceView.PowerShell.cs similarity index 80% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/InitContainerPropertiesDefinitionInstanceView.PowerShell.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/InitContainerPropertiesDefinitionInstanceView.PowerShell.cs index 02a0ac1e85d6..50e6453d204d 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/InitContainerPropertiesDefinitionInstanceView.PowerShell.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/InitContainerPropertiesDefinitionInstanceView.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -63,29 +63,29 @@ public partial class InitContainerPropertiesDefinitionInstanceView partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceView DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceView DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new InitContainerPropertiesDefinitionInstanceView(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceView DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceView DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new InitContainerPropertiesDefinitionInstanceView(content); } @@ -98,10 +98,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api202 /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceView FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceView FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -116,65 +116,65 @@ internal InitContainerPropertiesDefinitionInstanceView(global::System.Collection // actually deserialize if (content.Contains("CurrentState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).CurrentState = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerState) content.GetValueForProperty("CurrentState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).CurrentState, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerStateTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).CurrentState = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerState) content.GetValueForProperty("CurrentState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).CurrentState, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerStateTypeConverter.ConvertFrom); } if (content.Contains("PreviousStateInternal")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).PreviousStateInternal = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerState) content.GetValueForProperty("PreviousStateInternal",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).PreviousStateInternal, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerStateTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).PreviousStateInternal = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerState) content.GetValueForProperty("PreviousStateInternal",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).PreviousStateInternal, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerStateTypeConverter.ConvertFrom); } if (content.Contains("RestartCount")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).RestartCount = (int?) content.GetValueForProperty("RestartCount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).RestartCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).RestartCount = (int?) content.GetValueForProperty("RestartCount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).RestartCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("Event")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).Event = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent[]) content.GetValueForProperty("Event",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).Event, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.EventTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).Event = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent[]) content.GetValueForProperty("Event",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).Event, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.EventTypeConverter.ConvertFrom)); } if (content.Contains("CurrentStateState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).CurrentStateState = (string) content.GetValueForProperty("CurrentStateState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).CurrentStateState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).CurrentStateState = (string) content.GetValueForProperty("CurrentStateState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).CurrentStateState, global::System.Convert.ToString); } if (content.Contains("CurrentStateStartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).CurrentStateStartTime = (global::System.DateTime?) content.GetValueForProperty("CurrentStateStartTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).CurrentStateStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).CurrentStateStartTime = (global::System.DateTime?) content.GetValueForProperty("CurrentStateStartTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).CurrentStateStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("CurrentStateExitCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).CurrentStateExitCode = (int?) content.GetValueForProperty("CurrentStateExitCode",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).CurrentStateExitCode, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).CurrentStateExitCode = (int?) content.GetValueForProperty("CurrentStateExitCode",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).CurrentStateExitCode, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("CurrentStateFinishTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).CurrentStateFinishTime = (global::System.DateTime?) content.GetValueForProperty("CurrentStateFinishTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).CurrentStateFinishTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).CurrentStateFinishTime = (global::System.DateTime?) content.GetValueForProperty("CurrentStateFinishTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).CurrentStateFinishTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("CurrentStateDetailStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).CurrentStateDetailStatus = (string) content.GetValueForProperty("CurrentStateDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).CurrentStateDetailStatus, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).CurrentStateDetailStatus = (string) content.GetValueForProperty("CurrentStateDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).CurrentStateDetailStatus, global::System.Convert.ToString); } if (content.Contains("PreviousState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).PreviousState = (string) content.GetValueForProperty("PreviousState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).PreviousState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).PreviousState = (string) content.GetValueForProperty("PreviousState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).PreviousState, global::System.Convert.ToString); } if (content.Contains("PreviousStateStartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).PreviousStateStartTime = (global::System.DateTime?) content.GetValueForProperty("PreviousStateStartTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).PreviousStateStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).PreviousStateStartTime = (global::System.DateTime?) content.GetValueForProperty("PreviousStateStartTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).PreviousStateStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("PreviousStateExitCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).PreviousStateExitCode = (int?) content.GetValueForProperty("PreviousStateExitCode",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).PreviousStateExitCode, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).PreviousStateExitCode = (int?) content.GetValueForProperty("PreviousStateExitCode",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).PreviousStateExitCode, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("PreviousStateFinishTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).PreviousStateFinishTime = (global::System.DateTime?) content.GetValueForProperty("PreviousStateFinishTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).PreviousStateFinishTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).PreviousStateFinishTime = (global::System.DateTime?) content.GetValueForProperty("PreviousStateFinishTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).PreviousStateFinishTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("PreviousStateDetailStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).PreviousStateDetailStatus = (string) content.GetValueForProperty("PreviousStateDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).PreviousStateDetailStatus, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).PreviousStateDetailStatus = (string) content.GetValueForProperty("PreviousStateDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).PreviousStateDetailStatus, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -189,59 +189,59 @@ internal InitContainerPropertiesDefinitionInstanceView(global::System.Management // actually deserialize if (content.Contains("CurrentState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).CurrentState = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerState) content.GetValueForProperty("CurrentState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).CurrentState, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerStateTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).CurrentState = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerState) content.GetValueForProperty("CurrentState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).CurrentState, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerStateTypeConverter.ConvertFrom); } if (content.Contains("PreviousStateInternal")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).PreviousStateInternal = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerState) content.GetValueForProperty("PreviousStateInternal",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).PreviousStateInternal, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerStateTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).PreviousStateInternal = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerState) content.GetValueForProperty("PreviousStateInternal",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).PreviousStateInternal, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerStateTypeConverter.ConvertFrom); } if (content.Contains("RestartCount")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).RestartCount = (int?) content.GetValueForProperty("RestartCount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).RestartCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).RestartCount = (int?) content.GetValueForProperty("RestartCount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).RestartCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("Event")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).Event = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent[]) content.GetValueForProperty("Event",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).Event, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.EventTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).Event = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent[]) content.GetValueForProperty("Event",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).Event, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.EventTypeConverter.ConvertFrom)); } if (content.Contains("CurrentStateState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).CurrentStateState = (string) content.GetValueForProperty("CurrentStateState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).CurrentStateState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).CurrentStateState = (string) content.GetValueForProperty("CurrentStateState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).CurrentStateState, global::System.Convert.ToString); } if (content.Contains("CurrentStateStartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).CurrentStateStartTime = (global::System.DateTime?) content.GetValueForProperty("CurrentStateStartTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).CurrentStateStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).CurrentStateStartTime = (global::System.DateTime?) content.GetValueForProperty("CurrentStateStartTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).CurrentStateStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("CurrentStateExitCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).CurrentStateExitCode = (int?) content.GetValueForProperty("CurrentStateExitCode",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).CurrentStateExitCode, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).CurrentStateExitCode = (int?) content.GetValueForProperty("CurrentStateExitCode",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).CurrentStateExitCode, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("CurrentStateFinishTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).CurrentStateFinishTime = (global::System.DateTime?) content.GetValueForProperty("CurrentStateFinishTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).CurrentStateFinishTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).CurrentStateFinishTime = (global::System.DateTime?) content.GetValueForProperty("CurrentStateFinishTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).CurrentStateFinishTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("CurrentStateDetailStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).CurrentStateDetailStatus = (string) content.GetValueForProperty("CurrentStateDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).CurrentStateDetailStatus, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).CurrentStateDetailStatus = (string) content.GetValueForProperty("CurrentStateDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).CurrentStateDetailStatus, global::System.Convert.ToString); } if (content.Contains("PreviousState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).PreviousState = (string) content.GetValueForProperty("PreviousState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).PreviousState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).PreviousState = (string) content.GetValueForProperty("PreviousState",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).PreviousState, global::System.Convert.ToString); } if (content.Contains("PreviousStateStartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).PreviousStateStartTime = (global::System.DateTime?) content.GetValueForProperty("PreviousStateStartTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).PreviousStateStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).PreviousStateStartTime = (global::System.DateTime?) content.GetValueForProperty("PreviousStateStartTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).PreviousStateStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("PreviousStateExitCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).PreviousStateExitCode = (int?) content.GetValueForProperty("PreviousStateExitCode",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).PreviousStateExitCode, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).PreviousStateExitCode = (int?) content.GetValueForProperty("PreviousStateExitCode",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).PreviousStateExitCode, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("PreviousStateFinishTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).PreviousStateFinishTime = (global::System.DateTime?) content.GetValueForProperty("PreviousStateFinishTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).PreviousStateFinishTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).PreviousStateFinishTime = (global::System.DateTime?) content.GetValueForProperty("PreviousStateFinishTime",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).PreviousStateFinishTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("PreviousStateDetailStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).PreviousStateDetailStatus = (string) content.GetValueForProperty("PreviousStateDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).PreviousStateDetailStatus, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).PreviousStateDetailStatus = (string) content.GetValueForProperty("PreviousStateDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal)this).PreviousStateDetailStatus, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/InitContainerPropertiesDefinitionInstanceView.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/InitContainerPropertiesDefinitionInstanceView.TypeConverter.cs similarity index 98% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/InitContainerPropertiesDefinitionInstanceView.TypeConverter.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/InitContainerPropertiesDefinitionInstanceView.TypeConverter.cs index a9e86f7f9129..9b5bac995c6c 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/InitContainerPropertiesDefinitionInstanceView.TypeConverter.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/InitContainerPropertiesDefinitionInstanceView.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -110,14 +110,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceView ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceView ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceView).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceView).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/InitContainerPropertiesDefinitionInstanceView.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/InitContainerPropertiesDefinitionInstanceView.cs similarity index 82% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/InitContainerPropertiesDefinitionInstanceView.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/InitContainerPropertiesDefinitionInstanceView.cs index 0b8456674d41..3a7980886b7b 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/InitContainerPropertiesDefinitionInstanceView.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/InitContainerPropertiesDefinitionInstanceView.cs @@ -3,122 +3,122 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; /// The instance view of the init container. Only valid in response. public partial class InitContainerPropertiesDefinitionInstanceView : - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceView, - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceView, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerState _currentState; + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerState _currentState; /// The current state of the init container. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerState CurrentState { get => (this._currentState = this._currentState ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerState()); } + internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerState CurrentState { get => (this._currentState = this._currentState ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerState()); } /// The human-readable status of the container instance state. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string CurrentStateDetailStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)CurrentState).DetailStatus; } + public string CurrentStateDetailStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)CurrentState).DetailStatus; } /// /// The container instance exit codes correspond to those from the `docker run` command. /// [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public int? CurrentStateExitCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)CurrentState).ExitCode; } + public int? CurrentStateExitCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)CurrentState).ExitCode; } /// The date-time when the container instance state finished. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public global::System.DateTime? CurrentStateFinishTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)CurrentState).FinishTime; } + public global::System.DateTime? CurrentStateFinishTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)CurrentState).FinishTime; } /// The date-time when the container instance state started. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public global::System.DateTime? CurrentStateStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)CurrentState).StartTime; } + public global::System.DateTime? CurrentStateStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)CurrentState).StartTime; } /// The state of the container instance. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string CurrentStateState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)CurrentState).State; } + public string CurrentStateState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)CurrentState).State; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent[] _event; + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent[] _event; /// The events of the init container. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent[] Event { get => this._event; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent[] Event { get => this._event; } /// Internal Acessors for CurrentState - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerState Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal.CurrentState { get => (this._currentState = this._currentState ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerState()); set { {_currentState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerState Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal.CurrentState { get => (this._currentState = this._currentState ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerState()); set { {_currentState = value;} } } /// Internal Acessors for CurrentStateDetailStatus - string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal.CurrentStateDetailStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)CurrentState).DetailStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)CurrentState).DetailStatus = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal.CurrentStateDetailStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)CurrentState).DetailStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)CurrentState).DetailStatus = value; } /// Internal Acessors for CurrentStateExitCode - int? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal.CurrentStateExitCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)CurrentState).ExitCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)CurrentState).ExitCode = value; } + int? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal.CurrentStateExitCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)CurrentState).ExitCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)CurrentState).ExitCode = value; } /// Internal Acessors for CurrentStateFinishTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal.CurrentStateFinishTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)CurrentState).FinishTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)CurrentState).FinishTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal.CurrentStateFinishTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)CurrentState).FinishTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)CurrentState).FinishTime = value; } /// Internal Acessors for CurrentStateStartTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal.CurrentStateStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)CurrentState).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)CurrentState).StartTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal.CurrentStateStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)CurrentState).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)CurrentState).StartTime = value; } /// Internal Acessors for CurrentStateState - string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal.CurrentStateState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)CurrentState).State; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)CurrentState).State = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal.CurrentStateState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)CurrentState).State; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)CurrentState).State = value; } /// Internal Acessors for Event - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent[] Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal.Event { get => this._event; set { {_event = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent[] Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal.Event { get => this._event; set { {_event = value;} } } /// Internal Acessors for PreviousState - string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal.PreviousState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)PreviousStateInternal).State; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)PreviousStateInternal).State = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal.PreviousState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)PreviousStateInternal).State; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)PreviousStateInternal).State = value; } /// Internal Acessors for PreviousStateDetailStatus - string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal.PreviousStateDetailStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)PreviousStateInternal).DetailStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)PreviousStateInternal).DetailStatus = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal.PreviousStateDetailStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)PreviousStateInternal).DetailStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)PreviousStateInternal).DetailStatus = value; } /// Internal Acessors for PreviousStateExitCode - int? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal.PreviousStateExitCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)PreviousStateInternal).ExitCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)PreviousStateInternal).ExitCode = value; } + int? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal.PreviousStateExitCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)PreviousStateInternal).ExitCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)PreviousStateInternal).ExitCode = value; } /// Internal Acessors for PreviousStateFinishTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal.PreviousStateFinishTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)PreviousStateInternal).FinishTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)PreviousStateInternal).FinishTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal.PreviousStateFinishTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)PreviousStateInternal).FinishTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)PreviousStateInternal).FinishTime = value; } /// Internal Acessors for PreviousStateInternal - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerState Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal.PreviousStateInternal { get => (this._previousStateInternal = this._previousStateInternal ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerState()); set { {_previousStateInternal = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerState Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal.PreviousStateInternal { get => (this._previousStateInternal = this._previousStateInternal ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerState()); set { {_previousStateInternal = value;} } } /// Internal Acessors for PreviousStateStartTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal.PreviousStateStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)PreviousStateInternal).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)PreviousStateInternal).StartTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal.PreviousStateStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)PreviousStateInternal).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)PreviousStateInternal).StartTime = value; } /// Internal Acessors for RestartCount - int? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceViewInternal.RestartCount { get => this._restartCount; set { {_restartCount = value;} } } + int? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceViewInternal.RestartCount { get => this._restartCount; set { {_restartCount = value;} } } /// The state of the container instance. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string PreviousState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)PreviousStateInternal).State; } + public string PreviousState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)PreviousStateInternal).State; } /// The human-readable status of the container instance state. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string PreviousStateDetailStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)PreviousStateInternal).DetailStatus; } + public string PreviousStateDetailStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)PreviousStateInternal).DetailStatus; } /// /// The container instance exit codes correspond to those from the `docker run` command. /// [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public int? PreviousStateExitCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)PreviousStateInternal).ExitCode; } + public int? PreviousStateExitCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)PreviousStateInternal).ExitCode; } /// The date-time when the container instance state finished. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public global::System.DateTime? PreviousStateFinishTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)PreviousStateInternal).FinishTime; } + public global::System.DateTime? PreviousStateFinishTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)PreviousStateInternal).FinishTime; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerState _previousStateInternal; + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerState _previousStateInternal; /// The previous state of the init container. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerState PreviousStateInternal { get => (this._previousStateInternal = this._previousStateInternal ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerState()); } + internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerState PreviousStateInternal { get => (this._previousStateInternal = this._previousStateInternal ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerState()); } /// The date-time when the container instance state started. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public global::System.DateTime? PreviousStateStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerStateInternal)PreviousStateInternal).StartTime; } + public global::System.DateTime? PreviousStateStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerStateInternal)PreviousStateInternal).StartTime; } /// Backing field for property. private int? _restartCount; @@ -187,8 +187,8 @@ public partial interface IInitContainerPropertiesDefinitionInstanceView : ReadOnly = true, Description = @"The events of the init container.", SerializedName = @"events", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent) })] - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent[] Event { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent[] Event { get; } /// The state of the container instance. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = false, @@ -246,7 +246,7 @@ internal partial interface IInitContainerPropertiesDefinitionInstanceViewInterna { /// The current state of the init container. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerState CurrentState { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerState CurrentState { get; set; } /// The human-readable status of the container instance state. string CurrentStateDetailStatus { get; set; } /// @@ -260,7 +260,7 @@ internal partial interface IInitContainerPropertiesDefinitionInstanceViewInterna /// The state of the container instance. string CurrentStateState { get; set; } /// The events of the init container. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent[] Event { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent[] Event { get; set; } /// The state of the container instance. string PreviousState { get; set; } /// The human-readable status of the container instance state. @@ -272,7 +272,7 @@ internal partial interface IInitContainerPropertiesDefinitionInstanceViewInterna /// The date-time when the container instance state finished. global::System.DateTime? PreviousStateFinishTime { get; set; } /// The previous state of the init container. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerState PreviousStateInternal { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerState PreviousStateInternal { get; set; } /// The date-time when the container instance state started. global::System.DateTime? PreviousStateStartTime { get; set; } /// The number of times that the init container has been restarted. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/InitContainerPropertiesDefinitionInstanceView.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/InitContainerPropertiesDefinitionInstanceView.json.cs similarity index 94% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/InitContainerPropertiesDefinitionInstanceView.json.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/InitContainerPropertiesDefinitionInstanceView.json.cs index 8cff5203efd0..462ad63fae74 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/InitContainerPropertiesDefinitionInstanceView.json.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/InitContainerPropertiesDefinitionInstanceView.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InitContainerPropertiesDefinitionInstanceView partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceView. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceView. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceView. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceView. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerPropertiesDefinitionInstanceView FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerPropertiesDefinitionInstanceView FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new InitContainerPropertiesDefinitionInstanceView(json) : null; } @@ -78,10 +78,10 @@ internal InitContainerPropertiesDefinitionInstanceView(Microsoft.Azure.PowerShel { return; } - {_currentState = If( json?.PropertyT("currentState"), out var __jsonCurrentState) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerState.FromJson(__jsonCurrentState) : CurrentState;} - {_previousStateInternal = If( json?.PropertyT("previousState"), out var __jsonPreviousState) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerState.FromJson(__jsonPreviousState) : PreviousStateInternal;} + {_currentState = If( json?.PropertyT("currentState"), out var __jsonCurrentState) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerState.FromJson(__jsonCurrentState) : CurrentState;} + {_previousStateInternal = If( json?.PropertyT("previousState"), out var __jsonPreviousState) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerState.FromJson(__jsonPreviousState) : PreviousStateInternal;} {_restartCount = If( json?.PropertyT("restartCount"), out var __jsonRestartCount) ? (int?)__jsonRestartCount : RestartCount;} - {_event = If( json?.PropertyT("events"), out var __jsonEvents) ? If( __jsonEvents as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEvent) (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.Event.FromJson(__u) )) ))() : null : Event;} + {_event = If( json?.PropertyT("events"), out var __jsonEvents) ? If( __jsonEvents as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEvent) (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Event.FromJson(__u) )) ))() : null : Event;} AfterFromJson(json); } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/LogAnalytics.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/LogAnalytics.PowerShell.cs similarity index 84% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/LogAnalytics.PowerShell.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/LogAnalytics.PowerShell.cs index 26db262b411f..10a475c622a2 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/LogAnalytics.PowerShell.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/LogAnalytics.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -63,29 +63,29 @@ public partial class LogAnalytics partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalytics DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalytics DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new LogAnalytics(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalytics DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalytics DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new LogAnalytics(content); } @@ -95,10 +95,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api202 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalytics FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalytics FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -113,29 +113,29 @@ internal LogAnalytics(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("WorkspaceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsInternal)this).WorkspaceId = (string) content.GetValueForProperty("WorkspaceId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsInternal)this).WorkspaceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsInternal)this).WorkspaceId = (string) content.GetValueForProperty("WorkspaceId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsInternal)this).WorkspaceId, global::System.Convert.ToString); } if (content.Contains("WorkspaceKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsInternal)this).WorkspaceKey = (string) content.GetValueForProperty("WorkspaceKey",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsInternal)this).WorkspaceKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsInternal)this).WorkspaceKey = (string) content.GetValueForProperty("WorkspaceKey",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsInternal)this).WorkspaceKey, global::System.Convert.ToString); } if (content.Contains("LogType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsInternal)this).LogType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType?) content.GetValueForProperty("LogType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsInternal)this).LogType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsInternal)this).LogType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType?) content.GetValueForProperty("LogType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsInternal)this).LogType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType.CreateFrom); } if (content.Contains("Metadata")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.LogAnalyticsMetadataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.LogAnalyticsMetadataTypeConverter.ConvertFrom); } if (content.Contains("WorkspaceResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsInternal)this).WorkspaceResourceId = (string) content.GetValueForProperty("WorkspaceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsInternal)this).WorkspaceResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsInternal)this).WorkspaceResourceId = (string) content.GetValueForProperty("WorkspaceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsInternal)this).WorkspaceResourceId, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -150,23 +150,23 @@ internal LogAnalytics(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("WorkspaceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsInternal)this).WorkspaceId = (string) content.GetValueForProperty("WorkspaceId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsInternal)this).WorkspaceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsInternal)this).WorkspaceId = (string) content.GetValueForProperty("WorkspaceId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsInternal)this).WorkspaceId, global::System.Convert.ToString); } if (content.Contains("WorkspaceKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsInternal)this).WorkspaceKey = (string) content.GetValueForProperty("WorkspaceKey",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsInternal)this).WorkspaceKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsInternal)this).WorkspaceKey = (string) content.GetValueForProperty("WorkspaceKey",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsInternal)this).WorkspaceKey, global::System.Convert.ToString); } if (content.Contains("LogType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsInternal)this).LogType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType?) content.GetValueForProperty("LogType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsInternal)this).LogType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsInternal)this).LogType = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType?) content.GetValueForProperty("LogType",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsInternal)this).LogType, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType.CreateFrom); } if (content.Contains("Metadata")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.LogAnalyticsMetadataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.LogAnalyticsMetadataTypeConverter.ConvertFrom); } if (content.Contains("WorkspaceResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsInternal)this).WorkspaceResourceId = (string) content.GetValueForProperty("WorkspaceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsInternal)this).WorkspaceResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsInternal)this).WorkspaceResourceId = (string) content.GetValueForProperty("WorkspaceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsInternal)this).WorkspaceResourceId, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/LogAnalytics.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/LogAnalytics.TypeConverter.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/LogAnalytics.TypeConverter.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/LogAnalytics.TypeConverter.cs index 6765c2c6558f..32e8fa537e6b 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/LogAnalytics.TypeConverter.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/LogAnalytics.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalytics ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalytics ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalytics).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalytics).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/LogAnalytics.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/LogAnalytics.cs similarity index 92% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/LogAnalytics.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/LogAnalytics.cs index 6c9363c6c8ce..0de2ae49cbac 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/LogAnalytics.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/LogAnalytics.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; /// Container group log analytics information. public partial class LogAnalytics : - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalytics, - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsInternal + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalytics, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsInternal { /// Backing field for property. @@ -21,11 +21,11 @@ public partial class LogAnalytics : public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType? LogType { get => this._logType; set => this._logType = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsMetadata _metadata; + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsMetadata _metadata; /// Metadata for log analytics. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsMetadata Metadata { get => (this._metadata = this._metadata ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.LogAnalyticsMetadata()); set => this._metadata = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsMetadata Metadata { get => (this._metadata = this._metadata ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.LogAnalyticsMetadata()); set => this._metadata = value; } /// Backing field for property. private string _workspaceId; @@ -72,8 +72,8 @@ public partial interface ILogAnalytics : ReadOnly = false, Description = @"Metadata for log analytics.", SerializedName = @"metadata", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsMetadata) })] - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsMetadata Metadata { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsMetadata) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsMetadata Metadata { get; set; } /// The workspace id for log analytics [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = true, @@ -107,7 +107,7 @@ internal partial interface ILogAnalyticsInternal /// The log type to be used. Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType? LogType { get; set; } /// Metadata for log analytics. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsMetadata Metadata { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsMetadata Metadata { get; set; } /// The workspace id for log analytics string WorkspaceId { get; set; } /// The workspace key for log analytics diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/LogAnalytics.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/LogAnalytics.json.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/LogAnalytics.json.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/LogAnalytics.json.cs index 4995ebba9e3d..739e575ef304 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/LogAnalytics.json.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/LogAnalytics.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class LogAnalytics partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalytics. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalytics. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalytics. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalytics. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalytics FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalytics FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new LogAnalytics(json) : null; } @@ -80,7 +80,7 @@ internal LogAnalytics(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runti {_workspaceId = If( json?.PropertyT("workspaceId"), out var __jsonWorkspaceId) ? (string)__jsonWorkspaceId : (string)WorkspaceId;} {_workspaceKey = If( json?.PropertyT("workspaceKey"), out var __jsonWorkspaceKey) ? (string)__jsonWorkspaceKey : (string)WorkspaceKey;} {_logType = If( json?.PropertyT("logType"), out var __jsonLogType) ? (string)__jsonLogType : (string)LogType;} - {_metadata = If( json?.PropertyT("metadata"), out var __jsonMetadata) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.LogAnalyticsMetadata.FromJson(__jsonMetadata) : Metadata;} + {_metadata = If( json?.PropertyT("metadata"), out var __jsonMetadata) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.LogAnalyticsMetadata.FromJson(__jsonMetadata) : Metadata;} {_workspaceResourceId = If( json?.PropertyT("workspaceResourceId"), out var __jsonWorkspaceResourceId) ? (string)__jsonWorkspaceResourceId : (string)WorkspaceResourceId;} AfterFromJson(json); } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/LogAnalyticsMetadata.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/LogAnalyticsMetadata.PowerShell.cs similarity index 93% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/LogAnalyticsMetadata.PowerShell.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/LogAnalyticsMetadata.PowerShell.cs index 7c8c55cc14c9..76d3138b8ced 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/LogAnalyticsMetadata.PowerShell.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/LogAnalyticsMetadata.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -63,29 +63,29 @@ public partial class LogAnalyticsMetadata partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsMetadata DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsMetadata DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new LogAnalyticsMetadata(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsMetadata DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsMetadata DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new LogAnalyticsMetadata(content); } @@ -95,10 +95,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api202 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsMetadata FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsMetadata FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -117,7 +117,7 @@ internal LogAnalyticsMetadata(global::System.Collections.IDictionary content) } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/LogAnalyticsMetadata.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/LogAnalyticsMetadata.TypeConverter.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/LogAnalyticsMetadata.TypeConverter.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/LogAnalyticsMetadata.TypeConverter.cs index 02af2367b8a8..b2606f5b48f5 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/LogAnalyticsMetadata.TypeConverter.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/LogAnalyticsMetadata.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsMetadata ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsMetadata ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsMetadata).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsMetadata).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/LogAnalyticsMetadata.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/LogAnalyticsMetadata.cs similarity index 90% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/LogAnalyticsMetadata.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/LogAnalyticsMetadata.cs index 2946fda03114..adfe07d82895 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/LogAnalyticsMetadata.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/LogAnalyticsMetadata.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; /// Metadata for log analytics. public partial class LogAnalyticsMetadata : - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsMetadata, - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsMetadataInternal + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsMetadata, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsMetadataInternal { /// Creates an new instance. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/LogAnalyticsMetadata.dictionary.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/LogAnalyticsMetadata.dictionary.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/LogAnalyticsMetadata.dictionary.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/LogAnalyticsMetadata.dictionary.cs index 9824f83cdc18..1f7a9542e475 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/LogAnalyticsMetadata.dictionary.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/LogAnalyticsMetadata.dictionary.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.LogAnalyticsMetadata source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.LogAnalyticsMetadata source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/LogAnalyticsMetadata.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/LogAnalyticsMetadata.json.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/LogAnalyticsMetadata.json.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/LogAnalyticsMetadata.json.cs index 3c531b9b79e6..6f8c6268476c 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/LogAnalyticsMetadata.json.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/LogAnalyticsMetadata.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class LogAnalyticsMetadata partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsMetadata. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsMetadata. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsMetadata. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsMetadata. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsMetadata FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsMetadata FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new LogAnalyticsMetadata(json) : null; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Logs.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Logs.PowerShell.cs similarity index 90% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Logs.PowerShell.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Logs.PowerShell.cs index 69d67e34ab56..e6fab9af7a27 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Logs.PowerShell.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Logs.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -63,27 +63,27 @@ public partial class Logs partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogs DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogs DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new Logs(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogs DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogs DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new Logs(content); } @@ -93,10 +93,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api202 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogs FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogs FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -111,13 +111,13 @@ internal Logs(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Content")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogsInternal)this).Content = (string) content.GetValueForProperty("Content",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogsInternal)this).Content, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogsInternal)this).Content = (string) content.GetValueForProperty("Content",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogsInternal)this).Content, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -132,7 +132,7 @@ internal Logs(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Content")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogsInternal)this).Content = (string) content.GetValueForProperty("Content",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogsInternal)this).Content, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogsInternal)this).Content = (string) content.GetValueForProperty("Content",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogsInternal)this).Content, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Logs.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Logs.TypeConverter.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Logs.TypeConverter.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Logs.TypeConverter.cs index bd0c567e2192..3f1ecbe8e0bd 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Logs.TypeConverter.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Logs.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogs ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogs ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogs).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogs).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Logs.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Logs.cs similarity index 95% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Logs.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Logs.cs index f221bc5ec9ca..9635ce5439d7 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Logs.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Logs.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; /// The logs. public partial class Logs : - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogs, - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogsInternal + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogs, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogsInternal { /// Backing field for property. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Logs.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Logs.json.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Logs.json.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Logs.json.cs index bd87ba9d7b59..df9da94c5b43 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Logs.json.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Logs.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class Logs partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogs. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogs. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogs. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogs. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogs FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogs FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new Logs(json) : null; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Operation.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Operation.PowerShell.cs similarity index 82% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Operation.PowerShell.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Operation.PowerShell.cs index 50f116638c91..663617f22335 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Operation.PowerShell.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Operation.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -63,27 +63,27 @@ public partial class Operation partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperation DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperation DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new Operation(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperation DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperation DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new Operation(content); } @@ -93,10 +93,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api202 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperation FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperation FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -111,41 +111,41 @@ internal Operation(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Display")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationDisplay) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.OperationDisplayTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationDisplay) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.OperationDisplayTypeConverter.ConvertFrom); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IAny) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.AnyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IAny) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.AnyTypeConverter.ConvertFrom); } if (content.Contains("Origin")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationInternal)this).Origin = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerInstanceOperationsOrigin?) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationInternal)this).Origin, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerInstanceOperationsOrigin.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationInternal)this).Origin = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerInstanceOperationsOrigin?) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationInternal)this).Origin, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerInstanceOperationsOrigin.CreateFrom); } if (content.Contains("DisplayProvider")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationInternal)this).DisplayProvider, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationInternal)this).DisplayProvider, global::System.Convert.ToString); } if (content.Contains("DisplayResource")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationInternal)this).DisplayResource, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationInternal)this).DisplayResource, global::System.Convert.ToString); } if (content.Contains("DisplayOperation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationInternal)this).DisplayOperation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationInternal)this).DisplayOperation, global::System.Convert.ToString); } if (content.Contains("DisplayDescription")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationInternal)this).DisplayDescription, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationInternal)this).DisplayDescription, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -160,35 +160,35 @@ internal Operation(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Display")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationDisplay) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.OperationDisplayTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationDisplay) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.OperationDisplayTypeConverter.ConvertFrom); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IAny) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.AnyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IAny) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.AnyTypeConverter.ConvertFrom); } if (content.Contains("Origin")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationInternal)this).Origin = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerInstanceOperationsOrigin?) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationInternal)this).Origin, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerInstanceOperationsOrigin.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationInternal)this).Origin = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerInstanceOperationsOrigin?) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationInternal)this).Origin, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerInstanceOperationsOrigin.CreateFrom); } if (content.Contains("DisplayProvider")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationInternal)this).DisplayProvider, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationInternal)this).DisplayProvider, global::System.Convert.ToString); } if (content.Contains("DisplayResource")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationInternal)this).DisplayResource, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationInternal)this).DisplayResource, global::System.Convert.ToString); } if (content.Contains("DisplayOperation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationInternal)this).DisplayOperation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationInternal)this).DisplayOperation, global::System.Convert.ToString); } if (content.Contains("DisplayDescription")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationInternal)this).DisplayDescription, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationInternal)this).DisplayDescription, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Operation.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Operation.TypeConverter.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Operation.TypeConverter.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Operation.TypeConverter.cs index 0d64af671b10..ee6595aeffe1 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Operation.TypeConverter.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Operation.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperation ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperation ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperation).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperation).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Operation.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Operation.cs similarity index 89% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Operation.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Operation.cs index 52c887c54a46..baefdd82a8ff 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Operation.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Operation.cs @@ -3,41 +3,41 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; /// An operation for Azure Container Instance service. public partial class Operation : - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperation, - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationInternal + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperation, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationDisplay _display; + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationDisplay _display; /// The display information of the operation. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationDisplay Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.OperationDisplay()); set => this._display = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationDisplay Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.OperationDisplay()); set => this._display = value; } /// The description of the operation. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationDisplayInternal)Display).Description = value ?? null; } + public string DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationDisplayInternal)Display).Description = value ?? null; } /// The friendly name of the operation. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationDisplayInternal)Display).Operation = value ?? null; } + public string DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationDisplayInternal)Display).Operation = value ?? null; } /// The name of the provider of the operation. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationDisplayInternal)Display).Provider = value ?? null; } + public string DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationDisplayInternal)Display).Provider = value ?? null; } /// The name of the resource type of the operation. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationDisplayInternal)Display).Resource = value ?? null; } + public string DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationDisplayInternal)Display).Resource = value ?? null; } /// Internal Acessors for Display - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationDisplay Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationInternal.Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.OperationDisplay()); set { {_display = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationDisplay Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationInternal.Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.OperationDisplay()); set { {_display = value;} } } /// Backing field for property. private string _name; @@ -133,7 +133,7 @@ internal partial interface IOperationInternal { /// The display information of the operation. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationDisplay Display { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationDisplay Display { get; set; } /// The description of the operation. string DisplayDescription { get; set; } /// The friendly name of the operation. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Operation.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Operation.json.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Operation.json.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Operation.json.cs index 341f571789b5..be4cfaddd83b 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Operation.json.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Operation.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class Operation partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperation. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperation. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperation. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperation. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperation FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperation FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new Operation(json) : null; } @@ -77,7 +77,7 @@ internal Operation(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime. { return; } - {_display = If( json?.PropertyT("display"), out var __jsonDisplay) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.OperationDisplay.FromJson(__jsonDisplay) : Display;} + {_display = If( json?.PropertyT("display"), out var __jsonDisplay) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.OperationDisplay.FromJson(__jsonDisplay) : Display;} {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Any.FromJson(__jsonProperties) : Property;} {_origin = If( json?.PropertyT("origin"), out var __jsonOrigin) ? (string)__jsonOrigin : (string)Origin;} diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/OperationDisplay.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/OperationDisplay.PowerShell.cs similarity index 86% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/OperationDisplay.PowerShell.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/OperationDisplay.PowerShell.cs index 99c66ac0f45c..052b25403cf7 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/OperationDisplay.PowerShell.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/OperationDisplay.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -63,29 +63,29 @@ public partial class OperationDisplay partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationDisplay DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationDisplay DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new OperationDisplay(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationDisplay DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationDisplay DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new OperationDisplay(content); } @@ -95,10 +95,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api202 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationDisplay FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationDisplay FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -113,25 +113,25 @@ internal OperationDisplay(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Provider")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationDisplayInternal)this).Provider, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationDisplayInternal)this).Provider, global::System.Convert.ToString); } if (content.Contains("Resource")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationDisplayInternal)this).Resource, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationDisplayInternal)this).Resource, global::System.Convert.ToString); } if (content.Contains("Operation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationDisplayInternal)this).Operation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationDisplayInternal)this).Operation, global::System.Convert.ToString); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationDisplayInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationDisplayInternal)this).Description, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -146,19 +146,19 @@ internal OperationDisplay(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Provider")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationDisplayInternal)this).Provider, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationDisplayInternal)this).Provider, global::System.Convert.ToString); } if (content.Contains("Resource")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationDisplayInternal)this).Resource, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationDisplayInternal)this).Resource, global::System.Convert.ToString); } if (content.Contains("Operation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationDisplayInternal)this).Operation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationDisplayInternal)this).Operation, global::System.Convert.ToString); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationDisplayInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationDisplayInternal)this).Description, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/OperationDisplay.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/OperationDisplay.TypeConverter.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/OperationDisplay.TypeConverter.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/OperationDisplay.TypeConverter.cs index c19708e0aa94..371d70ceaa6f 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/OperationDisplay.TypeConverter.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/OperationDisplay.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationDisplay ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationDisplay ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationDisplay).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationDisplay).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/OperationDisplay.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/OperationDisplay.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/OperationDisplay.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/OperationDisplay.cs index 2b7c83654abb..db3babe75635 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/OperationDisplay.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/OperationDisplay.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; /// The display information of the operation. public partial class OperationDisplay : - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationDisplay, - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationDisplayInternal + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationDisplay, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationDisplayInternal { /// Backing field for property. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/OperationDisplay.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/OperationDisplay.json.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/OperationDisplay.json.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/OperationDisplay.json.cs index 036fa20b57c5..3d91b5492ddd 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/OperationDisplay.json.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/OperationDisplay.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class OperationDisplay partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationDisplay. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationDisplay. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationDisplay. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationDisplay. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationDisplay FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationDisplay FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new OperationDisplay(json) : null; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/OperationListResult.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/OperationListResult.PowerShell.cs similarity index 86% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/OperationListResult.PowerShell.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/OperationListResult.PowerShell.cs index 8d713359f66d..5c2ac4a65642 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/OperationListResult.PowerShell.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/OperationListResult.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -65,29 +65,29 @@ public partial class OperationListResult partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new OperationListResult(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new OperationListResult(content); } @@ -97,10 +97,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api202 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -115,17 +115,17 @@ internal OperationListResult(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperation[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.OperationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperation[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.OperationTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -140,11 +140,11 @@ internal OperationListResult(global::System.Management.Automation.PSObject conte // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperation[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.OperationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperation[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.OperationTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/OperationListResult.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/OperationListResult.TypeConverter.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/OperationListResult.TypeConverter.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/OperationListResult.TypeConverter.cs index a20b902cd0e9..03ede50e54d9 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/OperationListResult.TypeConverter.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/OperationListResult.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/OperationListResult.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/OperationListResult.cs similarity index 88% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/OperationListResult.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/OperationListResult.cs index 2ab8ed583b7b..21c3b1aec472 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/OperationListResult.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/OperationListResult.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -11,8 +11,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api2022100 /// The operation list response that contains all operations for Azure Container Instance service. /// public partial class OperationListResult : - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationListResult, - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationListResult, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationListResultInternal { /// Backing field for property. @@ -23,11 +23,11 @@ public partial class OperationListResult : public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperation[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperation[] _value; /// The list of operations. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperation[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperation[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public OperationListResult() @@ -53,8 +53,8 @@ public partial interface IOperationListResult : ReadOnly = false, Description = @"The list of operations.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperation) })] - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperation[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperation) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperation[] Value { get; set; } } /// The operation list response that contains all operations for Azure Container Instance service. @@ -64,7 +64,7 @@ internal partial interface IOperationListResultInternal /// The URI to fetch the next page of operations. string NextLink { get; set; } /// The list of operations. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperation[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperation[] Value { get; set; } } } \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/OperationListResult.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/OperationListResult.json.cs similarity index 95% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/OperationListResult.json.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/OperationListResult.json.cs index aeb285de93a1..290e34fc6c26 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/OperationListResult.json.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/OperationListResult.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -56,13 +56,13 @@ public partial class OperationListResult partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new OperationListResult(json) : null; } @@ -79,7 +79,7 @@ internal OperationListResult(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstanc { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperation) (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.Operation.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperation) (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Operation.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Port.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Port.PowerShell.cs similarity index 89% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Port.PowerShell.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Port.PowerShell.cs index 20f08a8458e1..b623f4c08a55 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Port.PowerShell.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Port.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -63,27 +63,27 @@ public partial class Port partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IPort DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPort DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new Port(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IPort DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPort DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new Port(content); } @@ -93,10 +93,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api202 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IPort FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPort FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -111,17 +111,17 @@ internal Port(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Protocol")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IPortInternal)this).Protocol = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupNetworkProtocol?) content.GetValueForProperty("Protocol",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IPortInternal)this).Protocol, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupNetworkProtocol.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPortInternal)this).Protocol = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupNetworkProtocol?) content.GetValueForProperty("Protocol",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPortInternal)this).Protocol, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupNetworkProtocol.CreateFrom); } if (content.Contains("Port1")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IPortInternal)this).Port1 = (int) content.GetValueForProperty("Port1",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IPortInternal)this).Port1, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPortInternal)this).Port1 = (int) content.GetValueForProperty("Port1",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPortInternal)this).Port1, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -136,11 +136,11 @@ internal Port(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Protocol")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IPortInternal)this).Protocol = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupNetworkProtocol?) content.GetValueForProperty("Protocol",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IPortInternal)this).Protocol, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupNetworkProtocol.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPortInternal)this).Protocol = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupNetworkProtocol?) content.GetValueForProperty("Protocol",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPortInternal)this).Protocol, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupNetworkProtocol.CreateFrom); } if (content.Contains("Port1")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IPortInternal)this).Port1 = (int) content.GetValueForProperty("Port1",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IPortInternal)this).Port1, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPortInternal)this).Port1 = (int) content.GetValueForProperty("Port1",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPortInternal)this).Port1, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } AfterDeserializePSObject(content); } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Port.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Port.TypeConverter.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Port.TypeConverter.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Port.TypeConverter.cs index a20135271c29..c3874e9f0619 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Port.TypeConverter.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Port.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IPort ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPort ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IPort).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPort).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Port.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Port.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Port.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Port.cs index 0bb986594447..2bc60a639a78 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Port.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Port.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; /// The port exposed on the container group. public partial class Port : - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IPort, - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IPortInternal + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPort, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPortInternal { /// Backing field for property. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Port.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Port.json.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Port.json.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Port.json.cs index 88dae102b1a5..7258fadb531d 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Port.json.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Port.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class Port partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IPort. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPort. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IPort. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPort. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IPort FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPort FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new Port(json) : null; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Resource.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Resource.PowerShell.cs similarity index 82% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Resource.PowerShell.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Resource.PowerShell.cs index ac09a1fb4667..feaa815f3f18 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Resource.PowerShell.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Resource.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -63,27 +63,27 @@ public partial class Resource partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResource DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new Resource(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new Resource(content); } @@ -93,10 +93,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api202 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -111,33 +111,33 @@ internal Resource(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("Location")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Location, global::System.Convert.ToString); } if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ResourceTagsTypeConverter.ConvertFrom); } if (content.Contains("Zone")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal)this).Zone = (string[]) content.GetValueForProperty("Zone",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal)this).Zone, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Zone = (string[]) content.GetValueForProperty("Zone",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Zone, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -152,27 +152,27 @@ internal Resource(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("Location")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Location, global::System.Convert.ToString); } if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ResourceTagsTypeConverter.ConvertFrom); } if (content.Contains("Zone")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal)this).Zone = (string[]) content.GetValueForProperty("Zone",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal)this).Zone, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Zone = (string[]) content.GetValueForProperty("Zone",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal)this).Zone, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } AfterDeserializePSObject(content); } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Resource.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Resource.TypeConverter.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Resource.TypeConverter.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Resource.TypeConverter.cs index a762bd98739d..b3f54203a4e2 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Resource.TypeConverter.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Resource.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Resource.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Resource.cs similarity index 91% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Resource.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Resource.cs index cf38b11b31bd..6d5d21f7f413 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Resource.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Resource.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; /// The Resource model definition. public partial class Resource : - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResource, - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResource, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal { /// Backing field for property. @@ -28,13 +28,13 @@ public partial class Resource : public string Location { get => this._location; set => this._location = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal.Id { get => this._id; set { {_id = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal.Id { get => this._id; set { {_id = value;} } } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal.Name { get => this._name; set { {_name = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal.Name { get => this._name; set { {_name = value;} } } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceInternal.Type { get => this._type; set { {_type = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceInternal.Type { get => this._type; set { {_type = value;} } } /// Backing field for property. private string _name; @@ -44,11 +44,11 @@ public partial class Resource : public string Name { get => this._name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceTags _tag; + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceTags _tag; /// The resource tags. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ResourceTags()); set => this._tag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ResourceTags()); set => this._tag = value; } /// Backing field for property. private string _type; @@ -104,8 +104,8 @@ public partial interface IResource : ReadOnly = false, Description = @"The resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceTags) })] - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceTags Tag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceTags) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceTags Tag { get; set; } /// The resource type. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = false, @@ -135,7 +135,7 @@ internal partial interface IResourceInternal /// The resource name. string Name { get; set; } /// The resource tags. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceTags Tag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceTags Tag { get; set; } /// The resource type. string Type { get; set; } /// The zones for the container group. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Resource.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Resource.json.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Resource.json.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Resource.json.cs index dd05b0f4541c..e382af8f3368 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Resource.json.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Resource.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class Resource partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new Resource(json) : null; } @@ -81,7 +81,7 @@ internal Resource(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.J {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;} {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)Location;} - {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ResourceTags.FromJson(__jsonTags) : Tag;} + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ResourceTags.FromJson(__jsonTags) : Tag;} {_zone = If( json?.PropertyT("zones"), out var __jsonZones) ? If( __jsonZones as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : Zone;} AfterFromJson(json); } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ResourceLimits.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ResourceLimits.PowerShell.cs similarity index 84% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ResourceLimits.PowerShell.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ResourceLimits.PowerShell.cs index 9d410bac59df..6b5dbb5d3c8b 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ResourceLimits.PowerShell.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ResourceLimits.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -63,29 +63,29 @@ public partial class ResourceLimits partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceLimits DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceLimits DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ResourceLimits(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceLimits DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceLimits DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ResourceLimits(content); } @@ -95,10 +95,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api202 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceLimits FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceLimits FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -113,29 +113,29 @@ internal ResourceLimits(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Gpu")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceLimitsInternal)this).Gpu = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGpuResource) content.GetValueForProperty("Gpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceLimitsInternal)this).Gpu, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.GpuResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceLimitsInternal)this).Gpu = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGpuResource) content.GetValueForProperty("Gpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceLimitsInternal)this).Gpu, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.GpuResourceTypeConverter.ConvertFrom); } if (content.Contains("MemoryInGb")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceLimitsInternal)this).MemoryInGb = (double?) content.GetValueForProperty("MemoryInGb",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceLimitsInternal)this).MemoryInGb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceLimitsInternal)this).MemoryInGb = (double?) content.GetValueForProperty("MemoryInGb",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceLimitsInternal)this).MemoryInGb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); } if (content.Contains("Cpu")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceLimitsInternal)this).Cpu = (double?) content.GetValueForProperty("Cpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceLimitsInternal)this).Cpu, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceLimitsInternal)this).Cpu = (double?) content.GetValueForProperty("Cpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceLimitsInternal)this).Cpu, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); } if (content.Contains("GpuSku")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceLimitsInternal)this).GpuSku = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku) content.GetValueForProperty("GpuSku",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceLimitsInternal)this).GpuSku, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceLimitsInternal)this).GpuSku = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku) content.GetValueForProperty("GpuSku",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceLimitsInternal)this).GpuSku, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku.CreateFrom); } if (content.Contains("GpuCount")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceLimitsInternal)this).GpuCount = (int) content.GetValueForProperty("GpuCount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceLimitsInternal)this).GpuCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceLimitsInternal)this).GpuCount = (int) content.GetValueForProperty("GpuCount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceLimitsInternal)this).GpuCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -150,23 +150,23 @@ internal ResourceLimits(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Gpu")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceLimitsInternal)this).Gpu = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGpuResource) content.GetValueForProperty("Gpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceLimitsInternal)this).Gpu, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.GpuResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceLimitsInternal)this).Gpu = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGpuResource) content.GetValueForProperty("Gpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceLimitsInternal)this).Gpu, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.GpuResourceTypeConverter.ConvertFrom); } if (content.Contains("MemoryInGb")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceLimitsInternal)this).MemoryInGb = (double?) content.GetValueForProperty("MemoryInGb",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceLimitsInternal)this).MemoryInGb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceLimitsInternal)this).MemoryInGb = (double?) content.GetValueForProperty("MemoryInGb",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceLimitsInternal)this).MemoryInGb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); } if (content.Contains("Cpu")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceLimitsInternal)this).Cpu = (double?) content.GetValueForProperty("Cpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceLimitsInternal)this).Cpu, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceLimitsInternal)this).Cpu = (double?) content.GetValueForProperty("Cpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceLimitsInternal)this).Cpu, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); } if (content.Contains("GpuSku")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceLimitsInternal)this).GpuSku = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku) content.GetValueForProperty("GpuSku",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceLimitsInternal)this).GpuSku, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceLimitsInternal)this).GpuSku = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku) content.GetValueForProperty("GpuSku",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceLimitsInternal)this).GpuSku, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku.CreateFrom); } if (content.Contains("GpuCount")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceLimitsInternal)this).GpuCount = (int) content.GetValueForProperty("GpuCount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceLimitsInternal)this).GpuCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceLimitsInternal)this).GpuCount = (int) content.GetValueForProperty("GpuCount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceLimitsInternal)this).GpuCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } AfterDeserializePSObject(content); } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ResourceLimits.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ResourceLimits.TypeConverter.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ResourceLimits.TypeConverter.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ResourceLimits.TypeConverter.cs index 8adc5bc4fc53..a3b2788d86fb 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ResourceLimits.TypeConverter.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ResourceLimits.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceLimits ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceLimits ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceLimits).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceLimits).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ResourceLimits.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ResourceLimits.cs similarity index 88% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ResourceLimits.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ResourceLimits.cs index 982039a39174..887bf76d5e34 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ResourceLimits.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ResourceLimits.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; /// The resource limits. public partial class ResourceLimits : - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceLimits, - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceLimitsInternal + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceLimits, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceLimitsInternal { /// Backing field for property. @@ -21,19 +21,19 @@ public partial class ResourceLimits : public double? Cpu { get => this._cpu; set => this._cpu = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGpuResource _gpu; + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGpuResource _gpu; /// The GPU limit of this container instance. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGpuResource Gpu { get => (this._gpu = this._gpu ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.GpuResource()); set => this._gpu = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGpuResource Gpu { get => (this._gpu = this._gpu ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.GpuResource()); set => this._gpu = value; } /// The count of the GPU resource. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public int? GpuCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGpuResourceInternal)Gpu).Count; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGpuResourceInternal)Gpu).Count = value ?? default(int); } + public int? GpuCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGpuResourceInternal)Gpu).Count; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGpuResourceInternal)Gpu).Count = value ?? default(int); } /// The SKU of the GPU resource. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku? GpuSku { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGpuResourceInternal)Gpu).Sku; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGpuResourceInternal)Gpu).Sku = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku)""); } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku? GpuSku { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGpuResourceInternal)Gpu).Sku; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGpuResourceInternal)Gpu).Sku = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku)""); } /// Backing field for property. private double? _memoryInGb; @@ -43,7 +43,7 @@ public partial class ResourceLimits : public double? MemoryInGb { get => this._memoryInGb; set => this._memoryInGb = value; } /// Internal Acessors for Gpu - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGpuResource Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceLimitsInternal.Gpu { get => (this._gpu = this._gpu ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.GpuResource()); set { {_gpu = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGpuResource Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceLimitsInternal.Gpu { get => (this._gpu = this._gpu ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.GpuResource()); set { {_gpu = value;} } } /// Creates an new instance. public ResourceLimits() @@ -96,7 +96,7 @@ internal partial interface IResourceLimitsInternal /// The CPU limit of this container instance. double? Cpu { get; set; } /// The GPU limit of this container instance. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGpuResource Gpu { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGpuResource Gpu { get; set; } /// The count of the GPU resource. int? GpuCount { get; set; } /// The SKU of the GPU resource. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ResourceLimits.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ResourceLimits.json.cs similarity index 96% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ResourceLimits.json.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ResourceLimits.json.cs index e35929dab3cd..b98fc32ec1f8 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ResourceLimits.json.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ResourceLimits.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ResourceLimits partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceLimits. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceLimits. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceLimits. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceLimits. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceLimits FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceLimits FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new ResourceLimits(json) : null; } @@ -77,7 +77,7 @@ internal ResourceLimits(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Run { return; } - {_gpu = If( json?.PropertyT("gpu"), out var __jsonGpu) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.GpuResource.FromJson(__jsonGpu) : Gpu;} + {_gpu = If( json?.PropertyT("gpu"), out var __jsonGpu) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.GpuResource.FromJson(__jsonGpu) : Gpu;} {_memoryInGb = If( json?.PropertyT("memoryInGB"), out var __jsonMemoryInGb) ? (double?)__jsonMemoryInGb : MemoryInGb;} {_cpu = If( json?.PropertyT("cpu"), out var __jsonCpu) ? (double?)__jsonCpu : Cpu;} AfterFromJson(json); diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ResourceRequests.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ResourceRequests.PowerShell.cs similarity index 83% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ResourceRequests.PowerShell.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ResourceRequests.PowerShell.cs index 54ec53d44213..d9f68ac9dd8d 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ResourceRequests.PowerShell.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ResourceRequests.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -63,29 +63,29 @@ public partial class ResourceRequests partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequests DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequests DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ResourceRequests(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequests DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequests DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ResourceRequests(content); } @@ -95,10 +95,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api202 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequests FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequests FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -113,29 +113,29 @@ internal ResourceRequests(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Gpu")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequestsInternal)this).Gpu = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGpuResource) content.GetValueForProperty("Gpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequestsInternal)this).Gpu, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.GpuResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequestsInternal)this).Gpu = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGpuResource) content.GetValueForProperty("Gpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequestsInternal)this).Gpu, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.GpuResourceTypeConverter.ConvertFrom); } if (content.Contains("MemoryInGb")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequestsInternal)this).MemoryInGb = (double) content.GetValueForProperty("MemoryInGb",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequestsInternal)this).MemoryInGb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequestsInternal)this).MemoryInGb = (double) content.GetValueForProperty("MemoryInGb",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequestsInternal)this).MemoryInGb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); } if (content.Contains("Cpu")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequestsInternal)this).Cpu = (double) content.GetValueForProperty("Cpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequestsInternal)this).Cpu, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequestsInternal)this).Cpu = (double) content.GetValueForProperty("Cpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequestsInternal)this).Cpu, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); } if (content.Contains("GpuSku")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequestsInternal)this).GpuSku = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku) content.GetValueForProperty("GpuSku",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequestsInternal)this).GpuSku, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequestsInternal)this).GpuSku = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku) content.GetValueForProperty("GpuSku",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequestsInternal)this).GpuSku, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku.CreateFrom); } if (content.Contains("GpuCount")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequestsInternal)this).GpuCount = (int) content.GetValueForProperty("GpuCount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequestsInternal)this).GpuCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequestsInternal)this).GpuCount = (int) content.GetValueForProperty("GpuCount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequestsInternal)this).GpuCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -150,23 +150,23 @@ internal ResourceRequests(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Gpu")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequestsInternal)this).Gpu = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGpuResource) content.GetValueForProperty("Gpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequestsInternal)this).Gpu, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.GpuResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequestsInternal)this).Gpu = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGpuResource) content.GetValueForProperty("Gpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequestsInternal)this).Gpu, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.GpuResourceTypeConverter.ConvertFrom); } if (content.Contains("MemoryInGb")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequestsInternal)this).MemoryInGb = (double) content.GetValueForProperty("MemoryInGb",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequestsInternal)this).MemoryInGb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequestsInternal)this).MemoryInGb = (double) content.GetValueForProperty("MemoryInGb",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequestsInternal)this).MemoryInGb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); } if (content.Contains("Cpu")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequestsInternal)this).Cpu = (double) content.GetValueForProperty("Cpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequestsInternal)this).Cpu, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequestsInternal)this).Cpu = (double) content.GetValueForProperty("Cpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequestsInternal)this).Cpu, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); } if (content.Contains("GpuSku")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequestsInternal)this).GpuSku = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku) content.GetValueForProperty("GpuSku",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequestsInternal)this).GpuSku, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequestsInternal)this).GpuSku = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku) content.GetValueForProperty("GpuSku",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequestsInternal)this).GpuSku, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku.CreateFrom); } if (content.Contains("GpuCount")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequestsInternal)this).GpuCount = (int) content.GetValueForProperty("GpuCount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequestsInternal)this).GpuCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequestsInternal)this).GpuCount = (int) content.GetValueForProperty("GpuCount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequestsInternal)this).GpuCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } AfterDeserializePSObject(content); } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ResourceRequests.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ResourceRequests.TypeConverter.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ResourceRequests.TypeConverter.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ResourceRequests.TypeConverter.cs index 0cc10f0ca990..b8edc8d18450 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ResourceRequests.TypeConverter.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ResourceRequests.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequests ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequests ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequests).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequests).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ResourceRequests.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ResourceRequests.cs similarity index 88% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ResourceRequests.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ResourceRequests.cs index aed211e0b5b1..f75839b37845 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ResourceRequests.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ResourceRequests.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; /// The resource requests. public partial class ResourceRequests : - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequests, - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequestsInternal + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequests, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequestsInternal { /// Backing field for property. @@ -21,19 +21,19 @@ public partial class ResourceRequests : public double Cpu { get => this._cpu; set => this._cpu = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGpuResource _gpu; + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGpuResource _gpu; /// The GPU request of this container instance. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGpuResource Gpu { get => (this._gpu = this._gpu ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.GpuResource()); set => this._gpu = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGpuResource Gpu { get => (this._gpu = this._gpu ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.GpuResource()); set => this._gpu = value; } /// The count of the GPU resource. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public int? GpuCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGpuResourceInternal)Gpu).Count; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGpuResourceInternal)Gpu).Count = value ?? default(int); } + public int? GpuCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGpuResourceInternal)Gpu).Count; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGpuResourceInternal)Gpu).Count = value ?? default(int); } /// The SKU of the GPU resource. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku? GpuSku { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGpuResourceInternal)Gpu).Sku; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGpuResourceInternal)Gpu).Sku = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku)""); } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku? GpuSku { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGpuResourceInternal)Gpu).Sku; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGpuResourceInternal)Gpu).Sku = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku)""); } /// Backing field for property. private double _memoryInGb; @@ -43,7 +43,7 @@ public partial class ResourceRequests : public double MemoryInGb { get => this._memoryInGb; set => this._memoryInGb = value; } /// Internal Acessors for Gpu - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGpuResource Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequestsInternal.Gpu { get => (this._gpu = this._gpu ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.GpuResource()); set { {_gpu = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGpuResource Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequestsInternal.Gpu { get => (this._gpu = this._gpu ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.GpuResource()); set { {_gpu = value;} } } /// Creates an new instance. public ResourceRequests() @@ -96,7 +96,7 @@ internal partial interface IResourceRequestsInternal /// The CPU request of this container instance. double Cpu { get; set; } /// The GPU request of this container instance. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGpuResource Gpu { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGpuResource Gpu { get; set; } /// The count of the GPU resource. int? GpuCount { get; set; } /// The SKU of the GPU resource. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ResourceRequests.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ResourceRequests.json.cs similarity index 96% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ResourceRequests.json.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ResourceRequests.json.cs index 4257349e29c0..070a4dea9d8d 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ResourceRequests.json.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ResourceRequests.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ResourceRequests partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequests. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequests. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequests. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequests. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequests FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequests FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new ResourceRequests(json) : null; } @@ -77,7 +77,7 @@ internal ResourceRequests(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.R { return; } - {_gpu = If( json?.PropertyT("gpu"), out var __jsonGpu) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.GpuResource.FromJson(__jsonGpu) : Gpu;} + {_gpu = If( json?.PropertyT("gpu"), out var __jsonGpu) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.GpuResource.FromJson(__jsonGpu) : Gpu;} {_memoryInGb = If( json?.PropertyT("memoryInGB"), out var __jsonMemoryInGb) ? (double)__jsonMemoryInGb : MemoryInGb;} {_cpu = If( json?.PropertyT("cpu"), out var __jsonCpu) ? (double)__jsonCpu : Cpu;} AfterFromJson(json); diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ResourceRequirements.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ResourceRequirements.PowerShell.cs similarity index 78% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ResourceRequirements.PowerShell.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ResourceRequirements.PowerShell.cs index d793e28a008f..a6c595944789 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ResourceRequirements.PowerShell.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ResourceRequirements.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -63,29 +63,29 @@ public partial class ResourceRequirements partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirements DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirements DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ResourceRequirements(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirements DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirements DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ResourceRequirements(content); } @@ -95,10 +95,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api202 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirements FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirements FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -113,57 +113,57 @@ internal ResourceRequirements(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Request")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)this).Request = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequests) content.GetValueForProperty("Request",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)this).Request, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ResourceRequestsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)this).Request = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequests) content.GetValueForProperty("Request",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)this).Request, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ResourceRequestsTypeConverter.ConvertFrom); } if (content.Contains("Limit")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)this).Limit = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceLimits) content.GetValueForProperty("Limit",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)this).Limit, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ResourceLimitsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)this).Limit = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceLimits) content.GetValueForProperty("Limit",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)this).Limit, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ResourceLimitsTypeConverter.ConvertFrom); } if (content.Contains("RequestGpu")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)this).RequestGpu = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGpuResource) content.GetValueForProperty("RequestGpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)this).RequestGpu, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.GpuResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)this).RequestGpu = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGpuResource) content.GetValueForProperty("RequestGpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)this).RequestGpu, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.GpuResourceTypeConverter.ConvertFrom); } if (content.Contains("RequestMemoryInGb")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)this).RequestMemoryInGb = (double) content.GetValueForProperty("RequestMemoryInGb",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)this).RequestMemoryInGb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)this).RequestMemoryInGb = (double) content.GetValueForProperty("RequestMemoryInGb",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)this).RequestMemoryInGb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); } if (content.Contains("RequestCpu")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)this).RequestCpu = (double) content.GetValueForProperty("RequestCpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)this).RequestCpu, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)this).RequestCpu = (double) content.GetValueForProperty("RequestCpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)this).RequestCpu, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); } if (content.Contains("RequestsGpuSku")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)this).RequestsGpuSku = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku) content.GetValueForProperty("RequestsGpuSku",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)this).RequestsGpuSku, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)this).RequestsGpuSku = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku) content.GetValueForProperty("RequestsGpuSku",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)this).RequestsGpuSku, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku.CreateFrom); } if (content.Contains("LimitGpu")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)this).LimitGpu = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGpuResource) content.GetValueForProperty("LimitGpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)this).LimitGpu, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.GpuResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)this).LimitGpu = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGpuResource) content.GetValueForProperty("LimitGpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)this).LimitGpu, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.GpuResourceTypeConverter.ConvertFrom); } if (content.Contains("LimitMemoryInGb")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)this).LimitMemoryInGb = (double?) content.GetValueForProperty("LimitMemoryInGb",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)this).LimitMemoryInGb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)this).LimitMemoryInGb = (double?) content.GetValueForProperty("LimitMemoryInGb",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)this).LimitMemoryInGb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); } if (content.Contains("LimitCpu")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)this).LimitCpu = (double?) content.GetValueForProperty("LimitCpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)this).LimitCpu, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)this).LimitCpu = (double?) content.GetValueForProperty("LimitCpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)this).LimitCpu, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); } if (content.Contains("LimitsGpuSku")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)this).LimitsGpuSku = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku) content.GetValueForProperty("LimitsGpuSku",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)this).LimitsGpuSku, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)this).LimitsGpuSku = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku) content.GetValueForProperty("LimitsGpuSku",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)this).LimitsGpuSku, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku.CreateFrom); } if (content.Contains("RequestsGpuCount")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)this).RequestsGpuCount = (int) content.GetValueForProperty("RequestsGpuCount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)this).RequestsGpuCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)this).RequestsGpuCount = (int) content.GetValueForProperty("RequestsGpuCount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)this).RequestsGpuCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("LimitsGpuCount")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)this).LimitsGpuCount = (int) content.GetValueForProperty("LimitsGpuCount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)this).LimitsGpuCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)this).LimitsGpuCount = (int) content.GetValueForProperty("LimitsGpuCount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)this).LimitsGpuCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -178,51 +178,51 @@ internal ResourceRequirements(global::System.Management.Automation.PSObject cont // actually deserialize if (content.Contains("Request")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)this).Request = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequests) content.GetValueForProperty("Request",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)this).Request, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ResourceRequestsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)this).Request = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequests) content.GetValueForProperty("Request",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)this).Request, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ResourceRequestsTypeConverter.ConvertFrom); } if (content.Contains("Limit")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)this).Limit = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceLimits) content.GetValueForProperty("Limit",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)this).Limit, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ResourceLimitsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)this).Limit = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceLimits) content.GetValueForProperty("Limit",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)this).Limit, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ResourceLimitsTypeConverter.ConvertFrom); } if (content.Contains("RequestGpu")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)this).RequestGpu = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGpuResource) content.GetValueForProperty("RequestGpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)this).RequestGpu, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.GpuResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)this).RequestGpu = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGpuResource) content.GetValueForProperty("RequestGpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)this).RequestGpu, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.GpuResourceTypeConverter.ConvertFrom); } if (content.Contains("RequestMemoryInGb")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)this).RequestMemoryInGb = (double) content.GetValueForProperty("RequestMemoryInGb",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)this).RequestMemoryInGb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)this).RequestMemoryInGb = (double) content.GetValueForProperty("RequestMemoryInGb",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)this).RequestMemoryInGb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); } if (content.Contains("RequestCpu")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)this).RequestCpu = (double) content.GetValueForProperty("RequestCpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)this).RequestCpu, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)this).RequestCpu = (double) content.GetValueForProperty("RequestCpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)this).RequestCpu, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); } if (content.Contains("RequestsGpuSku")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)this).RequestsGpuSku = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku) content.GetValueForProperty("RequestsGpuSku",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)this).RequestsGpuSku, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)this).RequestsGpuSku = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku) content.GetValueForProperty("RequestsGpuSku",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)this).RequestsGpuSku, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku.CreateFrom); } if (content.Contains("LimitGpu")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)this).LimitGpu = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGpuResource) content.GetValueForProperty("LimitGpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)this).LimitGpu, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.GpuResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)this).LimitGpu = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGpuResource) content.GetValueForProperty("LimitGpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)this).LimitGpu, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.GpuResourceTypeConverter.ConvertFrom); } if (content.Contains("LimitMemoryInGb")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)this).LimitMemoryInGb = (double?) content.GetValueForProperty("LimitMemoryInGb",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)this).LimitMemoryInGb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)this).LimitMemoryInGb = (double?) content.GetValueForProperty("LimitMemoryInGb",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)this).LimitMemoryInGb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); } if (content.Contains("LimitCpu")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)this).LimitCpu = (double?) content.GetValueForProperty("LimitCpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)this).LimitCpu, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)this).LimitCpu = (double?) content.GetValueForProperty("LimitCpu",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)this).LimitCpu, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); } if (content.Contains("LimitsGpuSku")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)this).LimitsGpuSku = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku) content.GetValueForProperty("LimitsGpuSku",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)this).LimitsGpuSku, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)this).LimitsGpuSku = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku) content.GetValueForProperty("LimitsGpuSku",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)this).LimitsGpuSku, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku.CreateFrom); } if (content.Contains("RequestsGpuCount")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)this).RequestsGpuCount = (int) content.GetValueForProperty("RequestsGpuCount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)this).RequestsGpuCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)this).RequestsGpuCount = (int) content.GetValueForProperty("RequestsGpuCount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)this).RequestsGpuCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("LimitsGpuCount")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)this).LimitsGpuCount = (int) content.GetValueForProperty("LimitsGpuCount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal)this).LimitsGpuCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)this).LimitsGpuCount = (int) content.GetValueForProperty("LimitsGpuCount",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal)this).LimitsGpuCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } AfterDeserializePSObject(content); } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ResourceRequirements.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ResourceRequirements.TypeConverter.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ResourceRequirements.TypeConverter.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ResourceRequirements.TypeConverter.cs index 8c13ab829e69..367d457fac32 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ResourceRequirements.TypeConverter.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ResourceRequirements.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirements ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirements ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirements).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirements).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ResourceRequirements.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ResourceRequirements.cs similarity index 81% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ResourceRequirements.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ResourceRequirements.cs index 9a66573ba8de..9006aa46b981 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ResourceRequirements.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ResourceRequirements.cs @@ -3,73 +3,73 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; /// The resource requirements. public partial class ResourceRequirements : - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirements, - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirements, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceLimits _limit; + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceLimits _limit; /// The resource limits of this container instance. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceLimits Limit { get => (this._limit = this._limit ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ResourceLimits()); set => this._limit = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceLimits Limit { get => (this._limit = this._limit ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ResourceLimits()); set => this._limit = value; } /// The CPU limit of this container instance. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public double? LimitCpu { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceLimitsInternal)Limit).Cpu; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceLimitsInternal)Limit).Cpu = value ?? default(double); } + public double? LimitCpu { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceLimitsInternal)Limit).Cpu; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceLimitsInternal)Limit).Cpu = value ?? default(double); } /// The memory limit in GB of this container instance. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public double? LimitMemoryInGb { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceLimitsInternal)Limit).MemoryInGb; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceLimitsInternal)Limit).MemoryInGb = value ?? default(double); } + public double? LimitMemoryInGb { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceLimitsInternal)Limit).MemoryInGb; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceLimitsInternal)Limit).MemoryInGb = value ?? default(double); } /// The count of the GPU resource. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public int? LimitsGpuCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceLimitsInternal)Limit).GpuCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceLimitsInternal)Limit).GpuCount = value ?? default(int); } + public int? LimitsGpuCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceLimitsInternal)Limit).GpuCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceLimitsInternal)Limit).GpuCount = value ?? default(int); } /// The SKU of the GPU resource. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku? LimitsGpuSku { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceLimitsInternal)Limit).GpuSku; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceLimitsInternal)Limit).GpuSku = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku)""); } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku? LimitsGpuSku { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceLimitsInternal)Limit).GpuSku; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceLimitsInternal)Limit).GpuSku = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku)""); } /// Internal Acessors for Limit - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceLimits Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal.Limit { get => (this._limit = this._limit ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ResourceLimits()); set { {_limit = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceLimits Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal.Limit { get => (this._limit = this._limit ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ResourceLimits()); set { {_limit = value;} } } /// Internal Acessors for LimitGpu - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGpuResource Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal.LimitGpu { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceLimitsInternal)Limit).Gpu; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceLimitsInternal)Limit).Gpu = value; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGpuResource Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal.LimitGpu { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceLimitsInternal)Limit).Gpu; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceLimitsInternal)Limit).Gpu = value; } /// Internal Acessors for Request - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequests Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal.Request { get => (this._request = this._request ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ResourceRequests()); set { {_request = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequests Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal.Request { get => (this._request = this._request ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ResourceRequests()); set { {_request = value;} } } /// Internal Acessors for RequestGpu - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGpuResource Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirementsInternal.RequestGpu { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequestsInternal)Request).Gpu; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequestsInternal)Request).Gpu = value; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGpuResource Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirementsInternal.RequestGpu { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequestsInternal)Request).Gpu; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequestsInternal)Request).Gpu = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequests _request; + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequests _request; /// The resource requests of this container instance. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequests Request { get => (this._request = this._request ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ResourceRequests()); set => this._request = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequests Request { get => (this._request = this._request ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ResourceRequests()); set => this._request = value; } /// The CPU request of this container instance. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public double RequestCpu { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequestsInternal)Request).Cpu; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequestsInternal)Request).Cpu = value ; } + public double RequestCpu { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequestsInternal)Request).Cpu; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequestsInternal)Request).Cpu = value ; } /// The memory request in GB of this container instance. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public double RequestMemoryInGb { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequestsInternal)Request).MemoryInGb; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequestsInternal)Request).MemoryInGb = value ; } + public double RequestMemoryInGb { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequestsInternal)Request).MemoryInGb; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequestsInternal)Request).MemoryInGb = value ; } /// The count of the GPU resource. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public int? RequestsGpuCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequestsInternal)Request).GpuCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequestsInternal)Request).GpuCount = value ?? default(int); } + public int? RequestsGpuCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequestsInternal)Request).GpuCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequestsInternal)Request).GpuCount = value ?? default(int); } /// The SKU of the GPU resource. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku? RequestsGpuSku { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequestsInternal)Request).GpuSku; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequestsInternal)Request).GpuSku = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku)""); } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku? RequestsGpuSku { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequestsInternal)Request).GpuSku; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequestsInternal)Request).GpuSku = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku)""); } /// Creates an new instance. public ResourceRequirements() @@ -152,11 +152,11 @@ internal partial interface IResourceRequirementsInternal { /// The resource limits of this container instance. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceLimits Limit { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceLimits Limit { get; set; } /// The CPU limit of this container instance. double? LimitCpu { get; set; } /// The GPU limit of this container instance. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGpuResource LimitGpu { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGpuResource LimitGpu { get; set; } /// The memory limit in GB of this container instance. double? LimitMemoryInGb { get; set; } /// The count of the GPU resource. @@ -164,11 +164,11 @@ internal partial interface IResourceRequirementsInternal /// The SKU of the GPU resource. Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku? LimitsGpuSku { get; set; } /// The resource requests of this container instance. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequests Request { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequests Request { get; set; } /// The CPU request of this container instance. double RequestCpu { get; set; } /// The GPU request of this container instance. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGpuResource RequestGpu { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGpuResource RequestGpu { get; set; } /// The memory request in GB of this container instance. double RequestMemoryInGb { get; set; } /// The count of the GPU resource. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ResourceRequirements.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ResourceRequirements.json.cs similarity index 95% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ResourceRequirements.json.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ResourceRequirements.json.cs index c33753091661..d098b2b26e67 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ResourceRequirements.json.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ResourceRequirements.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ResourceRequirements partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirements. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirements. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirements. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirements. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceRequirements FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceRequirements FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new ResourceRequirements(json) : null; } @@ -77,8 +77,8 @@ internal ResourceRequirements(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstan { return; } - {_request = If( json?.PropertyT("requests"), out var __jsonRequests) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ResourceRequests.FromJson(__jsonRequests) : Request;} - {_limit = If( json?.PropertyT("limits"), out var __jsonLimits) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ResourceLimits.FromJson(__jsonLimits) : Limit;} + {_request = If( json?.PropertyT("requests"), out var __jsonRequests) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ResourceRequests.FromJson(__jsonRequests) : Request;} + {_limit = If( json?.PropertyT("limits"), out var __jsonLimits) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ResourceLimits.FromJson(__jsonLimits) : Limit;} AfterFromJson(json); } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ResourceTags.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ResourceTags.PowerShell.cs similarity index 93% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ResourceTags.PowerShell.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ResourceTags.PowerShell.cs index daf5fade2df3..d7d39cd9d0d2 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ResourceTags.PowerShell.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ResourceTags.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -63,29 +63,29 @@ public partial class ResourceTags partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ResourceTags(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ResourceTags(content); } @@ -95,10 +95,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api202 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -117,7 +117,7 @@ internal ResourceTags(global::System.Collections.IDictionary content) } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ResourceTags.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ResourceTags.TypeConverter.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ResourceTags.TypeConverter.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ResourceTags.TypeConverter.cs index e085fb6f3281..818b32f8a5f2 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ResourceTags.TypeConverter.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ResourceTags.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ResourceTags.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ResourceTags.cs similarity index 91% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ResourceTags.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ResourceTags.cs index 71129859dfeb..3154b0350ed5 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ResourceTags.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ResourceTags.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; /// The resource tags. public partial class ResourceTags : - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceTags, - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceTags, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceTagsInternal { /// Creates an new instance. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ResourceTags.dictionary.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ResourceTags.dictionary.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ResourceTags.dictionary.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ResourceTags.dictionary.cs index 1263baf37e21..1e59d2faa2d6 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ResourceTags.dictionary.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ResourceTags.dictionary.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ResourceTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ResourceTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ResourceTags.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ResourceTags.json.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ResourceTags.json.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ResourceTags.json.cs index ed1f2cb3b406..1a0688edb9f5 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/ResourceTags.json.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/ResourceTags.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ResourceTags partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new ResourceTags(json) : null; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/SecretVolume.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/SecretVolume.PowerShell.cs similarity index 93% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/SecretVolume.PowerShell.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/SecretVolume.PowerShell.cs index fa6c3b6f8bf4..513c49b0ec21 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/SecretVolume.PowerShell.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/SecretVolume.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -63,29 +63,29 @@ public partial class SecretVolume partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ISecretVolume DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecretVolume DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new SecretVolume(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ISecretVolume DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecretVolume DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new SecretVolume(content); } @@ -95,10 +95,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api202 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ISecretVolume FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecretVolume FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -117,7 +117,7 @@ internal SecretVolume(global::System.Collections.IDictionary content) } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/SecretVolume.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/SecretVolume.TypeConverter.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/SecretVolume.TypeConverter.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/SecretVolume.TypeConverter.cs index 74e4ec2d8973..232b00a18af9 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/SecretVolume.TypeConverter.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/SecretVolume.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ISecretVolume ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecretVolume ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ISecretVolume).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecretVolume).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/SecretVolume.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/SecretVolume.cs similarity index 91% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/SecretVolume.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/SecretVolume.cs index 03be6987b8b1..0a1f9763d084 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/SecretVolume.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/SecretVolume.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; /// The secret volume. public partial class SecretVolume : - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ISecretVolume, - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ISecretVolumeInternal + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecretVolume, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecretVolumeInternal { /// Creates an new instance. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/SecretVolume.dictionary.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/SecretVolume.dictionary.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/SecretVolume.dictionary.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/SecretVolume.dictionary.cs index f97760745af7..79c612886c31 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/SecretVolume.dictionary.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/SecretVolume.dictionary.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.SecretVolume source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.SecretVolume source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/SecretVolume.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/SecretVolume.json.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/SecretVolume.json.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/SecretVolume.json.cs index b556e09e7d47..f1d498ddce7f 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/SecretVolume.json.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/SecretVolume.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class SecretVolume partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ISecretVolume. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecretVolume. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ISecretVolume. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecretVolume. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ISecretVolume FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecretVolume FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new SecretVolume(json) : null; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/SecurityContextCapabilitiesDefinition.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/SecurityContextCapabilitiesDefinition.PowerShell.cs new file mode 100644 index 000000000000..144c75d5b2ee --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/SecurityContextCapabilitiesDefinition.PowerShell.cs @@ -0,0 +1,177 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; + + /// The capabilities to add or drop from a container. + [System.ComponentModel.TypeConverter(typeof(SecurityContextCapabilitiesDefinitionTypeConverter))] + public partial class SecurityContextCapabilitiesDefinition + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextCapabilitiesDefinition DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new SecurityContextCapabilitiesDefinition(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextCapabilitiesDefinition DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new SecurityContextCapabilitiesDefinition(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json + /// string. + /// + /// a string containing a JSON serialized instance of this model. + /// + /// an instance of the model class. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextCapabilitiesDefinition FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal SecurityContextCapabilitiesDefinition(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Add")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextCapabilitiesDefinitionInternal)this).Add = (string[]) content.GetValueForProperty("Add",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextCapabilitiesDefinitionInternal)this).Add, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("Drop")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextCapabilitiesDefinitionInternal)this).Drop = (string[]) content.GetValueForProperty("Drop",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextCapabilitiesDefinitionInternal)this).Drop, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal SecurityContextCapabilitiesDefinition(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Add")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextCapabilitiesDefinitionInternal)this).Add = (string[]) content.GetValueForProperty("Add",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextCapabilitiesDefinitionInternal)this).Add, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("Drop")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextCapabilitiesDefinitionInternal)this).Drop = (string[]) content.GetValueForProperty("Drop",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextCapabilitiesDefinitionInternal)this).Drop, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// The capabilities to add or drop from a container. + [System.ComponentModel.TypeConverter(typeof(SecurityContextCapabilitiesDefinitionTypeConverter))] + public partial interface ISecurityContextCapabilitiesDefinition + + { + + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/SecurityContextCapabilitiesDefinition.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/SecurityContextCapabilitiesDefinition.TypeConverter.cs new file mode 100644 index 000000000000..cbd5828a8781 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/SecurityContextCapabilitiesDefinition.TypeConverter.cs @@ -0,0 +1,150 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class SecurityContextCapabilitiesDefinitionTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise + /// false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextCapabilitiesDefinition ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextCapabilitiesDefinition).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return SecurityContextCapabilitiesDefinition.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return SecurityContextCapabilitiesDefinition.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return SecurityContextCapabilitiesDefinition.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/SecurityContextCapabilitiesDefinition.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/SecurityContextCapabilitiesDefinition.cs new file mode 100644 index 000000000000..6597773dc243 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/SecurityContextCapabilitiesDefinition.cs @@ -0,0 +1,68 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; + + /// The capabilities to add or drop from a container. + public partial class SecurityContextCapabilitiesDefinition : + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextCapabilitiesDefinition, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextCapabilitiesDefinitionInternal + { + + /// Backing field for property. + private string[] _add; + + /// The capabilities to add to the container. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] + public string[] Add { get => this._add; set => this._add = value; } + + /// Backing field for property. + private string[] _drop; + + /// The capabilities to drop from the container. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] + public string[] Drop { get => this._drop; set => this._drop = value; } + + /// Creates an new instance. + public SecurityContextCapabilitiesDefinition() + { + + } + } + /// The capabilities to add or drop from a container. + public partial interface ISecurityContextCapabilitiesDefinition : + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IJsonSerializable + { + /// The capabilities to add to the container. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The capabilities to add to the container.", + SerializedName = @"add", + PossibleTypes = new [] { typeof(string) })] + string[] Add { get; set; } + /// The capabilities to drop from the container. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The capabilities to drop from the container.", + SerializedName = @"drop", + PossibleTypes = new [] { typeof(string) })] + string[] Drop { get; set; } + + } + /// The capabilities to add or drop from a container. + internal partial interface ISecurityContextCapabilitiesDefinitionInternal + + { + /// The capabilities to add to the container. + string[] Add { get; set; } + /// The capabilities to drop from the container. + string[] Drop { get; set; } + + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/SecurityContextCapabilitiesDefinition.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/SecurityContextCapabilitiesDefinition.json.cs new file mode 100644 index 000000000000..9f61b56a9fc0 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/SecurityContextCapabilitiesDefinition.json.cs @@ -0,0 +1,127 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; + + /// The capabilities to add or drop from a container. + public partial class SecurityContextCapabilitiesDefinition + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextCapabilitiesDefinition. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextCapabilitiesDefinition. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextCapabilitiesDefinition FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new SecurityContextCapabilitiesDefinition(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject instance to deserialize from. + internal SecurityContextCapabilitiesDefinition(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_add = If( json?.PropertyT("add"), out var __jsonAdd) ? If( __jsonAdd as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : Add;} + {_drop = If( json?.PropertyT("drop"), out var __jsonDrop) ? If( __jsonDrop as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(string) (__p is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonString __o ? (string)(__o.ToString()) : null)) ))() : null : Drop;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (null != this._add) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.XNodeArray(); + foreach( var __x in this._add ) + { + AddIf(null != (((object)__x)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonString(__x.ToString()) : null ,__w.Add); + } + container.Add("add",__w); + } + if (null != this._drop) + { + var __r = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.XNodeArray(); + foreach( var __s in this._drop ) + { + AddIf(null != (((object)__s)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonString(__s.ToString()) : null ,__r.Add); + } + container.Add("drop",__r); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/SecurityContextDefinition.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/SecurityContextDefinition.PowerShell.cs new file mode 100644 index 000000000000..f239ef9d1147 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/SecurityContextDefinition.PowerShell.cs @@ -0,0 +1,222 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; + + /// The security context for the container. + [System.ComponentModel.TypeConverter(typeof(SecurityContextDefinitionTypeConverter))] + public partial class SecurityContextDefinition + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinition DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new SecurityContextDefinition(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinition DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new SecurityContextDefinition(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinition FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal SecurityContextDefinition(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Capability")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinitionInternal)this).Capability = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextCapabilitiesDefinition) content.GetValueForProperty("Capability",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinitionInternal)this).Capability, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.SecurityContextCapabilitiesDefinitionTypeConverter.ConvertFrom); + } + if (content.Contains("Privileged")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinitionInternal)this).Privileged = (bool?) content.GetValueForProperty("Privileged",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinitionInternal)this).Privileged, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("AllowPrivilegeEscalation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinitionInternal)this).AllowPrivilegeEscalation = (bool?) content.GetValueForProperty("AllowPrivilegeEscalation",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinitionInternal)this).AllowPrivilegeEscalation, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("RunAsGroup")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinitionInternal)this).RunAsGroup = (int?) content.GetValueForProperty("RunAsGroup",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinitionInternal)this).RunAsGroup, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("RunAsUser")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinitionInternal)this).RunAsUser = (int?) content.GetValueForProperty("RunAsUser",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinitionInternal)this).RunAsUser, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("SeccompProfile")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinitionInternal)this).SeccompProfile = (string) content.GetValueForProperty("SeccompProfile",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinitionInternal)this).SeccompProfile, global::System.Convert.ToString); + } + if (content.Contains("CapabilityAdd")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinitionInternal)this).CapabilityAdd = (string[]) content.GetValueForProperty("CapabilityAdd",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinitionInternal)this).CapabilityAdd, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("CapabilityDrop")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinitionInternal)this).CapabilityDrop = (string[]) content.GetValueForProperty("CapabilityDrop",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinitionInternal)this).CapabilityDrop, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal SecurityContextDefinition(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Capability")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinitionInternal)this).Capability = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextCapabilitiesDefinition) content.GetValueForProperty("Capability",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinitionInternal)this).Capability, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.SecurityContextCapabilitiesDefinitionTypeConverter.ConvertFrom); + } + if (content.Contains("Privileged")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinitionInternal)this).Privileged = (bool?) content.GetValueForProperty("Privileged",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinitionInternal)this).Privileged, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("AllowPrivilegeEscalation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinitionInternal)this).AllowPrivilegeEscalation = (bool?) content.GetValueForProperty("AllowPrivilegeEscalation",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinitionInternal)this).AllowPrivilegeEscalation, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("RunAsGroup")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinitionInternal)this).RunAsGroup = (int?) content.GetValueForProperty("RunAsGroup",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinitionInternal)this).RunAsGroup, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("RunAsUser")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinitionInternal)this).RunAsUser = (int?) content.GetValueForProperty("RunAsUser",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinitionInternal)this).RunAsUser, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("SeccompProfile")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinitionInternal)this).SeccompProfile = (string) content.GetValueForProperty("SeccompProfile",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinitionInternal)this).SeccompProfile, global::System.Convert.ToString); + } + if (content.Contains("CapabilityAdd")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinitionInternal)this).CapabilityAdd = (string[]) content.GetValueForProperty("CapabilityAdd",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinitionInternal)this).CapabilityAdd, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("CapabilityDrop")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinitionInternal)this).CapabilityDrop = (string[]) content.GetValueForProperty("CapabilityDrop",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinitionInternal)this).CapabilityDrop, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// The security context for the container. + [System.ComponentModel.TypeConverter(typeof(SecurityContextDefinitionTypeConverter))] + public partial interface ISecurityContextDefinition + + { + + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/SecurityContextDefinition.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/SecurityContextDefinition.TypeConverter.cs new file mode 100644 index 000000000000..7e62a775ca36 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/SecurityContextDefinition.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class SecurityContextDefinitionTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinition ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinition).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return SecurityContextDefinition.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return SecurityContextDefinition.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return SecurityContextDefinition.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/SecurityContextDefinition.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/SecurityContextDefinition.cs new file mode 100644 index 000000000000..2b8669a3b5db --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/SecurityContextDefinition.cs @@ -0,0 +1,165 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; + + /// The security context for the container. + public partial class SecurityContextDefinition : + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinition, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinitionInternal + { + + /// Backing field for property. + private bool? _allowPrivilegeEscalation; + + /// A boolean value indicating whether the init process can elevate its privileges + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] + public bool? AllowPrivilegeEscalation { get => this._allowPrivilegeEscalation; set => this._allowPrivilegeEscalation = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextCapabilitiesDefinition _capability; + + /// The capabilities to add or drop from a container. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextCapabilitiesDefinition Capability { get => (this._capability = this._capability ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.SecurityContextCapabilitiesDefinition()); set => this._capability = value; } + + /// The capabilities to add to the container. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public string[] CapabilityAdd { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextCapabilitiesDefinitionInternal)Capability).Add; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextCapabilitiesDefinitionInternal)Capability).Add = value ?? null /* arrayOf */; } + + /// The capabilities to drop from the container. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] + public string[] CapabilityDrop { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextCapabilitiesDefinitionInternal)Capability).Drop; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextCapabilitiesDefinitionInternal)Capability).Drop = value ?? null /* arrayOf */; } + + /// Internal Acessors for Capability + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextCapabilitiesDefinition Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinitionInternal.Capability { get => (this._capability = this._capability ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.SecurityContextCapabilitiesDefinition()); set { {_capability = value;} } } + + /// Backing field for property. + private bool? _privileged; + + /// The flag to determine if the container permissions is elevated to Privileged. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] + public bool? Privileged { get => this._privileged; set => this._privileged = value; } + + /// Backing field for property. + private int? _runAsGroup; + + /// Sets the User GID for the container. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] + public int? RunAsGroup { get => this._runAsGroup; set => this._runAsGroup = value; } + + /// Backing field for property. + private int? _runAsUser; + + /// Sets the User UID for the container. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] + public int? RunAsUser { get => this._runAsUser; set => this._runAsUser = value; } + + /// Backing field for property. + private string _seccompProfile; + + /// + /// a base64 encoded string containing the contents of the JSON in the seccomp profile + /// + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] + public string SeccompProfile { get => this._seccompProfile; set => this._seccompProfile = value; } + + /// Creates an new instance. + public SecurityContextDefinition() + { + + } + } + /// The security context for the container. + public partial interface ISecurityContextDefinition : + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IJsonSerializable + { + /// A boolean value indicating whether the init process can elevate its privileges + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A boolean value indicating whether the init process can elevate its privileges", + SerializedName = @"allowPrivilegeEscalation", + PossibleTypes = new [] { typeof(bool) })] + bool? AllowPrivilegeEscalation { get; set; } + /// The capabilities to add to the container. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The capabilities to add to the container.", + SerializedName = @"add", + PossibleTypes = new [] { typeof(string) })] + string[] CapabilityAdd { get; set; } + /// The capabilities to drop from the container. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The capabilities to drop from the container.", + SerializedName = @"drop", + PossibleTypes = new [] { typeof(string) })] + string[] CapabilityDrop { get; set; } + /// The flag to determine if the container permissions is elevated to Privileged. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The flag to determine if the container permissions is elevated to Privileged.", + SerializedName = @"privileged", + PossibleTypes = new [] { typeof(bool) })] + bool? Privileged { get; set; } + /// Sets the User GID for the container. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Sets the User GID for the container.", + SerializedName = @"runAsGroup", + PossibleTypes = new [] { typeof(int) })] + int? RunAsGroup { get; set; } + /// Sets the User UID for the container. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Sets the User UID for the container.", + SerializedName = @"runAsUser", + PossibleTypes = new [] { typeof(int) })] + int? RunAsUser { get; set; } + /// + /// a base64 encoded string containing the contents of the JSON in the seccomp profile + /// + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"a base64 encoded string containing the contents of the JSON in the seccomp profile", + SerializedName = @"seccompProfile", + PossibleTypes = new [] { typeof(string) })] + string SeccompProfile { get; set; } + + } + /// The security context for the container. + internal partial interface ISecurityContextDefinitionInternal + + { + /// A boolean value indicating whether the init process can elevate its privileges + bool? AllowPrivilegeEscalation { get; set; } + /// The capabilities to add or drop from a container. + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextCapabilitiesDefinition Capability { get; set; } + /// The capabilities to add to the container. + string[] CapabilityAdd { get; set; } + /// The capabilities to drop from the container. + string[] CapabilityDrop { get; set; } + /// The flag to determine if the container permissions is elevated to Privileged. + bool? Privileged { get; set; } + /// Sets the User GID for the container. + int? RunAsGroup { get; set; } + /// Sets the User UID for the container. + int? RunAsUser { get; set; } + /// + /// a base64 encoded string containing the contents of the JSON in the seccomp profile + /// + string SeccompProfile { get; set; } + + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/SecurityContextDefinition.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/SecurityContextDefinition.json.cs new file mode 100644 index 000000000000..0d74dd5ae410 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/SecurityContextDefinition.json.cs @@ -0,0 +1,118 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; + + /// The security context for the container. + public partial class SecurityContextDefinition + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinition. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinition. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinition FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new SecurityContextDefinition(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject instance to deserialize from. + internal SecurityContextDefinition(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_capability = If( json?.PropertyT("capabilities"), out var __jsonCapabilities) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.SecurityContextCapabilitiesDefinition.FromJson(__jsonCapabilities) : Capability;} + {_privileged = If( json?.PropertyT("privileged"), out var __jsonPrivileged) ? (bool?)__jsonPrivileged : Privileged;} + {_allowPrivilegeEscalation = If( json?.PropertyT("allowPrivilegeEscalation"), out var __jsonAllowPrivilegeEscalation) ? (bool?)__jsonAllowPrivilegeEscalation : AllowPrivilegeEscalation;} + {_runAsGroup = If( json?.PropertyT("runAsGroup"), out var __jsonRunAsGroup) ? (int?)__jsonRunAsGroup : RunAsGroup;} + {_runAsUser = If( json?.PropertyT("runAsUser"), out var __jsonRunAsUser) ? (int?)__jsonRunAsUser : RunAsUser;} + {_seccompProfile = If( json?.PropertyT("seccompProfile"), out var __jsonSeccompProfile) ? (string)__jsonSeccompProfile : (string)SeccompProfile;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._capability ? (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode) this._capability.ToJson(null,serializationMode) : null, "capabilities" ,container.Add ); + AddIf( null != this._privileged ? (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonBoolean((bool)this._privileged) : null, "privileged" ,container.Add ); + AddIf( null != this._allowPrivilegeEscalation ? (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonBoolean((bool)this._allowPrivilegeEscalation) : null, "allowPrivilegeEscalation" ,container.Add ); + AddIf( null != this._runAsGroup ? (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNumber((int)this._runAsGroup) : null, "runAsGroup" ,container.Add ); + AddIf( null != this._runAsUser ? (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNumber((int)this._runAsUser) : null, "runAsUser" ,container.Add ); + AddIf( null != (((object)this._seccompProfile)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonString(this._seccompProfile.ToString()) : null, "seccompProfile" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/StandbyPoolProfileDefinition.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/StandbyPoolProfileDefinition.PowerShell.cs new file mode 100644 index 000000000000..ba204062b0f4 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/StandbyPoolProfileDefinition.PowerShell.cs @@ -0,0 +1,174 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; + + /// The standby pool profile reference. + [System.ComponentModel.TypeConverter(typeof(StandbyPoolProfileDefinitionTypeConverter))] + public partial class StandbyPoolProfileDefinition + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IStandbyPoolProfileDefinition DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new StandbyPoolProfileDefinition(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IStandbyPoolProfileDefinition DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new StandbyPoolProfileDefinition(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IStandbyPoolProfileDefinition FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal StandbyPoolProfileDefinition(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IStandbyPoolProfileDefinitionInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IStandbyPoolProfileDefinitionInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("FailContainerGroupCreateOnReuseFailure")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IStandbyPoolProfileDefinitionInternal)this).FailContainerGroupCreateOnReuseFailure = (bool?) content.GetValueForProperty("FailContainerGroupCreateOnReuseFailure",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IStandbyPoolProfileDefinitionInternal)this).FailContainerGroupCreateOnReuseFailure, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal StandbyPoolProfileDefinition(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IStandbyPoolProfileDefinitionInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IStandbyPoolProfileDefinitionInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("FailContainerGroupCreateOnReuseFailure")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IStandbyPoolProfileDefinitionInternal)this).FailContainerGroupCreateOnReuseFailure = (bool?) content.GetValueForProperty("FailContainerGroupCreateOnReuseFailure",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IStandbyPoolProfileDefinitionInternal)this).FailContainerGroupCreateOnReuseFailure, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// The standby pool profile reference. + [System.ComponentModel.TypeConverter(typeof(StandbyPoolProfileDefinitionTypeConverter))] + public partial interface IStandbyPoolProfileDefinition + + { + + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/StandbyPoolProfileDefinition.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/StandbyPoolProfileDefinition.TypeConverter.cs new file mode 100644 index 000000000000..9cc04e070184 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/StandbyPoolProfileDefinition.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class StandbyPoolProfileDefinitionTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IStandbyPoolProfileDefinition ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IStandbyPoolProfileDefinition).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return StandbyPoolProfileDefinition.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return StandbyPoolProfileDefinition.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return StandbyPoolProfileDefinition.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/StandbyPoolProfileDefinition.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/StandbyPoolProfileDefinition.cs new file mode 100644 index 000000000000..d433e79e317e --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/StandbyPoolProfileDefinition.cs @@ -0,0 +1,85 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; + + /// The standby pool profile reference. + public partial class StandbyPoolProfileDefinition : + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IStandbyPoolProfileDefinition, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IStandbyPoolProfileDefinitionInternal + { + + /// + /// Backing field for property. + /// + private bool? _failContainerGroupCreateOnReuseFailure; + + /// + /// The flag to determine whether ACI should fail the create request if the container group can not be obtained from standby + /// pool. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] + public bool? FailContainerGroupCreateOnReuseFailure { get => this._failContainerGroupCreateOnReuseFailure; set => this._failContainerGroupCreateOnReuseFailure = value; } + + /// Backing field for property. + private string _id; + + /// + /// The standby pool profile reference id.This will be an ARM resource id in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyContainerGroupPools/{standbyPoolName}'. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] + public string Id { get => this._id; set => this._id = value; } + + /// Creates an new instance. + public StandbyPoolProfileDefinition() + { + + } + } + /// The standby pool profile reference. + public partial interface IStandbyPoolProfileDefinition : + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IJsonSerializable + { + /// + /// The flag to determine whether ACI should fail the create request if the container group can not be obtained from standby + /// pool. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The flag to determine whether ACI should fail the create request if the container group can not be obtained from standby pool.", + SerializedName = @"failContainerGroupCreateOnReuseFailure", + PossibleTypes = new [] { typeof(bool) })] + bool? FailContainerGroupCreateOnReuseFailure { get; set; } + /// + /// The standby pool profile reference id.This will be an ARM resource id in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyContainerGroupPools/{standbyPoolName}'. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The standby pool profile reference id.This will be an ARM resource id in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyContainerGroupPools/{standbyPoolName}'.", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string Id { get; set; } + + } + /// The standby pool profile reference. + internal partial interface IStandbyPoolProfileDefinitionInternal + + { + /// + /// The flag to determine whether ACI should fail the create request if the container group can not be obtained from standby + /// pool. + /// + bool? FailContainerGroupCreateOnReuseFailure { get; set; } + /// + /// The standby pool profile reference id.This will be an ARM resource id in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyContainerGroupPools/{standbyPoolName}'. + /// + string Id { get; set; } + + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/StandbyPoolProfileDefinition.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/StandbyPoolProfileDefinition.json.cs new file mode 100644 index 000000000000..2321da4d9f2d --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/StandbyPoolProfileDefinition.json.cs @@ -0,0 +1,110 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; + + /// The standby pool profile reference. + public partial class StandbyPoolProfileDefinition + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IStandbyPoolProfileDefinition. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IStandbyPoolProfileDefinition. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IStandbyPoolProfileDefinition FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new StandbyPoolProfileDefinition(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject instance to deserialize from. + internal StandbyPoolProfileDefinition(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} + {_failContainerGroupCreateOnReuseFailure = If( json?.PropertyT("failContainerGroupCreateOnReuseFailure"), out var __jsonFailContainerGroupCreateOnReuseFailure) ? (bool?)__jsonFailContainerGroupCreateOnReuseFailure : FailContainerGroupCreateOnReuseFailure;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); + AddIf( null != this._failContainerGroupCreateOnReuseFailure ? (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonBoolean((bool)this._failContainerGroupCreateOnReuseFailure) : null, "failContainerGroupCreateOnReuseFailure" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Usage.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Usage.PowerShell.cs similarity index 81% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Usage.PowerShell.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Usage.PowerShell.cs index 663750f2ac92..1a14828214d4 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Usage.PowerShell.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Usage.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -63,27 +63,27 @@ public partial class Usage partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsage DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsage DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new Usage(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsage DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsage DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new Usage(content); } @@ -93,7 +93,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api202 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsage FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsage FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -113,7 +113,7 @@ public override string ToString() } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -128,37 +128,37 @@ internal Usage(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageInternal)this).Name = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageName) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageInternal)this).Name, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.UsageNameTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageInternal)this).Name = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageName) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageInternal)this).Name, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.UsageNameTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Unit")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageInternal)this).Unit = (string) content.GetValueForProperty("Unit",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageInternal)this).Unit, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageInternal)this).Unit = (string) content.GetValueForProperty("Unit",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageInternal)this).Unit, global::System.Convert.ToString); } if (content.Contains("CurrentValue")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageInternal)this).CurrentValue = (int?) content.GetValueForProperty("CurrentValue",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageInternal)this).CurrentValue, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageInternal)this).CurrentValue = (int?) content.GetValueForProperty("CurrentValue",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageInternal)this).CurrentValue, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("Limit")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageInternal)this).Limit = (int?) content.GetValueForProperty("Limit",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageInternal)this).Limit, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageInternal)this).Limit = (int?) content.GetValueForProperty("Limit",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageInternal)this).Limit, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("NameValue")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageInternal)this).NameValue = (string) content.GetValueForProperty("NameValue",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageInternal)this).NameValue, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageInternal)this).NameValue = (string) content.GetValueForProperty("NameValue",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageInternal)this).NameValue, global::System.Convert.ToString); } if (content.Contains("NameLocalizedValue")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageInternal)this).NameLocalizedValue = (string) content.GetValueForProperty("NameLocalizedValue",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageInternal)this).NameLocalizedValue, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageInternal)this).NameLocalizedValue = (string) content.GetValueForProperty("NameLocalizedValue",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageInternal)this).NameLocalizedValue, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -173,31 +173,31 @@ internal Usage(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageInternal)this).Name = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageName) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageInternal)this).Name, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.UsageNameTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageInternal)this).Name = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageName) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageInternal)this).Name, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.UsageNameTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Unit")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageInternal)this).Unit = (string) content.GetValueForProperty("Unit",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageInternal)this).Unit, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageInternal)this).Unit = (string) content.GetValueForProperty("Unit",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageInternal)this).Unit, global::System.Convert.ToString); } if (content.Contains("CurrentValue")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageInternal)this).CurrentValue = (int?) content.GetValueForProperty("CurrentValue",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageInternal)this).CurrentValue, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageInternal)this).CurrentValue = (int?) content.GetValueForProperty("CurrentValue",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageInternal)this).CurrentValue, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("Limit")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageInternal)this).Limit = (int?) content.GetValueForProperty("Limit",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageInternal)this).Limit, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageInternal)this).Limit = (int?) content.GetValueForProperty("Limit",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageInternal)this).Limit, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("NameValue")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageInternal)this).NameValue = (string) content.GetValueForProperty("NameValue",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageInternal)this).NameValue, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageInternal)this).NameValue = (string) content.GetValueForProperty("NameValue",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageInternal)this).NameValue, global::System.Convert.ToString); } if (content.Contains("NameLocalizedValue")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageInternal)this).NameLocalizedValue = (string) content.GetValueForProperty("NameLocalizedValue",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageInternal)this).NameLocalizedValue, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageInternal)this).NameLocalizedValue = (string) content.GetValueForProperty("NameLocalizedValue",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageInternal)this).NameLocalizedValue, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Usage.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Usage.TypeConverter.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Usage.TypeConverter.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Usage.TypeConverter.cs index 262ef4edfc54..90afae41f886 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Usage.TypeConverter.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Usage.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsage ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsage ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsage).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsage).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Usage.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Usage.cs similarity index 86% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Usage.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Usage.cs index 9b820c39747b..800fd6797ea5 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Usage.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Usage.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; /// A single usage result public partial class Usage : - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsage, - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageInternal + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsage, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageInternal { /// Backing field for property. @@ -35,40 +35,40 @@ public partial class Usage : public int? Limit { get => this._limit; } /// Internal Acessors for CurrentValue - int? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageInternal.CurrentValue { get => this._currentValue; set { {_currentValue = value;} } } + int? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageInternal.CurrentValue { get => this._currentValue; set { {_currentValue = value;} } } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageInternal.Id { get => this._id; set { {_id = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageInternal.Id { get => this._id; set { {_id = value;} } } /// Internal Acessors for Limit - int? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageInternal.Limit { get => this._limit; set { {_limit = value;} } } + int? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageInternal.Limit { get => this._limit; set { {_limit = value;} } } /// Internal Acessors for Name - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageName Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageInternal.Name { get => (this._name = this._name ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.UsageName()); set { {_name = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageName Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageInternal.Name { get => (this._name = this._name ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.UsageName()); set { {_name = value;} } } /// Internal Acessors for NameLocalizedValue - string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageInternal.NameLocalizedValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageNameInternal)Name).LocalizedValue; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageNameInternal)Name).LocalizedValue = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageInternal.NameLocalizedValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageNameInternal)Name).LocalizedValue; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageNameInternal)Name).LocalizedValue = value; } /// Internal Acessors for NameValue - string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageInternal.NameValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageNameInternal)Name).Value; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageNameInternal)Name).Value = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageInternal.NameValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageNameInternal)Name).Value; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageNameInternal)Name).Value = value; } /// Internal Acessors for Unit - string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageInternal.Unit { get => this._unit; set { {_unit = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageInternal.Unit { get => this._unit; set { {_unit = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageName _name; + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageName _name; /// The name object of the resource [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageName Name { get => (this._name = this._name ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.UsageName()); } + internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageName Name { get => (this._name = this._name ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.UsageName()); } /// The localized name of the resource [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string NameLocalizedValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageNameInternal)Name).LocalizedValue; } + public string NameLocalizedValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageNameInternal)Name).LocalizedValue; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string NameValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageNameInternal)Name).Value; } + public string NameValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageNameInternal)Name).Value; } /// Backing field for property. private string _unit; @@ -148,7 +148,7 @@ internal partial interface IUsageInternal /// The maximum permitted usage of the resource. int? Limit { get; set; } /// The name object of the resource - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageName Name { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageName Name { get; set; } /// The localized name of the resource string NameLocalizedValue { get; set; } /// The name of the resource diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Usage.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Usage.json.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Usage.json.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Usage.json.cs index c18f32065e3c..d28cb1775bb4 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Usage.json.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Usage.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class Usage partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsage. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsage. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsage. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsage. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsage FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsage FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new Usage(json) : null; } @@ -120,7 +120,7 @@ internal Usage(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json { return; } - {_name = If( json?.PropertyT("name"), out var __jsonName) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.UsageName.FromJson(__jsonName) : Name;} + {_name = If( json?.PropertyT("name"), out var __jsonName) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.UsageName.FromJson(__jsonName) : Name;} {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} {_unit = If( json?.PropertyT("unit"), out var __jsonUnit) ? (string)__jsonUnit : (string)Unit;} {_currentValue = If( json?.PropertyT("currentValue"), out var __jsonCurrentValue) ? (int?)__jsonCurrentValue : CurrentValue;} diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/UsageListResult.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/UsageListResult.PowerShell.cs similarity index 87% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/UsageListResult.PowerShell.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/UsageListResult.PowerShell.cs index e693978d7698..ad54354752c3 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/UsageListResult.PowerShell.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/UsageListResult.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -63,29 +63,29 @@ public partial class UsageListResult partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new UsageListResult(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new UsageListResult(content); } @@ -95,7 +95,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api202 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -115,7 +115,7 @@ public override string ToString() } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -130,13 +130,13 @@ internal UsageListResult(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsage[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.UsageTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsage[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.UsageTypeConverter.ConvertFrom)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -151,7 +151,7 @@ internal UsageListResult(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsage[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.UsageTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsage[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.UsageTypeConverter.ConvertFrom)); } AfterDeserializePSObject(content); } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/UsageListResult.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/UsageListResult.TypeConverter.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/UsageListResult.TypeConverter.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/UsageListResult.TypeConverter.cs index 75f5d9e1acd5..528161c00567 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/UsageListResult.TypeConverter.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/UsageListResult.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/UsageListResult.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/UsageListResult.cs similarity index 81% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/UsageListResult.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/UsageListResult.cs index e84fff977de7..0e51250a58ce 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/UsageListResult.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/UsageListResult.cs @@ -3,25 +3,25 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; /// The response containing the usage data public partial class UsageListResult : - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageListResult, - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageListResult, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageListResultInternal { /// Internal Acessors for Value - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsage[] Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageListResultInternal.Value { get => this._value; set { {_value = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsage[] Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageListResultInternal.Value { get => this._value; set { {_value = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsage[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsage[] _value; /// The usage data. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsage[] Value { get => this._value; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsage[] Value { get => this._value; } /// Creates an new instance. public UsageListResult() @@ -39,8 +39,8 @@ public partial interface IUsageListResult : ReadOnly = true, Description = @"The usage data.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsage) })] - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsage[] Value { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsage) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsage[] Value { get; } } /// The response containing the usage data @@ -48,7 +48,7 @@ internal partial interface IUsageListResultInternal { /// The usage data. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsage[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsage[] Value { get; set; } } } \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/UsageListResult.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/UsageListResult.json.cs similarity index 95% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/UsageListResult.json.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/UsageListResult.json.cs index 38c1fd504f7d..b09553190042 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/UsageListResult.json.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/UsageListResult.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class UsageListResult partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new UsageListResult(json) : null; } @@ -112,7 +112,7 @@ internal UsageListResult(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Ru { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsage) (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.Usage.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsage) (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Usage.FromJson(__u) )) ))() : null : Value;} AfterFromJson(json); } } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/UsageName.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/UsageName.PowerShell.cs similarity index 88% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/UsageName.PowerShell.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/UsageName.PowerShell.cs index 836bfaad7d89..b20219f4a423 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/UsageName.PowerShell.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/UsageName.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -63,27 +63,27 @@ public partial class UsageName partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageName DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageName DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new UsageName(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageName DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageName DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new UsageName(content); } @@ -93,7 +93,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api202 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageName FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageName FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -113,7 +113,7 @@ public override string ToString() } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -128,17 +128,17 @@ internal UsageName(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageNameInternal)this).Value = (string) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageNameInternal)this).Value, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageNameInternal)this).Value = (string) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageNameInternal)this).Value, global::System.Convert.ToString); } if (content.Contains("LocalizedValue")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageNameInternal)this).LocalizedValue = (string) content.GetValueForProperty("LocalizedValue",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageNameInternal)this).LocalizedValue, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageNameInternal)this).LocalizedValue = (string) content.GetValueForProperty("LocalizedValue",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageNameInternal)this).LocalizedValue, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -153,11 +153,11 @@ internal UsageName(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageNameInternal)this).Value = (string) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageNameInternal)this).Value, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageNameInternal)this).Value = (string) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageNameInternal)this).Value, global::System.Convert.ToString); } if (content.Contains("LocalizedValue")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageNameInternal)this).LocalizedValue = (string) content.GetValueForProperty("LocalizedValue",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageNameInternal)this).LocalizedValue, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageNameInternal)this).LocalizedValue = (string) content.GetValueForProperty("LocalizedValue",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageNameInternal)this).LocalizedValue, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/UsageName.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/UsageName.TypeConverter.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/UsageName.TypeConverter.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/UsageName.TypeConverter.cs index 9f8a4cec07b5..328afa8531a3 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/UsageName.TypeConverter.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/UsageName.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageName ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageName ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageName).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageName).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/UsageName.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/UsageName.cs similarity index 93% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/UsageName.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/UsageName.cs index 92a69b39d184..d8564b4a48d8 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/UsageName.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/UsageName.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; /// The name object of the resource public partial class UsageName : - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageName, - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageNameInternal + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageName, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageNameInternal { /// Backing field for property. @@ -21,10 +21,10 @@ public partial class UsageName : public string LocalizedValue { get => this._localizedValue; } /// Internal Acessors for LocalizedValue - string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageNameInternal.LocalizedValue { get => this._localizedValue; set { {_localizedValue = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageNameInternal.LocalizedValue { get => this._localizedValue; set { {_localizedValue = value;} } } /// Internal Acessors for Value - string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageNameInternal.Value { get => this._value; set { {_value = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageNameInternal.Value { get => this._value; set { {_value = value;} } } /// Backing field for property. private string _value; diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/UsageName.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/UsageName.json.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/UsageName.json.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/UsageName.json.cs index e66bc18dd996..4e4bcd4705f7 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/UsageName.json.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/UsageName.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class UsageName partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageName. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageName. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageName. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageName. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageName FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageName FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new UsageName(json) : null; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/UserAssignedIdentities.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/UserAssignedIdentities.PowerShell.cs similarity index 89% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/UserAssignedIdentities.PowerShell.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/UserAssignedIdentities.PowerShell.cs index 105917a72b6f..79bc134b49f8 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/UserAssignedIdentities.PowerShell.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/UserAssignedIdentities.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -66,29 +66,29 @@ public partial class UserAssignedIdentities partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUserAssignedIdentities DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUserAssignedIdentities DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new UserAssignedIdentities(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUserAssignedIdentities DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUserAssignedIdentities DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new UserAssignedIdentities(content); } @@ -98,7 +98,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api202 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUserAssignedIdentities FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUserAssignedIdentities FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -118,7 +118,7 @@ public override string ToString() } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -133,17 +133,17 @@ internal UserAssignedIdentities(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("PrincipalId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUserAssignedIdentitiesInternal)this).PrincipalId = (string) content.GetValueForProperty("PrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUserAssignedIdentitiesInternal)this).PrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUserAssignedIdentitiesInternal)this).PrincipalId = (string) content.GetValueForProperty("PrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUserAssignedIdentitiesInternal)this).PrincipalId, global::System.Convert.ToString); } if (content.Contains("ClientId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUserAssignedIdentitiesInternal)this).ClientId = (string) content.GetValueForProperty("ClientId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUserAssignedIdentitiesInternal)this).ClientId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUserAssignedIdentitiesInternal)this).ClientId = (string) content.GetValueForProperty("ClientId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUserAssignedIdentitiesInternal)this).ClientId, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -158,11 +158,11 @@ internal UserAssignedIdentities(global::System.Management.Automation.PSObject co // actually deserialize if (content.Contains("PrincipalId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUserAssignedIdentitiesInternal)this).PrincipalId = (string) content.GetValueForProperty("PrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUserAssignedIdentitiesInternal)this).PrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUserAssignedIdentitiesInternal)this).PrincipalId = (string) content.GetValueForProperty("PrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUserAssignedIdentitiesInternal)this).PrincipalId, global::System.Convert.ToString); } if (content.Contains("ClientId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUserAssignedIdentitiesInternal)this).ClientId = (string) content.GetValueForProperty("ClientId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUserAssignedIdentitiesInternal)this).ClientId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUserAssignedIdentitiesInternal)this).ClientId = (string) content.GetValueForProperty("ClientId",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUserAssignedIdentitiesInternal)this).ClientId, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/UserAssignedIdentities.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/UserAssignedIdentities.TypeConverter.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/UserAssignedIdentities.TypeConverter.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/UserAssignedIdentities.TypeConverter.cs index cedb63b55ab9..f1f64eed3556 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/UserAssignedIdentities.TypeConverter.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/UserAssignedIdentities.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUserAssignedIdentities ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUserAssignedIdentities ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUserAssignedIdentities).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUserAssignedIdentities).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/UserAssignedIdentities.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/UserAssignedIdentities.cs similarity index 94% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/UserAssignedIdentities.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/UserAssignedIdentities.cs index 3e3fad71cb45..d356a4075aa7 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/UserAssignedIdentities.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/UserAssignedIdentities.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -12,8 +12,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api2022100 /// resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. /// public partial class UserAssignedIdentities : - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUserAssignedIdentities, - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUserAssignedIdentitiesInternal + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUserAssignedIdentities, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUserAssignedIdentitiesInternal { /// Backing field for property. @@ -24,10 +24,10 @@ public partial class UserAssignedIdentities : public string ClientId { get => this._clientId; } /// Internal Acessors for ClientId - string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUserAssignedIdentitiesInternal.ClientId { get => this._clientId; set { {_clientId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUserAssignedIdentitiesInternal.ClientId { get => this._clientId; set { {_clientId = value;} } } /// Internal Acessors for PrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUserAssignedIdentitiesInternal.PrincipalId { get => this._principalId; set { {_principalId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUserAssignedIdentitiesInternal.PrincipalId { get => this._principalId; set { {_principalId = value;} } } /// Backing field for property. private string _principalId; diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/UserAssignedIdentities.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/UserAssignedIdentities.json.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/UserAssignedIdentities.json.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/UserAssignedIdentities.json.cs index e6253b7d8503..59eae72ee5f1 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/UserAssignedIdentities.json.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/UserAssignedIdentities.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -57,13 +57,13 @@ public partial class UserAssignedIdentities partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUserAssignedIdentities. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUserAssignedIdentities. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUserAssignedIdentities. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUserAssignedIdentities. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUserAssignedIdentities FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUserAssignedIdentities FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new UserAssignedIdentities(json) : null; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Volume.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Volume.PowerShell.cs similarity index 76% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Volume.PowerShell.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Volume.PowerShell.cs index 60796573b755..27cae1040a97 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Volume.PowerShell.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Volume.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -63,27 +63,27 @@ public partial class Volume partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolume DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolume DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new Volume(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolume DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolume DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new Volume(content); } @@ -93,7 +93,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api202 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolume FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolume FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -113,7 +113,7 @@ public override string ToString() } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -128,57 +128,57 @@ internal Volume(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("AzureFile")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeInternal)this).AzureFile = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IAzureFileVolume) content.GetValueForProperty("AzureFile",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeInternal)this).AzureFile, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.AzureFileVolumeTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeInternal)this).AzureFile = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IAzureFileVolume) content.GetValueForProperty("AzureFile",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeInternal)this).AzureFile, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.AzureFileVolumeTypeConverter.ConvertFrom); } if (content.Contains("GitRepo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeInternal)this).GitRepo = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGitRepoVolume) content.GetValueForProperty("GitRepo",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeInternal)this).GitRepo, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.GitRepoVolumeTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeInternal)this).GitRepo = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGitRepoVolume) content.GetValueForProperty("GitRepo",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeInternal)this).GitRepo, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.GitRepoVolumeTypeConverter.ConvertFrom); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("EmptyDir")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeInternal)this).EmptyDir = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeEmptyDir) content.GetValueForProperty("EmptyDir",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeInternal)this).EmptyDir, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.VolumeEmptyDirTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeInternal)this).EmptyDir = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeEmptyDir) content.GetValueForProperty("EmptyDir",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeInternal)this).EmptyDir, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.VolumeEmptyDirTypeConverter.ConvertFrom); } if (content.Contains("Secret")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeInternal)this).Secret = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ISecretVolume) content.GetValueForProperty("Secret",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeInternal)this).Secret, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.SecretVolumeTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeInternal)this).Secret = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecretVolume) content.GetValueForProperty("Secret",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeInternal)this).Secret, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.SecretVolumeTypeConverter.ConvertFrom); } if (content.Contains("AzureFileShareName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeInternal)this).AzureFileShareName = (string) content.GetValueForProperty("AzureFileShareName",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeInternal)this).AzureFileShareName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeInternal)this).AzureFileShareName = (string) content.GetValueForProperty("AzureFileShareName",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeInternal)this).AzureFileShareName, global::System.Convert.ToString); } if (content.Contains("AzureFileReadOnly")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeInternal)this).AzureFileReadOnly = (bool?) content.GetValueForProperty("AzureFileReadOnly",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeInternal)this).AzureFileReadOnly, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeInternal)this).AzureFileReadOnly = (bool?) content.GetValueForProperty("AzureFileReadOnly",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeInternal)this).AzureFileReadOnly, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("AzureFileStorageAccountName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeInternal)this).AzureFileStorageAccountName = (string) content.GetValueForProperty("AzureFileStorageAccountName",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeInternal)this).AzureFileStorageAccountName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeInternal)this).AzureFileStorageAccountName = (string) content.GetValueForProperty("AzureFileStorageAccountName",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeInternal)this).AzureFileStorageAccountName, global::System.Convert.ToString); } if (content.Contains("AzureFileStorageAccountKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeInternal)this).AzureFileStorageAccountKey = (string) content.GetValueForProperty("AzureFileStorageAccountKey",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeInternal)this).AzureFileStorageAccountKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeInternal)this).AzureFileStorageAccountKey = (string) content.GetValueForProperty("AzureFileStorageAccountKey",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeInternal)this).AzureFileStorageAccountKey, global::System.Convert.ToString); } if (content.Contains("GitRepoDirectory")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeInternal)this).GitRepoDirectory = (string) content.GetValueForProperty("GitRepoDirectory",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeInternal)this).GitRepoDirectory, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeInternal)this).GitRepoDirectory = (string) content.GetValueForProperty("GitRepoDirectory",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeInternal)this).GitRepoDirectory, global::System.Convert.ToString); } if (content.Contains("GitRepoRepository")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeInternal)this).GitRepoRepository = (string) content.GetValueForProperty("GitRepoRepository",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeInternal)this).GitRepoRepository, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeInternal)this).GitRepoRepository = (string) content.GetValueForProperty("GitRepoRepository",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeInternal)this).GitRepoRepository, global::System.Convert.ToString); } if (content.Contains("GitRepoRevision")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeInternal)this).GitRepoRevision = (string) content.GetValueForProperty("GitRepoRevision",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeInternal)this).GitRepoRevision, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeInternal)this).GitRepoRevision = (string) content.GetValueForProperty("GitRepoRevision",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeInternal)this).GitRepoRevision, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -193,51 +193,51 @@ internal Volume(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("AzureFile")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeInternal)this).AzureFile = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IAzureFileVolume) content.GetValueForProperty("AzureFile",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeInternal)this).AzureFile, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.AzureFileVolumeTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeInternal)this).AzureFile = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IAzureFileVolume) content.GetValueForProperty("AzureFile",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeInternal)this).AzureFile, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.AzureFileVolumeTypeConverter.ConvertFrom); } if (content.Contains("GitRepo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeInternal)this).GitRepo = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGitRepoVolume) content.GetValueForProperty("GitRepo",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeInternal)this).GitRepo, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.GitRepoVolumeTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeInternal)this).GitRepo = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGitRepoVolume) content.GetValueForProperty("GitRepo",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeInternal)this).GitRepo, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.GitRepoVolumeTypeConverter.ConvertFrom); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("EmptyDir")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeInternal)this).EmptyDir = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeEmptyDir) content.GetValueForProperty("EmptyDir",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeInternal)this).EmptyDir, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.VolumeEmptyDirTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeInternal)this).EmptyDir = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeEmptyDir) content.GetValueForProperty("EmptyDir",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeInternal)this).EmptyDir, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.VolumeEmptyDirTypeConverter.ConvertFrom); } if (content.Contains("Secret")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeInternal)this).Secret = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ISecretVolume) content.GetValueForProperty("Secret",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeInternal)this).Secret, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.SecretVolumeTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeInternal)this).Secret = (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecretVolume) content.GetValueForProperty("Secret",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeInternal)this).Secret, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.SecretVolumeTypeConverter.ConvertFrom); } if (content.Contains("AzureFileShareName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeInternal)this).AzureFileShareName = (string) content.GetValueForProperty("AzureFileShareName",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeInternal)this).AzureFileShareName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeInternal)this).AzureFileShareName = (string) content.GetValueForProperty("AzureFileShareName",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeInternal)this).AzureFileShareName, global::System.Convert.ToString); } if (content.Contains("AzureFileReadOnly")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeInternal)this).AzureFileReadOnly = (bool?) content.GetValueForProperty("AzureFileReadOnly",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeInternal)this).AzureFileReadOnly, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeInternal)this).AzureFileReadOnly = (bool?) content.GetValueForProperty("AzureFileReadOnly",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeInternal)this).AzureFileReadOnly, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("AzureFileStorageAccountName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeInternal)this).AzureFileStorageAccountName = (string) content.GetValueForProperty("AzureFileStorageAccountName",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeInternal)this).AzureFileStorageAccountName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeInternal)this).AzureFileStorageAccountName = (string) content.GetValueForProperty("AzureFileStorageAccountName",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeInternal)this).AzureFileStorageAccountName, global::System.Convert.ToString); } if (content.Contains("AzureFileStorageAccountKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeInternal)this).AzureFileStorageAccountKey = (string) content.GetValueForProperty("AzureFileStorageAccountKey",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeInternal)this).AzureFileStorageAccountKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeInternal)this).AzureFileStorageAccountKey = (string) content.GetValueForProperty("AzureFileStorageAccountKey",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeInternal)this).AzureFileStorageAccountKey, global::System.Convert.ToString); } if (content.Contains("GitRepoDirectory")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeInternal)this).GitRepoDirectory = (string) content.GetValueForProperty("GitRepoDirectory",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeInternal)this).GitRepoDirectory, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeInternal)this).GitRepoDirectory = (string) content.GetValueForProperty("GitRepoDirectory",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeInternal)this).GitRepoDirectory, global::System.Convert.ToString); } if (content.Contains("GitRepoRepository")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeInternal)this).GitRepoRepository = (string) content.GetValueForProperty("GitRepoRepository",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeInternal)this).GitRepoRepository, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeInternal)this).GitRepoRepository = (string) content.GetValueForProperty("GitRepoRepository",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeInternal)this).GitRepoRepository, global::System.Convert.ToString); } if (content.Contains("GitRepoRevision")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeInternal)this).GitRepoRevision = (string) content.GetValueForProperty("GitRepoRevision",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeInternal)this).GitRepoRevision, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeInternal)this).GitRepoRevision = (string) content.GetValueForProperty("GitRepoRevision",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeInternal)this).GitRepoRevision, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Volume.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Volume.TypeConverter.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Volume.TypeConverter.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Volume.TypeConverter.cs index b8f6bae9aa0b..3a0193d37534 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Volume.TypeConverter.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Volume.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolume ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolume ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolume).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolume).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Volume.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Volume.cs similarity index 82% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Volume.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Volume.cs index 49ac48d3a057..9d1f18e63f56 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Volume.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Volume.cs @@ -3,75 +3,75 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; /// The properties of the volume. public partial class Volume : - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolume, - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeInternal + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolume, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IAzureFileVolume _azureFile; + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IAzureFileVolume _azureFile; /// The Azure File volume. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IAzureFileVolume AzureFile { get => (this._azureFile = this._azureFile ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.AzureFileVolume()); set => this._azureFile = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IAzureFileVolume AzureFile { get => (this._azureFile = this._azureFile ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.AzureFileVolume()); set => this._azureFile = value; } /// /// The flag indicating whether the Azure File shared mounted as a volume is read-only. /// [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public bool? AzureFileReadOnly { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IAzureFileVolumeInternal)AzureFile).ReadOnly; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IAzureFileVolumeInternal)AzureFile).ReadOnly = value ?? default(bool); } + public bool? AzureFileReadOnly { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IAzureFileVolumeInternal)AzureFile).ReadOnly; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IAzureFileVolumeInternal)AzureFile).ReadOnly = value ?? default(bool); } /// The name of the Azure File share to be mounted as a volume. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string AzureFileShareName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IAzureFileVolumeInternal)AzureFile).ShareName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IAzureFileVolumeInternal)AzureFile).ShareName = value ?? null; } + public string AzureFileShareName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IAzureFileVolumeInternal)AzureFile).ShareName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IAzureFileVolumeInternal)AzureFile).ShareName = value ?? null; } /// The storage account access key used to access the Azure File share. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string AzureFileStorageAccountKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IAzureFileVolumeInternal)AzureFile).StorageAccountKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IAzureFileVolumeInternal)AzureFile).StorageAccountKey = value ?? null; } + public string AzureFileStorageAccountKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IAzureFileVolumeInternal)AzureFile).StorageAccountKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IAzureFileVolumeInternal)AzureFile).StorageAccountKey = value ?? null; } /// The name of the storage account that contains the Azure File share. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string AzureFileStorageAccountName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IAzureFileVolumeInternal)AzureFile).StorageAccountName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IAzureFileVolumeInternal)AzureFile).StorageAccountName = value ?? null; } + public string AzureFileStorageAccountName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IAzureFileVolumeInternal)AzureFile).StorageAccountName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IAzureFileVolumeInternal)AzureFile).StorageAccountName = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeEmptyDir _emptyDir; + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeEmptyDir _emptyDir; /// The empty directory volume. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeEmptyDir EmptyDir { get => (this._emptyDir = this._emptyDir ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.VolumeEmptyDir()); set => this._emptyDir = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeEmptyDir EmptyDir { get => (this._emptyDir = this._emptyDir ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.VolumeEmptyDir()); set => this._emptyDir = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGitRepoVolume _gitRepo; + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGitRepoVolume _gitRepo; /// The git repo volume. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGitRepoVolume GitRepo { get => (this._gitRepo = this._gitRepo ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.GitRepoVolume()); set => this._gitRepo = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGitRepoVolume GitRepo { get => (this._gitRepo = this._gitRepo ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.GitRepoVolume()); set => this._gitRepo = value; } /// /// Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. /// Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. /// [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string GitRepoDirectory { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGitRepoVolumeInternal)GitRepo).Directory; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGitRepoVolumeInternal)GitRepo).Directory = value ?? null; } + public string GitRepoDirectory { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGitRepoVolumeInternal)GitRepo).Directory; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGitRepoVolumeInternal)GitRepo).Directory = value ?? null; } /// Repository URL [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string GitRepoRepository { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGitRepoVolumeInternal)GitRepo).Repository; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGitRepoVolumeInternal)GitRepo).Repository = value ?? null; } + public string GitRepoRepository { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGitRepoVolumeInternal)GitRepo).Repository; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGitRepoVolumeInternal)GitRepo).Repository = value ?? null; } /// Commit hash for the specified revision. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Inlined)] - public string GitRepoRevision { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGitRepoVolumeInternal)GitRepo).Revision; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGitRepoVolumeInternal)GitRepo).Revision = value ?? null; } + public string GitRepoRevision { get => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGitRepoVolumeInternal)GitRepo).Revision; set => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGitRepoVolumeInternal)GitRepo).Revision = value ?? null; } /// Internal Acessors for AzureFile - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IAzureFileVolume Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeInternal.AzureFile { get => (this._azureFile = this._azureFile ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.AzureFileVolume()); set { {_azureFile = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IAzureFileVolume Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeInternal.AzureFile { get => (this._azureFile = this._azureFile ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.AzureFileVolume()); set { {_azureFile = value;} } } /// Internal Acessors for GitRepo - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGitRepoVolume Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeInternal.GitRepo { get => (this._gitRepo = this._gitRepo ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.GitRepoVolume()); set { {_gitRepo = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGitRepoVolume Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeInternal.GitRepo { get => (this._gitRepo = this._gitRepo ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.GitRepoVolume()); set { {_gitRepo = value;} } } /// Backing field for property. private string _name; @@ -81,11 +81,11 @@ public partial class Volume : public string Name { get => this._name; set => this._name = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ISecretVolume _secret; + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecretVolume _secret; /// The secret volume. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ISecretVolume Secret { get => (this._secret = this._secret ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.SecretVolume()); set => this._secret = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecretVolume Secret { get => (this._secret = this._secret ?? new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.SecretVolume()); set => this._secret = value; } /// Creates an new instance. public Volume() @@ -137,8 +137,8 @@ public partial interface IVolume : ReadOnly = false, Description = @"The empty directory volume.", SerializedName = @"emptyDir", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeEmptyDir) })] - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeEmptyDir EmptyDir { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeEmptyDir) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeEmptyDir EmptyDir { get; set; } /// /// Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. /// Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. @@ -180,8 +180,8 @@ public partial interface IVolume : ReadOnly = false, Description = @"The secret volume.", SerializedName = @"secret", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ISecretVolume) })] - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ISecretVolume Secret { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecretVolume) })] + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecretVolume Secret { get; set; } } /// The properties of the volume. @@ -189,7 +189,7 @@ internal partial interface IVolumeInternal { /// The Azure File volume. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IAzureFileVolume AzureFile { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IAzureFileVolume AzureFile { get; set; } /// /// The flag indicating whether the Azure File shared mounted as a volume is read-only. /// @@ -201,9 +201,9 @@ internal partial interface IVolumeInternal /// The name of the storage account that contains the Azure File share. string AzureFileStorageAccountName { get; set; } /// The empty directory volume. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeEmptyDir EmptyDir { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeEmptyDir EmptyDir { get; set; } /// The git repo volume. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IGitRepoVolume GitRepo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IGitRepoVolume GitRepo { get; set; } /// /// Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. /// Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. @@ -216,7 +216,7 @@ internal partial interface IVolumeInternal /// The name of the volume. string Name { get; set; } /// The secret volume. - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ISecretVolume Secret { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecretVolume Secret { get; set; } } } \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Volume.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Volume.json.cs similarity index 95% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Volume.json.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Volume.json.cs index aea0b6020b84..68ef5873c1b1 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/Volume.json.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/Volume.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class Volume partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolume. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolume. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolume. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolume. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolume FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolume FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new Volume(json) : null; } @@ -105,11 +105,11 @@ internal Volume(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Jso { return; } - {_azureFile = If( json?.PropertyT("azureFile"), out var __jsonAzureFile) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.AzureFileVolume.FromJson(__jsonAzureFile) : AzureFile;} - {_gitRepo = If( json?.PropertyT("gitRepo"), out var __jsonGitRepo) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.GitRepoVolume.FromJson(__jsonGitRepo) : GitRepo;} + {_azureFile = If( json?.PropertyT("azureFile"), out var __jsonAzureFile) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.AzureFileVolume.FromJson(__jsonAzureFile) : AzureFile;} + {_gitRepo = If( json?.PropertyT("gitRepo"), out var __jsonGitRepo) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.GitRepoVolume.FromJson(__jsonGitRepo) : GitRepo;} {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} - {_emptyDir = If( json?.PropertyT("emptyDir"), out var __jsonEmptyDir) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.VolumeEmptyDir.FromJson(__jsonEmptyDir) : EmptyDir;} - {_secret = If( json?.PropertyT("secret"), out var __jsonSecret) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.SecretVolume.FromJson(__jsonSecret) : Secret;} + {_emptyDir = If( json?.PropertyT("emptyDir"), out var __jsonEmptyDir) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.VolumeEmptyDir.FromJson(__jsonEmptyDir) : EmptyDir;} + {_secret = If( json?.PropertyT("secret"), out var __jsonSecret) ? Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.SecretVolume.FromJson(__jsonSecret) : Secret;} AfterFromJson(json); } } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/VolumeEmptyDir.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/VolumeEmptyDir.PowerShell.cs similarity index 93% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/VolumeEmptyDir.PowerShell.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/VolumeEmptyDir.PowerShell.cs index 4fe74fb2d7ab..0162247035a7 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/VolumeEmptyDir.PowerShell.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/VolumeEmptyDir.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -63,29 +63,29 @@ public partial class VolumeEmptyDir partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeEmptyDir DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeEmptyDir DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new VolumeEmptyDir(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeEmptyDir DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeEmptyDir DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new VolumeEmptyDir(content); } @@ -95,7 +95,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api202 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeEmptyDir FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeEmptyDir FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -115,7 +115,7 @@ public override string ToString() } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -134,7 +134,7 @@ internal VolumeEmptyDir(global::System.Collections.IDictionary content) } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/VolumeEmptyDir.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/VolumeEmptyDir.TypeConverter.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/VolumeEmptyDir.TypeConverter.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/VolumeEmptyDir.TypeConverter.cs index 7890ce9a4be8..3008e79fdc8c 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/VolumeEmptyDir.TypeConverter.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/VolumeEmptyDir.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeEmptyDir ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeEmptyDir ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeEmptyDir).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeEmptyDir).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/VolumeEmptyDir.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/VolumeEmptyDir.cs similarity index 91% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/VolumeEmptyDir.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/VolumeEmptyDir.cs index a81873a477ce..050a05bb882c 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/VolumeEmptyDir.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/VolumeEmptyDir.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; /// The empty directory volume. public partial class VolumeEmptyDir : - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeEmptyDir, - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeEmptyDirInternal + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeEmptyDir, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeEmptyDirInternal { /// Creates an new instance. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/VolumeEmptyDir.dictionary.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/VolumeEmptyDir.dictionary.cs similarity index 98% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/VolumeEmptyDir.dictionary.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/VolumeEmptyDir.dictionary.cs index 9d6703fc9f62..ca07d825071e 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/VolumeEmptyDir.dictionary.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/VolumeEmptyDir.dictionary.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.VolumeEmptyDir source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.VolumeEmptyDir source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/VolumeEmptyDir.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/VolumeEmptyDir.json.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/VolumeEmptyDir.json.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/VolumeEmptyDir.json.cs index d287db9c61f3..c876d1c84b24 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/VolumeEmptyDir.json.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/VolumeEmptyDir.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VolumeEmptyDir partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeEmptyDir. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeEmptyDir. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeEmptyDir. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeEmptyDir. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeEmptyDir FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeEmptyDir FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new VolumeEmptyDir(json) : null; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/VolumeMount.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/VolumeMount.PowerShell.cs similarity index 87% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/VolumeMount.PowerShell.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/VolumeMount.PowerShell.cs index 1abb6dc2d27d..833a85097d02 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/VolumeMount.PowerShell.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/VolumeMount.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -63,29 +63,29 @@ public partial class VolumeMount partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeMount DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMount DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new VolumeMount(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeMount DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMount DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new VolumeMount(content); } @@ -95,7 +95,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api202 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeMount FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMount FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -115,7 +115,7 @@ public override string ToString() } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -130,21 +130,21 @@ internal VolumeMount(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeMountInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeMountInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMountInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMountInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("MountPath")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeMountInternal)this).MountPath = (string) content.GetValueForProperty("MountPath",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeMountInternal)this).MountPath, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMountInternal)this).MountPath = (string) content.GetValueForProperty("MountPath",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMountInternal)this).MountPath, global::System.Convert.ToString); } if (content.Contains("ReadOnly")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeMountInternal)this).ReadOnly = (bool?) content.GetValueForProperty("ReadOnly",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeMountInternal)this).ReadOnly, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMountInternal)this).ReadOnly = (bool?) content.GetValueForProperty("ReadOnly",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMountInternal)this).ReadOnly, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -159,15 +159,15 @@ internal VolumeMount(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeMountInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeMountInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMountInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMountInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("MountPath")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeMountInternal)this).MountPath = (string) content.GetValueForProperty("MountPath",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeMountInternal)this).MountPath, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMountInternal)this).MountPath = (string) content.GetValueForProperty("MountPath",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMountInternal)this).MountPath, global::System.Convert.ToString); } if (content.Contains("ReadOnly")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeMountInternal)this).ReadOnly = (bool?) content.GetValueForProperty("ReadOnly",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeMountInternal)this).ReadOnly, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMountInternal)this).ReadOnly = (bool?) content.GetValueForProperty("ReadOnly",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMountInternal)this).ReadOnly, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } AfterDeserializePSObject(content); } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/VolumeMount.TypeConverter.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/VolumeMount.TypeConverter.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/VolumeMount.TypeConverter.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/VolumeMount.TypeConverter.cs index e51e3d00811c..dc85059b19bd 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/VolumeMount.TypeConverter.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/VolumeMount.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeMount ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMount ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeMount).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMount).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/VolumeMount.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/VolumeMount.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/VolumeMount.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/VolumeMount.cs index 6887ae9b154f..93ab3eed2d38 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/VolumeMount.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/VolumeMount.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; /// The properties of the volume mount. public partial class VolumeMount : - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeMount, - Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeMountInternal + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMount, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMountInternal { /// Backing field for property. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/VolumeMount.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/VolumeMount.json.cs similarity index 97% rename from src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/VolumeMount.json.cs rename to src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/VolumeMount.json.cs index ca8d39e4d583..e00154daf7f9 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20221001Preview/VolumeMount.json.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/Api20240501Preview/VolumeMount.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VolumeMount partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeMount. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMount. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeMount. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMount. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeMount FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMount FromJson(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject json ? new VolumeMount(json) : null; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/ContainerInstanceIdentity.PowerShell.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/ContainerInstanceIdentity.PowerShell.cs index 670073244109..9dcbd0620351 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/ContainerInstanceIdentity.PowerShell.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/ContainerInstanceIdentity.PowerShell.cs @@ -103,6 +103,14 @@ internal ContainerInstanceIdentity(global::System.Collections.IDictionary conten { ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentityInternal)this).SubnetName = (string) content.GetValueForProperty("SubnetName",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentityInternal)this).SubnetName, global::System.Convert.ToString); } + if (content.Contains("ContainerGroupProfileName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentityInternal)this).ContainerGroupProfileName = (string) content.GetValueForProperty("ContainerGroupProfileName",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentityInternal)this).ContainerGroupProfileName, global::System.Convert.ToString); + } + if (content.Contains("RevisionNumber")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentityInternal)this).RevisionNumber = (string) content.GetValueForProperty("RevisionNumber",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentityInternal)this).RevisionNumber, global::System.Convert.ToString); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentityInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentityInternal)this).Id, global::System.Convert.ToString); @@ -152,6 +160,14 @@ internal ContainerInstanceIdentity(global::System.Management.Automation.PSObject { ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentityInternal)this).SubnetName = (string) content.GetValueForProperty("SubnetName",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentityInternal)this).SubnetName, global::System.Convert.ToString); } + if (content.Contains("ContainerGroupProfileName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentityInternal)this).ContainerGroupProfileName = (string) content.GetValueForProperty("ContainerGroupProfileName",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentityInternal)this).ContainerGroupProfileName, global::System.Convert.ToString); + } + if (content.Contains("RevisionNumber")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentityInternal)this).RevisionNumber = (string) content.GetValueForProperty("RevisionNumber",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentityInternal)this).RevisionNumber, global::System.Convert.ToString); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentityInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentityInternal)this).Id, global::System.Convert.ToString); diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/ContainerInstanceIdentity.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/ContainerInstanceIdentity.cs index b7a4f84e0f32..d36d97465ed0 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/ContainerInstanceIdentity.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/ContainerInstanceIdentity.cs @@ -19,6 +19,13 @@ public partial class ContainerInstanceIdentity : [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] public string ContainerGroupName { get => this._containerGroupName; set => this._containerGroupName = value; } + /// Backing field for property. + private string _containerGroupProfileName; + + /// The name of the container group profile. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] + public string ContainerGroupProfileName { get => this._containerGroupProfileName; set => this._containerGroupProfileName = value; } + /// Backing field for property. private string _containerName; @@ -36,17 +43,24 @@ public partial class ContainerInstanceIdentity : /// Backing field for property. private string _location; - /// The identifier for the physical azure location. + /// The name of the Azure region. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] public string Location { get => this._location; set => this._location = value; } /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group. + /// The name of the resource group. The name is case insensitive. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + /// Backing field for property. + private string _revisionNumber; + + /// The revision number of the container group profile. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] + public string RevisionNumber { get => this._revisionNumber; set => this._revisionNumber = value; } + /// Backing field for property. private string _subnetName; @@ -57,10 +71,7 @@ public partial class ContainerInstanceIdentity : /// Backing field for property. private string _subscriptionId; - /// - /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI - /// for every service call. - /// + /// The ID of the target subscription. The value must be an UUID. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Origin(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PropertyOrigin.Owned)] public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } @@ -88,6 +99,14 @@ public partial interface IContainerInstanceIdentity : SerializedName = @"containerGroupName", PossibleTypes = new [] { typeof(string) })] string ContainerGroupName { get; set; } + /// The name of the container group profile. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of the container group profile.", + SerializedName = @"containerGroupProfileName", + PossibleTypes = new [] { typeof(string) })] + string ContainerGroupProfileName { get; set; } /// The name of the container instance. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = false, @@ -104,22 +123,30 @@ public partial interface IContainerInstanceIdentity : SerializedName = @"id", PossibleTypes = new [] { typeof(string) })] string Id { get; set; } - /// The identifier for the physical azure location. + /// The name of the Azure region. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = false, ReadOnly = false, - Description = @"The identifier for the physical azure location.", + Description = @"The name of the Azure region.", SerializedName = @"location", PossibleTypes = new [] { typeof(string) })] string Location { get; set; } - /// The name of the resource group. + /// The name of the resource group. The name is case insensitive. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = false, ReadOnly = false, - Description = @"The name of the resource group.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] string ResourceGroupName { get; set; } + /// The revision number of the container group profile. + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The revision number of the container group profile.", + SerializedName = @"revisionNumber", + PossibleTypes = new [] { typeof(string) })] + string RevisionNumber { get; set; } /// The name of the subnet. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = false, @@ -128,14 +155,11 @@ public partial interface IContainerInstanceIdentity : SerializedName = @"subnetName", PossibleTypes = new [] { typeof(string) })] string SubnetName { get; set; } - /// - /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI - /// for every service call. - /// + /// The ID of the target subscription. The value must be an UUID. [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] string SubscriptionId { get; set; } @@ -154,20 +178,21 @@ internal partial interface IContainerInstanceIdentityInternal { /// The name of the container group. string ContainerGroupName { get; set; } + /// The name of the container group profile. + string ContainerGroupProfileName { get; set; } /// The name of the container instance. string ContainerName { get; set; } /// Resource identity path string Id { get; set; } - /// The identifier for the physical azure location. + /// The name of the Azure region. string Location { get; set; } - /// The name of the resource group. + /// The name of the resource group. The name is case insensitive. string ResourceGroupName { get; set; } + /// The revision number of the container group profile. + string RevisionNumber { get; set; } /// The name of the subnet. string SubnetName { get; set; } - /// - /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI - /// for every service call. - /// + /// The ID of the target subscription. The value must be an UUID. string SubscriptionId { get; set; } /// The name of the virtual network. string VirtualNetworkName { get; set; } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/ContainerInstanceIdentity.json.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/ContainerInstanceIdentity.json.cs index ce95d509780e..e300dc9973e8 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/ContainerInstanceIdentity.json.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/api/Models/ContainerInstanceIdentity.json.cs @@ -71,6 +71,8 @@ internal ContainerInstanceIdentity(Microsoft.Azure.PowerShell.Cmdlets.ContainerI {_containerName = If( json?.PropertyT("containerName"), out var __jsonContainerName) ? (string)__jsonContainerName : (string)ContainerName;} {_virtualNetworkName = If( json?.PropertyT("virtualNetworkName"), out var __jsonVirtualNetworkName) ? (string)__jsonVirtualNetworkName : (string)VirtualNetworkName;} {_subnetName = If( json?.PropertyT("subnetName"), out var __jsonSubnetName) ? (string)__jsonSubnetName : (string)SubnetName;} + {_containerGroupProfileName = If( json?.PropertyT("containerGroupProfileName"), out var __jsonContainerGroupProfileName) ? (string)__jsonContainerGroupProfileName : (string)ContainerGroupProfileName;} + {_revisionNumber = If( json?.PropertyT("revisionNumber"), out var __jsonRevisionNumber) ? (string)__jsonRevisionNumber : (string)RevisionNumber;} {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} AfterFromJson(json); } @@ -113,6 +115,8 @@ public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNod AddIf( null != (((object)this._containerName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonString(this._containerName.ToString()) : null, "containerName" ,container.Add ); AddIf( null != (((object)this._virtualNetworkName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonString(this._virtualNetworkName.ToString()) : null, "virtualNetworkName" ,container.Add ); AddIf( null != (((object)this._subnetName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonString(this._subnetName.ToString()) : null, "subnetName" ,container.Add ); + AddIf( null != (((object)this._containerGroupProfileName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonString(this._containerGroupProfileName.ToString()) : null, "containerGroupProfileName" ,container.Add ); + AddIf( null != (((object)this._revisionNumber)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonString(this._revisionNumber.ToString()) : null, "revisionNumber" ,container.Add ); AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); AfterToJson(ref container); return container; diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/AddAzContainerInstanceOutput_Attach.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/AddAzContainerInstanceOutput_Attach.cs index 506ba98a38c1..3e9f361d56b3 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/AddAzContainerInstanceOutput_Attach.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/AddAzContainerInstanceOutput_Attach.cs @@ -15,10 +15,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Cmdlets /// [OpenAPI] Attach=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/containers/{containerName}/attach" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Add, @"AzContainerInstanceOutput_Attach", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerAttachResponse))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerAttachResponse))] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Description(@"Attach to the output stream of a specific container instance in a specified resource group and container group.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/containers/{containerName}/attach", ApiVersion = "2022-10-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/containers/{containerName}/attach", ApiVersion = "2024-05-01-preview")] public partial class AddAzContainerInstanceOutput_Attach : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener { @@ -131,12 +131,12 @@ public partial class AddAzContainerInstanceOutput_Attach : global::System.Manage /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Path)] @@ -145,15 +145,12 @@ public partial class AddAzContainerInstanceOutput_Attach : global::System.Manage /// Backing field for property. private string _subscriptionId; - /// - /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI - /// for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo( @@ -168,24 +165,24 @@ public partial class AddAzContainerInstanceOutput_Attach : global::System.Manage /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerAttachResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerAttachResponse /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// Intializes a new instance of the cmdlet class. @@ -393,12 +390,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -415,7 +412,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, GroupName=GroupName, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -433,12 +430,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerAttachResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerAttachResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -450,7 +447,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerAttachResponse + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerAttachResponse WriteObject((await response)); } } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerGroup_Get.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerGroup_Get.cs index 184b9ac477ce..c7678982025d 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerGroup_Get.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerGroup_Get.cs @@ -17,10 +17,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzContainerGroup_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup))] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Description(@"Gets the properties of the specified container group in the specified subscription and resource group. The operation returns the properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}", ApiVersion = "2022-10-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}", ApiVersion = "2024-05-01-preview")] public partial class GetAzContainerGroup_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener { @@ -118,12 +118,12 @@ public partial class GetAzContainerGroup_Get : global::System.Management.Automat /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Path)] @@ -132,15 +132,12 @@ public partial class GetAzContainerGroup_Get : global::System.Management.Automat /// Backing field for property. private string[] _subscriptionId; - /// - /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI - /// for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo( @@ -155,24 +152,24 @@ public partial class GetAzContainerGroup_Get : global::System.Management.Automat /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -380,12 +377,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -402,7 +399,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -420,12 +417,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -437,7 +434,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup WriteObject((await response)); } } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerGroup_GetViaIdentity.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerGroup_GetViaIdentity.cs index e19bb1d57e32..950f733d434a 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerGroup_GetViaIdentity.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerGroup_GetViaIdentity.cs @@ -17,10 +17,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzContainerGroup_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup))] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Description(@"Gets the properties of the specified container group in the specified subscription and resource group. The operation returns the properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}", ApiVersion = "2022-10-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}", ApiVersion = "2024-05-01-preview")] public partial class GetAzContainerGroup_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener { @@ -113,24 +113,24 @@ public partial class GetAzContainerGroup_GetViaIdentity : global::System.Managem /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -355,12 +355,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -377,7 +377,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -395,12 +395,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -412,7 +412,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup WriteObject((await response)); } } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerGroup_List.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerGroup_List.cs index 8961012b36cf..b3e4532eb4bc 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerGroup_List.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerGroup_List.cs @@ -16,10 +16,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Cmdlets /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/containerGroups" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzContainerGroup_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup))] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Description(@"Get a list of container groups in the specified subscription. This operation returns properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/containerGroups", ApiVersion = "2022-10-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/containerGroups", ApiVersion = "2024-05-01-preview")] public partial class GetAzContainerGroup_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener { @@ -108,15 +108,12 @@ public partial class GetAzContainerGroup_List : global::System.Management.Automa /// Backing field for property. private string[] _subscriptionId; - /// - /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI - /// for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo( @@ -131,24 +128,24 @@ public partial class GetAzContainerGroup_List : global::System.Management.Automa /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -356,12 +353,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -378,7 +375,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -396,12 +393,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupListResult /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerGroup_List1.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerGroup_List1.cs index 1b6a61f1cb14..87d06bdf9485 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerGroup_List1.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerGroup_List1.cs @@ -17,10 +17,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Cmdlets /// [OpenAPI] ListByResourceGroup=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzContainerGroup_List1")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup))] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Description(@"Get a list of container groups in a specified subscription and resource group. This operation returns properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups", ApiVersion = "2022-10-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups", ApiVersion = "2024-05-01-preview")] public partial class GetAzContainerGroup_List1 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener { @@ -109,12 +109,12 @@ public partial class GetAzContainerGroup_List1 : global::System.Management.Autom /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Path)] @@ -123,15 +123,12 @@ public partial class GetAzContainerGroup_List1 : global::System.Management.Autom /// Backing field for property. private string[] _subscriptionId; - /// - /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI - /// for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo( @@ -146,24 +143,24 @@ public partial class GetAzContainerGroup_List1 : global::System.Management.Autom /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -371,12 +368,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -393,7 +390,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -411,12 +408,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupListResult /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerInstanceCachedImage_List.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerInstanceCachedImage_List.cs index 828181832d91..28aa4ac2617d 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerInstanceCachedImage_List.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerInstanceCachedImage_List.cs @@ -15,10 +15,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Cmdlets /// [OpenAPI] ListCachedImages=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/cachedImages" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzContainerInstanceCachedImage_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICachedImages))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICachedImages))] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Description(@"Get the list of cached images on specific OS type for a subscription in a region.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/cachedImages", ApiVersion = "2022-10-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/cachedImages", ApiVersion = "2024-05-01-preview")] public partial class GetAzContainerInstanceCachedImage_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener { @@ -78,12 +78,12 @@ public partial class GetAzContainerInstanceCachedImage_List : global::System.Man /// Backing field for property. private string _location; - /// The identifier for the physical azure location. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The identifier for the physical azure location.")] + /// The name of the Azure region. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Azure region.")] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The identifier for the physical azure location.", + Description = @"The name of the Azure region.", SerializedName = @"location", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Path)] @@ -121,15 +121,12 @@ public partial class GetAzContainerInstanceCachedImage_List : global::System.Man /// Backing field for property. private string[] _subscriptionId; - /// - /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI - /// for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo( @@ -144,24 +141,24 @@ public partial class GetAzContainerInstanceCachedImage_List : global::System.Man /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICachedImagesListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICachedImagesListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -369,12 +366,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -391,7 +388,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, Location=Location }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -409,12 +406,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICachedImagesListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICachedImagesListResult /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerInstanceCapability_List.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerInstanceCapability_List.cs index c5478e90d04b..a1cf10f0a54b 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerInstanceCapability_List.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerInstanceCapability_List.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Cmdlets /// [OpenAPI] ListCapabilities=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/capabilities" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzContainerInstanceCapability_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilities))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilities))] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Description(@"Get the list of CPU/memory/GPU capabilities of a region.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/capabilities", ApiVersion = "2022-10-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/capabilities", ApiVersion = "2024-05-01-preview")] public partial class GetAzContainerInstanceCapability_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener { @@ -76,12 +76,12 @@ public partial class GetAzContainerInstanceCapability_List : global::System.Mana /// Backing field for property. private string _location; - /// The identifier for the physical azure location. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The identifier for the physical azure location.")] + /// The name of the Azure region. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Azure region.")] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The identifier for the physical azure location.", + Description = @"The name of the Azure region.", SerializedName = @"location", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Path)] @@ -119,15 +119,12 @@ public partial class GetAzContainerInstanceCapability_List : global::System.Mana /// Backing field for property. private string[] _subscriptionId; - /// - /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI - /// for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo( @@ -142,24 +139,24 @@ public partial class GetAzContainerInstanceCapability_List : global::System.Mana /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -367,12 +364,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -389,7 +386,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, Location=Location }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -407,12 +404,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilitiesListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilitiesListResult /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerInstanceContainerGroupOutboundNetworkDependencyEndpoint_Get.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerInstanceContainerGroupOutboundNetworkDependencyEndpoint_Get.cs index 6be6f3da70f9..2beec0806cc4 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerInstanceContainerGroupOutboundNetworkDependencyEndpoint_Get.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerInstanceContainerGroupOutboundNetworkDependencyEndpoint_Get.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Cmdlets [global::System.Management.Automation.OutputType(typeof(string))] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Description(@"Gets all the network dependencies for this container group to allow complete control of network setting and configuration. For container groups, this will always be an empty list.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/outboundNetworkDependenciesEndpoints", ApiVersion = "2022-10-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/outboundNetworkDependenciesEndpoints", ApiVersion = "2024-05-01-preview")] public partial class GetAzContainerInstanceContainerGroupOutboundNetworkDependencyEndpoint_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener { @@ -117,12 +117,12 @@ public partial class GetAzContainerInstanceContainerGroupOutboundNetworkDependen /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Path)] @@ -131,15 +131,12 @@ public partial class GetAzContainerInstanceContainerGroupOutboundNetworkDependen /// Backing field for property. private string[] _subscriptionId; - /// - /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI - /// for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo( @@ -154,12 +151,12 @@ public partial class GetAzContainerInstanceContainerGroupOutboundNetworkDependen /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens @@ -379,12 +376,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -401,7 +398,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, ContainerGroupName=ContainerGroupName }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerInstanceContainerGroupOutboundNetworkDependencyEndpoint_GetViaIdentity.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerInstanceContainerGroupOutboundNetworkDependencyEndpoint_GetViaIdentity.cs index 14ff78b65d28..0980eb2b8201 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerInstanceContainerGroupOutboundNetworkDependencyEndpoint_GetViaIdentity.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerInstanceContainerGroupOutboundNetworkDependencyEndpoint_GetViaIdentity.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Cmdlets [global::System.Management.Automation.OutputType(typeof(string))] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Description(@"Gets all the network dependencies for this container group to allow complete control of network setting and configuration. For container groups, this will always be an empty list.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/outboundNetworkDependenciesEndpoints", ApiVersion = "2022-10-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/outboundNetworkDependenciesEndpoints", ApiVersion = "2024-05-01-preview")] public partial class GetAzContainerInstanceContainerGroupOutboundNetworkDependencyEndpoint_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener { @@ -113,12 +113,12 @@ public partial class GetAzContainerInstanceContainerGroupOutboundNetworkDependen /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens @@ -355,12 +355,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -377,7 +377,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerInstanceContainerGroupProfileRevision_List.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerInstanceContainerGroupProfileRevision_List.cs new file mode 100644 index 000000000000..b882ce8a6ddd --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerInstanceContainerGroupProfileRevision_List.cs @@ -0,0 +1,463 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; + using System; + + /// + /// Get a list of all the revisions of the specified container group profile in the given subscription and resource group. + /// This operation returns properties of each revision of the specified container group profile including containers, image + /// registry credentials, restart policy, IP address type, OS type volumes, revision number, etc. + /// + /// + /// [OpenAPI] ListAllRevisions=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}/revisions" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzContainerInstanceContainerGroupProfileRevision_List")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile))] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Description(@"Get a list of all the revisions of the specified container group profile in the given subscription and resource group. This operation returns properties of each revision of the specified container group profile including containers, image registry credentials, restart policy, IP address type, OS type volumes, revision number, etc.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}/revisions", ApiVersion = "2024-05-01-preview")] + public partial class GetAzContainerInstanceContainerGroupProfileRevision_List : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A flag to tell whether it is the first onOK call. + private bool _isFirst = true; + + /// Link to retrieve next page. + private string _nextLink; + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ContainerInstance Client => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.ClientAPI; + + /// Backing field for property. + private string _containerGroupProfileName; + + /// The name of the container group profile. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the container group profile.")] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the container group profile.", + SerializedName = @"containerGroupProfileName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Path)] + public string ContainerGroupProfileName { get => this._containerGroupProfileName; set => this._containerGroupProfileName = value; } + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription. The value must be an UUID.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileListResult + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzContainerInstanceContainerGroupProfileRevision_List() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.ContainerGroupProfileListAllRevisions(SubscriptionId, ResourceGroupName, ContainerGroupProfileName, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,ContainerGroupProfileName=ContainerGroupProfileName}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, ContainerGroupProfileName=ContainerGroupProfileName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, ContainerGroupProfileName=ContainerGroupProfileName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileListResult + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // response should be returning an array of some kind. +Pageable + // pageable / value / nextLink + var result = await response; + WriteObject(result.Value,true); + _nextLink = result.NextLink; + if (_isFirst) + { + _isFirst = false; + while (_nextLink != null) + { + if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) + { + requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Method.Get ); + await ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.ContainerGroupProfileListAllRevisions_Call(requestMessage, onOk, onDefault, this, Pipeline); + } + } + } + } + } + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerInstanceContainerGroupProfile_Get.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerInstanceContainerGroupProfile_Get.cs new file mode 100644 index 000000000000..28c6106c7682 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerInstanceContainerGroupProfile_Get.cs @@ -0,0 +1,442 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; + using System; + + /// + /// Gets the properties of the specified container group profile in the specified subscription and resource group. The operation + /// returns the properties of container group profile including containers, image registry credentials, restart policy, IP + /// address type, OS type, volumes, current revision number, etc. + /// + /// + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzContainerInstanceContainerGroupProfile_Get")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile))] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Description(@"Gets the properties of the specified container group profile in the specified subscription and resource group. The operation returns the properties of container group profile including containers, image registry credentials, restart policy, IP address type, OS type, volumes, current revision number, etc.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}", ApiVersion = "2024-05-01-preview")] + public partial class GetAzContainerInstanceContainerGroupProfile_Get : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ContainerInstance Client => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the container group profile. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the container group profile.")] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the container group profile.", + SerializedName = @"containerGroupProfileName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("ContainerGroupProfileName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription. The value must be an UUID.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzContainerInstanceContainerGroupProfile_Get() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.ContainerGroupProfilesGet(SubscriptionId, ResourceGroupName, Name, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerInstanceContainerGroupProfile_Get1.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerInstanceContainerGroupProfile_Get1.cs new file mode 100644 index 000000000000..1c172748bba5 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerInstanceContainerGroupProfile_Get1.cs @@ -0,0 +1,456 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; + using System; + + /// + /// Gets the properties of the specified revision of the container group profile in the given subscription and resource group. + /// The operation returns the properties of container group profile including containers, image registry credentials, restart + /// policy, IP address type, OS type, volumes, current revision number, etc. + /// + /// + /// [OpenAPI] GetByRevisionNumber=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}/revisions/{revisionNumber}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzContainerInstanceContainerGroupProfile_Get1")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile))] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Description(@"Gets the properties of the specified revision of the container group profile in the given subscription and resource group. The operation returns the properties of container group profile including containers, image registry credentials, restart policy, IP address type, OS type, volumes, current revision number, etc.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}/revisions/{revisionNumber}", ApiVersion = "2024-05-01-preview")] + public partial class GetAzContainerInstanceContainerGroupProfile_Get1 : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ContainerInstance Client => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the container group profile. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the container group profile.")] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the container group profile.", + SerializedName = @"containerGroupProfileName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("ContainerGroupProfileName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _revisionNumber; + + /// The revision number of the container group profile. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The revision number of the container group profile.")] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The revision number of the container group profile.", + SerializedName = @"revisionNumber", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Path)] + public string RevisionNumber { get => this._revisionNumber; set => this._revisionNumber = value; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription. The value must be an UUID.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzContainerInstanceContainerGroupProfile_Get1() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.ContainerGroupProfileGetByRevisionNumber(SubscriptionId, ResourceGroupName, Name, RevisionNumber, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name,RevisionNumber=RevisionNumber}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, RevisionNumber=RevisionNumber }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, RevisionNumber=RevisionNumber }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerInstanceContainerGroupProfile_GetViaIdentity.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerInstanceContainerGroupProfile_GetViaIdentity.cs new file mode 100644 index 000000000000..a9ec65157328 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerInstanceContainerGroupProfile_GetViaIdentity.cs @@ -0,0 +1,420 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; + using System; + + /// + /// Gets the properties of the specified container group profile in the specified subscription and resource group. The operation + /// returns the properties of container group profile including containers, image registry credentials, restart policy, IP + /// address type, OS type, volumes, current revision number, etc. + /// + /// + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzContainerInstanceContainerGroupProfile_GetViaIdentity")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile))] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Description(@"Gets the properties of the specified container group profile in the specified subscription and resource group. The operation returns the properties of container group profile including containers, image registry credentials, restart policy, IP address type, OS type, volumes, current revision number, etc.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}", ApiVersion = "2024-05-01-preview")] + public partial class GetAzContainerInstanceContainerGroupProfile_GetViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ContainerInstance Client => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzContainerInstanceContainerGroupProfile_GetViaIdentity() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.ContainerGroupProfilesGetViaIdentity(InputObject.Id, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ContainerGroupProfileName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ContainerGroupProfileName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.ContainerGroupProfilesGet(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.ContainerGroupProfileName ?? null, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerInstanceContainerGroupProfile_GetViaIdentity1.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerInstanceContainerGroupProfile_GetViaIdentity1.cs new file mode 100644 index 000000000000..913d0c533431 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerInstanceContainerGroupProfile_GetViaIdentity1.cs @@ -0,0 +1,424 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; + using System; + + /// + /// Gets the properties of the specified revision of the container group profile in the given subscription and resource group. + /// The operation returns the properties of container group profile including containers, image registry credentials, restart + /// policy, IP address type, OS type, volumes, current revision number, etc. + /// + /// + /// [OpenAPI] GetByRevisionNumber=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}/revisions/{revisionNumber}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzContainerInstanceContainerGroupProfile_GetViaIdentity1")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile))] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Description(@"Gets the properties of the specified revision of the container group profile in the given subscription and resource group. The operation returns the properties of container group profile including containers, image registry credentials, restart policy, IP address type, OS type, volumes, current revision number, etc.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}/revisions/{revisionNumber}", ApiVersion = "2024-05-01-preview")] + public partial class GetAzContainerInstanceContainerGroupProfile_GetViaIdentity1 : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ContainerInstance Client => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzContainerInstanceContainerGroupProfile_GetViaIdentity1() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.ContainerGroupProfileGetByRevisionNumberViaIdentity(InputObject.Id, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ContainerGroupProfileName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ContainerGroupProfileName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.RevisionNumber) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.RevisionNumber"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.ContainerGroupProfileGetByRevisionNumber(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.ContainerGroupProfileName ?? null, InputObject.RevisionNumber ?? null, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerInstanceContainerGroupProfile_List.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerInstanceContainerGroupProfile_List.cs new file mode 100644 index 000000000000..6c562528f320 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerInstanceContainerGroupProfile_List.cs @@ -0,0 +1,435 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; + using System; + + /// + /// Get a list of container group profiles in the specified subscription. This operation returns properties of each container + /// group profile including containers, image registry credentials, restart policy, IP address type, OS type,volumes,current + /// revision number, etc. + /// + /// + /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/containerGroupProfiles" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzContainerInstanceContainerGroupProfile_List")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile))] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Description(@"Get a list of container group profiles in the specified subscription. This operation returns properties of each container group profile including containers, image registry credentials, restart policy, IP address type, OS type,volumes,current revision number, etc.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/containerGroupProfiles", ApiVersion = "2024-05-01-preview")] + public partial class GetAzContainerInstanceContainerGroupProfile_List : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A flag to tell whether it is the first onOK call. + private bool _isFirst = true; + + /// Link to retrieve next page. + private string _nextLink; + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ContainerInstance Client => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription. The value must be an UUID.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileListResult + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzContainerInstanceContainerGroupProfile_List() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.ContainerGroupProfilesList(SubscriptionId, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileListResult + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // response should be returning an array of some kind. +Pageable + // pageable / value / nextLink + var result = await response; + WriteObject(result.Value,true); + _nextLink = result.NextLink; + if (_isFirst) + { + _isFirst = false; + while (_nextLink != null) + { + if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) + { + requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Method.Get ); + await ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.ContainerGroupProfilesList_Call(requestMessage, onOk, onDefault, this, Pipeline); + } + } + } + } + } + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerInstanceContainerGroupProfile_List1.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerInstanceContainerGroupProfile_List1.cs new file mode 100644 index 000000000000..1a69e19105f5 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerInstanceContainerGroupProfile_List1.cs @@ -0,0 +1,449 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; + using System; + + /// + /// Get a list of container group profiles in a specified subscription and resource group. This operation returns properties + /// of each container group profile including containers, image registry credentials, restart policy, IP address type, OS + /// type volumes, current revision number, etc. + /// + /// + /// [OpenAPI] ListByResourceGroup=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzContainerInstanceContainerGroupProfile_List1")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile))] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Description(@"Get a list of container group profiles in a specified subscription and resource group. This operation returns properties of each container group profile including containers, image registry credentials, restart policy, IP address type, OS type volumes, current revision number, etc.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles", ApiVersion = "2024-05-01-preview")] + public partial class GetAzContainerInstanceContainerGroupProfile_List1 : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A flag to tell whether it is the first onOK call. + private bool _isFirst = true; + + /// Link to retrieve next page. + private string _nextLink; + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ContainerInstance Client => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription. The value must be an UUID.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileListResult + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzContainerInstanceContainerGroupProfile_List1() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.ContainerGroupProfilesListByResourceGroup(SubscriptionId, ResourceGroupName, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfileListResult + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // response should be returning an array of some kind. +Pageable + // pageable / value / nextLink + var result = await response; + WriteObject(result.Value,true); + _nextLink = result.NextLink; + if (_isFirst) + { + _isFirst = false; + while (_nextLink != null) + { + if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) + { + requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Method.Get ); + await ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.ContainerGroupProfilesListByResourceGroup_Call(requestMessage, onOk, onDefault, this, Pipeline); + } + } + } + } + } + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerInstanceLog_List.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerInstanceLog_List.cs index 2859f6b8de57..54202a26da05 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerInstanceLog_List.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerInstanceLog_List.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Cmdlets [global::System.Management.Automation.OutputType(typeof(string))] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Description(@"Get the logs for a specified container instance in a specified resource group and container group.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/containers/{containerName}/logs", ApiVersion = "2022-10-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/containers/{containerName}/logs", ApiVersion = "2024-05-01-preview")] public partial class GetAzContainerInstanceLog_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener { @@ -129,12 +129,12 @@ public partial class GetAzContainerInstanceLog_List : global::System.Management. /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Path)] @@ -143,15 +143,12 @@ public partial class GetAzContainerInstanceLog_List : global::System.Management. /// Backing field for property. private string[] _subscriptionId; - /// - /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI - /// for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo( @@ -199,24 +196,24 @@ public partial class GetAzContainerInstanceLog_List : global::System.Management. /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogs + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogs /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -424,12 +421,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -446,7 +443,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, ContainerGroupName=ContainerGroupName, ContainerName=ContainerName, Tail=this.InvocationInformation.BoundParameters.ContainsKey("Tail") ? Tail : default(int?), Timestamp=this.InvocationInformation.BoundParameters.ContainsKey("Timestamp") ? Timestamp : default(global::System.Management.Automation.SwitchParameter?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -464,12 +461,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogs + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogs /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -481,7 +478,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogs + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogs WriteObject((await response).Content); } } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerInstanceOperation_List.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerInstanceOperation_List.cs index dbd008fd77bf..62d3613abdef 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerInstanceOperation_List.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerInstanceOperation_List.cs @@ -14,10 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzContainerInstanceOperation_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperation))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperation))] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Description(@"List the operations for Azure Container Instance service.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.HttpPath(Path = "/providers/Microsoft.ContainerInstance/operations", ApiVersion = "2022-10-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.HttpPath(Path = "/providers/Microsoft.ContainerInstance/operations", ApiVersion = "2024-05-01-preview")] public partial class GetAzContainerInstanceOperation_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener { @@ -108,24 +108,24 @@ public partial class GetAzContainerInstanceOperation_List : global::System.Manag /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -330,12 +330,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -352,7 +352,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -370,12 +370,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperationListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperationListResult /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerInstanceUsage_List.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerInstanceUsage_List.cs index 55926e649dbb..9dcdaebf0999 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerInstanceUsage_List.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/GetAzContainerInstanceUsage_List.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Cmdlets /// [OpenAPI] ListUsage=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/usages" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzContainerInstanceUsage_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsage))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsage))] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Description(@"Get the usage for a subscription")] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/usages", ApiVersion = "2022-10-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/usages", ApiVersion = "2024-05-01-preview")] public partial class GetAzContainerInstanceUsage_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener { @@ -70,12 +70,12 @@ public partial class GetAzContainerInstanceUsage_List : global::System.Managemen /// Backing field for property. private string _location; - /// The identifier for the physical azure location. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The identifier for the physical azure location.")] + /// The name of the Azure region. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Azure region.")] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The identifier for the physical azure location.", + Description = @"The name of the Azure region.", SerializedName = @"location", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Path)] @@ -113,15 +113,12 @@ public partial class GetAzContainerInstanceUsage_List : global::System.Managemen /// Backing field for property. private string[] _subscriptionId; - /// - /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI - /// for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo( @@ -136,24 +133,24 @@ public partial class GetAzContainerInstanceUsage_List : global::System.Managemen /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -361,12 +358,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -383,7 +380,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, Location=Location }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -401,12 +398,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsageListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsageListResult /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/InvokeAzContainerInstanceCommand_ExecuteExpanded.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/InvokeAzContainerInstanceCommand_ExecuteExpanded.cs index 21625b7e8838..5a40378d8af4 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/InvokeAzContainerInstanceCommand_ExecuteExpanded.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/InvokeAzContainerInstanceCommand_ExecuteExpanded.cs @@ -16,10 +16,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Invoke, @"AzContainerInstanceCommand_ExecuteExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecResponse))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecResponse))] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Description(@"Executes a command for a specific container instance in a specified resource group and container group.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/containers/{containerName}/exec", ApiVersion = "2022-10-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/containers/{containerName}/exec", ApiVersion = "2024-05-01-preview")] public partial class InvokeAzContainerInstanceCommand_ExecuteExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener { @@ -38,7 +38,7 @@ public partial class InvokeAzContainerInstanceCommand_ExecuteExpanded : global:: private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// The container exec request. - private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecRequest _containerExecRequestBody = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerExecRequest(); + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecRequest _containerExecRequestBody = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerExecRequest(); /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] @@ -144,12 +144,12 @@ public partial class InvokeAzContainerInstanceCommand_ExecuteExpanded : global:: /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Path)] @@ -158,15 +158,12 @@ public partial class InvokeAzContainerInstanceCommand_ExecuteExpanded : global:: /// Backing field for property. private string _subscriptionId; - /// - /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI - /// for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo( @@ -211,24 +208,24 @@ public partial class InvokeAzContainerInstanceCommand_ExecuteExpanded : global:: /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecResponse /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -436,12 +433,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -458,7 +455,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, ContainerGroupName=ContainerGroupName, ContainerName=ContainerName, body=_containerExecRequestBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -476,12 +473,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -493,7 +490,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecResponse + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecResponse WriteObject((await response)); } } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/NewAzContainerGroup_CreateExpanded.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/NewAzContainerGroup_CreateExpanded.cs index cb9a8f4dbc7c..9640411305c2 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/NewAzContainerGroup_CreateExpanded.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/NewAzContainerGroup_CreateExpanded.cs @@ -14,10 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzContainerGroup_CreateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup))] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Description(@"Create or update container groups with specified configurations.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}", ApiVersion = "2022-10-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}", ApiVersion = "2024-05-01-preview")] public partial class NewAzContainerGroup_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener { @@ -36,7 +36,7 @@ public partial class NewAzContainerGroup_CreateExpanded : global::System.Managem private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// A container group. - private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup _containerGroupBody = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerGroup(); + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup _containerGroupBody = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroup(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -71,8 +71,32 @@ public partial class NewAzContainerGroup_CreateExpanded : global::System.Managem ReadOnly = false, Description = @"The containers within the container group.", SerializedName = @"containers", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainer) })] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainer[] Container { get => _containerGroupBody.Container ?? null /* arrayOf */; set => _containerGroupBody.Container = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainer) })] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainer[] Container { get => _containerGroupBody.Container ?? null /* arrayOf */; set => _containerGroupBody.Container = value; } + + /// + /// The container group profile reference id.This will be an ARM resource id in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}'. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The container group profile reference id.This will be an ARM resource id in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}'.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The container group profile reference id.This will be an ARM resource id in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}'.", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + public string ContainerGroupProfileId { get => _containerGroupBody.ProfileId ?? null; set => _containerGroupBody.ProfileId = value; } + + /// The container group profile reference revision. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The container group profile reference revision.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The container group profile reference revision.", + SerializedName = @"revision", + PossibleTypes = new [] { typeof(int) })] + public int ContainerGroupProfileRevision { get => _containerGroupBody.ProfileRevision ?? default(int); set => _containerGroupBody.ProfileRevision = value; } /// /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet @@ -171,8 +195,8 @@ public partial class NewAzContainerGroup_CreateExpanded : global::System.Managem ReadOnly = false, Description = @"extensions used by virtual kubelet", SerializedName = @"extensions", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpec) })] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpec[] Extension { get => _containerGroupBody.Extension ?? null /* arrayOf */; set => _containerGroupBody.Extension = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpec) })] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpec[] Extension { get => _containerGroupBody.Extension ?? null /* arrayOf */; set => _containerGroupBody.Extension = value; } /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] @@ -236,8 +260,8 @@ public partial class NewAzContainerGroup_CreateExpanded : global::System.Managem ReadOnly = false, Description = @"The list of ports exposed on the container group.", SerializedName = @"ports", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IPort) })] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IPort[] IPAddressPort { get => _containerGroupBody.IPAddressPort ?? null /* arrayOf */; set => _containerGroupBody.IPAddressPort = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPort) })] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPort[] IPAddressPort { get => _containerGroupBody.IPAddressPort ?? null /* arrayOf */; set => _containerGroupBody.IPAddressPort = value; } /// Specifies if the IP is exposed to the public internet or private VNET. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Specifies if the IP is exposed to the public internet or private VNET.")] @@ -276,8 +300,8 @@ public partial class NewAzContainerGroup_CreateExpanded : global::System.Managem ReadOnly = false, Description = @"The list of user identities associated with the container group.", SerializedName = @"userAssignedIdentities", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentityUserAssignedIdentities) })] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentityUserAssignedIdentities IdentityUserAssignedIdentity { get => _containerGroupBody.IdentityUserAssignedIdentity ?? null /* object */; set => _containerGroupBody.IdentityUserAssignedIdentity = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentityUserAssignedIdentities) })] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentityUserAssignedIdentities IdentityUserAssignedIdentity { get => _containerGroupBody.IdentityUserAssignedIdentity ?? null /* object */; set => _containerGroupBody.IdentityUserAssignedIdentity = value; } /// The image registry credentials by which the container group is created from. [global::System.Management.Automation.AllowEmptyCollection] @@ -288,8 +312,8 @@ public partial class NewAzContainerGroup_CreateExpanded : global::System.Managem ReadOnly = false, Description = @"The image registry credentials by which the container group is created from.", SerializedName = @"imageRegistryCredentials", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IImageRegistryCredential) })] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IImageRegistryCredential[] ImageRegistryCredential { get => _containerGroupBody.ImageRegistryCredentials ?? null /* arrayOf */; set => _containerGroupBody.ImageRegistryCredentials = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredential) })] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredential[] ImageRegistryCredential { get => _containerGroupBody.ImageRegistryCredentials ?? null /* arrayOf */; set => _containerGroupBody.ImageRegistryCredentials = value; } /// The init containers for a container group. [global::System.Management.Automation.AllowEmptyCollection] @@ -300,8 +324,8 @@ public partial class NewAzContainerGroup_CreateExpanded : global::System.Managem ReadOnly = false, Description = @"The init containers for a container group.", SerializedName = @"initContainers", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinition) })] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinition[] InitContainer { get => _containerGroupBody.InitContainer ?? null /* arrayOf */; set => _containerGroupBody.InitContainer = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinition) })] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinition[] InitContainer { get => _containerGroupBody.InitContainer ?? null /* arrayOf */; set => _containerGroupBody.InitContainer = value; } /// Accessor for our copy of the InvocationInfo. public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } @@ -338,8 +362,8 @@ public partial class NewAzContainerGroup_CreateExpanded : global::System.Managem ReadOnly = false, Description = @"Metadata for log analytics.", SerializedName = @"metadata", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsMetadata) })] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsMetadata LogAnalyticMetadata { get => _containerGroupBody.LogAnalyticMetadata ?? null /* object */; set => _containerGroupBody.LogAnalyticMetadata = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsMetadata) })] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsMetadata LogAnalyticMetadata { get => _containerGroupBody.LogAnalyticMetadata ?? null /* object */; set => _containerGroupBody.LogAnalyticMetadata = value; } /// The workspace id for log analytics [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The workspace id for log analytics")] @@ -406,20 +430,16 @@ public partial class NewAzContainerGroup_CreateExpanded : global::System.Managem public global::System.Management.Automation.SwitchParameter NoWait { get; set; } /// The operating system type required by the containers in the container group. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The operating system type required by the containers in the container group.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The operating system type required by the containers in the container group.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Description = @"The operating system type required by the containers in the container group.", SerializedName = @"osType", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes) })] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo( - Name = @"", - Description =@"Sets OSType equal Linux by default.", - Script = @"""Linux""")] [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes))] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes OSType { get => _containerGroupBody.OSType; set => _containerGroupBody.OSType = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes OSType { get => _containerGroupBody.OSType ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes)""); set => _containerGroupBody.OSType = value; } /// /// The instance of the that the remote call will use. @@ -457,12 +477,12 @@ public partial class NewAzContainerGroup_CreateExpanded : global::System.Managem /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Path)] @@ -495,6 +515,33 @@ public partial class NewAzContainerGroup_CreateExpanded : global::System.Managem [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku))] public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku Sku { get => _containerGroupBody.Sku ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku)""); set => _containerGroupBody.Sku = value; } + /// + /// The flag to determine whether ACI should fail the create request if the container group can not be obtained from standby + /// pool. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The flag to determine whether ACI should fail the create request if the container group can not be obtained from standby pool.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The flag to determine whether ACI should fail the create request if the container group can not be obtained from standby pool.", + SerializedName = @"failContainerGroupCreateOnReuseFailure", + PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] + public global::System.Management.Automation.SwitchParameter StandbyPoolProfileFailContainerGroupCreateOnReuseFailure { get => _containerGroupBody.StandbyPoolProfileFailContainerGroupCreateOnReuseFailure ?? default(global::System.Management.Automation.SwitchParameter); set => _containerGroupBody.StandbyPoolProfileFailContainerGroupCreateOnReuseFailure = value; } + + /// + /// The standby pool profile reference id.This will be an ARM resource id in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyContainerGroupPools/{standbyPoolName}'. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The standby pool profile reference id.This will be an ARM resource id in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyContainerGroupPools/{standbyPoolName}'.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The standby pool profile reference id.This will be an ARM resource id in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyContainerGroupPools/{standbyPoolName}'.", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + public string StandbyPoolProfileId { get => _containerGroupBody.StandbyPoolProfileId ?? null; set => _containerGroupBody.StandbyPoolProfileId = value; } + /// The subnet resource IDs for a container group. [global::System.Management.Automation.AllowEmptyCollection] [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The subnet resource IDs for a container group.")] @@ -504,21 +551,18 @@ public partial class NewAzContainerGroup_CreateExpanded : global::System.Managem ReadOnly = false, Description = @"The subnet resource IDs for a container group.", SerializedName = @"subnetIds", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupSubnetId) })] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupSubnetId[] SubnetId { get => _containerGroupBody.SubnetId ?? null /* arrayOf */; set => _containerGroupBody.SubnetId = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupSubnetId) })] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupSubnetId[] SubnetId { get => _containerGroupBody.SubnetId ?? null /* arrayOf */; set => _containerGroupBody.SubnetId = value; } /// Backing field for property. private string _subscriptionId; - /// - /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI - /// for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo( @@ -537,8 +581,8 @@ public partial class NewAzContainerGroup_CreateExpanded : global::System.Managem ReadOnly = false, Description = @"The resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceTags Tag { get => _containerGroupBody.Tag ?? null /* object */; set => _containerGroupBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceTags Tag { get => _containerGroupBody.Tag ?? null /* object */; set => _containerGroupBody.Tag = value; } /// The list of volumes that can be mounted by containers in this container group. [global::System.Management.Automation.AllowEmptyCollection] @@ -549,8 +593,8 @@ public partial class NewAzContainerGroup_CreateExpanded : global::System.Managem ReadOnly = false, Description = @"The list of volumes that can be mounted by containers in this container group.", SerializedName = @"volumes", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolume) })] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolume[] Volume { get => _containerGroupBody.Volume ?? null /* arrayOf */; set => _containerGroupBody.Volume = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolume) })] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolume[] Volume { get => _containerGroupBody.Volume ?? null /* arrayOf */; set => _containerGroupBody.Volume = value; } /// The zones for the container group. [global::System.Management.Automation.AllowEmptyCollection] @@ -569,24 +613,24 @@ public partial class NewAzContainerGroup_CreateExpanded : global::System.Managem /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -848,12 +892,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -870,7 +914,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, body=_containerGroupBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -888,12 +932,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -905,7 +949,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup WriteObject((await response)); } } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/NewAzContainerInstanceContainerGroupProfile_CreateExpanded.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/NewAzContainerInstanceContainerGroupProfile_CreateExpanded.cs new file mode 100644 index 000000000000..102315525900 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/NewAzContainerInstanceContainerGroupProfile_CreateExpanded.cs @@ -0,0 +1,800 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; + using System; + + /// Create or update container group profiles with specified configurations. + /// + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzContainerInstanceContainerGroupProfile_CreateExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile))] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Description(@"Create or update container group profiles with specified configurations.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}", ApiVersion = "2024-05-01-preview")] + public partial class NewAzContainerInstanceContainerGroupProfile_CreateExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A container group profile. + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile _containerGroupProfileBody = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupProfile(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ContainerInstance Client => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.ClientAPI; + + /// The base64 encoded confidential compute enforcement policy + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The base64 encoded confidential compute enforcement policy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The base64 encoded confidential compute enforcement policy", + SerializedName = @"ccePolicy", + PossibleTypes = new [] { typeof(string) })] + public string ConfidentialComputePropertyCcePolicy { get => _containerGroupProfileBody.ConfidentialComputePropertyCcePolicy ?? null; set => _containerGroupProfileBody.ConfidentialComputePropertyCcePolicy = value; } + + /// The containers within the container group. + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The containers within the container group.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The containers within the container group.", + SerializedName = @"containers", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainer) })] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainer[] Container { get => _containerGroupProfileBody.Container ?? null /* arrayOf */; set => _containerGroupProfileBody.Container = value; } + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// The keyvault managed identity. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The keyvault managed identity.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The keyvault managed identity.", + SerializedName = @"identity", + PossibleTypes = new [] { typeof(string) })] + public string EncryptionPropertyIdentity { get => _containerGroupProfileBody.EncryptionPropertyIdentity ?? null; set => _containerGroupProfileBody.EncryptionPropertyIdentity = value; } + + /// The encryption key name. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The encryption key name.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The encryption key name.", + SerializedName = @"keyName", + PossibleTypes = new [] { typeof(string) })] + public string EncryptionPropertyKeyName { get => _containerGroupProfileBody.EncryptionPropertyKeyName ?? null; set => _containerGroupProfileBody.EncryptionPropertyKeyName = value; } + + /// The encryption key version. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The encryption key version.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The encryption key version.", + SerializedName = @"keyVersion", + PossibleTypes = new [] { typeof(string) })] + public string EncryptionPropertyKeyVersion { get => _containerGroupProfileBody.EncryptionPropertyKeyVersion ?? null; set => _containerGroupProfileBody.EncryptionPropertyKeyVersion = value; } + + /// The keyvault base url. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The keyvault base url.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The keyvault base url.", + SerializedName = @"vaultBaseUrl", + PossibleTypes = new [] { typeof(string) })] + public string EncryptionPropertyVaultBaseUrl { get => _containerGroupProfileBody.EncryptionPropertyVaultBaseUrl ?? null; set => _containerGroupProfileBody.EncryptionPropertyVaultBaseUrl = value; } + + /// extensions used by virtual kubelet + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "extensions used by virtual kubelet")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"extensions used by virtual kubelet", + SerializedName = @"extensions", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpec) })] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpec[] Extension { get => _containerGroupProfileBody.Extension ?? null /* arrayOf */; set => _containerGroupProfileBody.Extension = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// + /// The value representing the security enum. The 'Unsecure' value is the default value if not selected and means the object's + /// domain name label is not secured against subdomain takeover. The 'TenantReuse' value is the default value if selected + /// and means the object's domain name label can be reused within the same tenant. The 'SubscriptionReuse' value means the + /// object's domain name label can be reused within the same subscription. The 'ResourceGroupReuse' value means the object's + /// domain name label can be reused within the same resource group. The 'NoReuse' value means the object's domain name label + /// cannot be reused within the same resource group, subscription, or tenant. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The value representing the security enum. The 'Unsecure' value is the default value if not selected and means the object's domain name label is not secured against subdomain takeover. The 'TenantReuse' value is the default value if selected and means the object's domain name label can be reused within the same tenant. The 'SubscriptionReuse' value means the object's domain name label can be reused within the same subscription. The 'ResourceGroupReuse' value means the object's domain name label can be reused within the same resource group. The 'NoReuse' value means the object's domain name label cannot be reused within the same resource group, subscription, or tenant.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The value representing the security enum. The 'Unsecure' value is the default value if not selected and means the object's domain name label is not secured against subdomain takeover. The 'TenantReuse' value is the default value if selected and means the object's domain name label can be reused within the same tenant. The 'SubscriptionReuse' value means the object's domain name label can be reused within the same subscription. The 'ResourceGroupReuse' value means the object's domain name label can be reused within the same resource group. The 'NoReuse' value means the object's domain name label cannot be reused within the same resource group, subscription, or tenant.", + SerializedName = @"autoGeneratedDomainNameLabelScope", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy))] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy IPAddressAutoGeneratedDomainNameLabelScope { get => _containerGroupProfileBody.IPAddressAutoGeneratedDomainNameLabelScope ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy)""); set => _containerGroupProfileBody.IPAddressAutoGeneratedDomainNameLabelScope = value; } + + /// The Dns name label for the IP. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The Dns name label for the IP.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The Dns name label for the IP.", + SerializedName = @"dnsNameLabel", + PossibleTypes = new [] { typeof(string) })] + public string IPAddressDnsNameLabel { get => _containerGroupProfileBody.IPAddressDnsNameLabel ?? null; set => _containerGroupProfileBody.IPAddressDnsNameLabel = value; } + + /// The IP exposed to the public internet. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The IP exposed to the public internet.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The IP exposed to the public internet.", + SerializedName = @"ip", + PossibleTypes = new [] { typeof(string) })] + public string IPAddressIP { get => _containerGroupProfileBody.IPAddressIP ?? null; set => _containerGroupProfileBody.IPAddressIP = value; } + + /// The list of ports exposed on the container group. + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The list of ports exposed on the container group.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The list of ports exposed on the container group.", + SerializedName = @"ports", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPort) })] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPort[] IPAddressPort { get => _containerGroupProfileBody.IPAddressPort ?? null /* arrayOf */; set => _containerGroupProfileBody.IPAddressPort = value; } + + /// Specifies if the IP is exposed to the public internet or private VNET. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Specifies if the IP is exposed to the public internet or private VNET.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Specifies if the IP is exposed to the public internet or private VNET.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType))] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType IPAddressType { get => _containerGroupProfileBody.IPAddressType ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType)""); set => _containerGroupProfileBody.IPAddressType = value; } + + /// The image registry credentials by which the container group is created from. + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The image registry credentials by which the container group is created from.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The image registry credentials by which the container group is created from.", + SerializedName = @"imageRegistryCredentials", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredential) })] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredential[] ImageRegistryCredential { get => _containerGroupProfileBody.ImageRegistryCredentials ?? null /* arrayOf */; set => _containerGroupProfileBody.ImageRegistryCredentials = value; } + + /// The init containers for a container group. + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The init containers for a container group.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The init containers for a container group.", + SerializedName = @"initContainers", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinition) })] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinition[] InitContainer { get => _containerGroupProfileBody.InitContainer ?? null /* arrayOf */; set => _containerGroupProfileBody.InitContainer = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// The resource location. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The resource location.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The resource location.", + SerializedName = @"location", + PossibleTypes = new [] { typeof(string) })] + public string Location { get => _containerGroupProfileBody.Location ?? null; set => _containerGroupProfileBody.Location = value; } + + /// The log type to be used. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The log type to be used.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The log type to be used.", + SerializedName = @"logType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType))] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType LogAnalyticLogType { get => _containerGroupProfileBody.LogAnalyticLogType ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType)""); set => _containerGroupProfileBody.LogAnalyticLogType = value; } + + /// Metadata for log analytics. + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ExportAs(typeof(global::System.Collections.Hashtable))] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Metadata for log analytics.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Metadata for log analytics.", + SerializedName = @"metadata", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsMetadata) })] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsMetadata LogAnalyticMetadata { get => _containerGroupProfileBody.LogAnalyticMetadata ?? null /* object */; set => _containerGroupProfileBody.LogAnalyticMetadata = value; } + + /// The workspace id for log analytics + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The workspace id for log analytics")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The workspace id for log analytics", + SerializedName = @"workspaceId", + PossibleTypes = new [] { typeof(string) })] + public string LogAnalyticWorkspaceId { get => _containerGroupProfileBody.LogAnalyticWorkspaceId ?? null; set => _containerGroupProfileBody.LogAnalyticWorkspaceId = value; } + + /// The workspace key for log analytics + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The workspace key for log analytics")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The workspace key for log analytics", + SerializedName = @"workspaceKey", + PossibleTypes = new [] { typeof(string) })] + public string LogAnalyticWorkspaceKey { get => _containerGroupProfileBody.LogAnalyticWorkspaceKey ?? null; set => _containerGroupProfileBody.LogAnalyticWorkspaceKey = value; } + + /// The workspace resource id for log analytics + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The workspace resource id for log analytics")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The workspace resource id for log analytics", + SerializedName = @"workspaceResourceId", + PossibleTypes = new [] { typeof(string) })] + public string LogAnalyticWorkspaceResourceId { get => _containerGroupProfileBody.LogAnalyticWorkspaceResourceId ?? null; set => _containerGroupProfileBody.LogAnalyticWorkspaceResourceId = value; } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the container group profile. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the container group profile.")] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the container group profile.", + SerializedName = @"containerGroupProfileName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("ContainerGroupProfileName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// The operating system type required by the containers in the container group. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The operating system type required by the containers in the container group.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The operating system type required by the containers in the container group.", + SerializedName = @"osType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes))] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes OSType { get => _containerGroupProfileBody.OSType; set => _containerGroupProfileBody.OSType = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.HttpPipeline Pipeline { get; set; } + + /// The priority of the container group. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The priority of the container group.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The priority of the container group.", + SerializedName = @"priority", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority))] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority Priority { get => _containerGroupProfileBody.Priority ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority)""); set => _containerGroupProfileBody.Priority = value; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// + /// Restart policy for all containers within the container group. - `Always` Always restart- `OnFailure` Restart on failure- + /// `Never` Never restart + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Restart policy for all containers within the container group. - `Always` Always restart- `OnFailure` Restart on failure- `Never` Never restart")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Restart policy for all containers within the container group. - `Always` Always restart- `OnFailure` Restart on failure- `Never` Never restart", + SerializedName = @"restartPolicy", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy))] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy RestartPolicy { get => _containerGroupProfileBody.RestartPolicy ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy)""); set => _containerGroupProfileBody.RestartPolicy = value; } + + /// The SKU for a container group. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The SKU for a container group.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The SKU for a container group.", + SerializedName = @"sku", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku))] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku Sku { get => _containerGroupProfileBody.Sku ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku)""); set => _containerGroupProfileBody.Sku = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription. The value must be an UUID.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// The resource tags. + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ExportAs(typeof(global::System.Collections.Hashtable))] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The resource tags.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The resource tags.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceTags Tag { get => _containerGroupProfileBody.Tag ?? null /* object */; set => _containerGroupProfileBody.Tag = value; } + + /// The list of volumes that can be mounted by containers in this container group. + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The list of volumes that can be mounted by containers in this container group.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The list of volumes that can be mounted by containers in this container group.", + SerializedName = @"volumes", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolume) })] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolume[] Volume { get => _containerGroupProfileBody.Volume ?? null /* arrayOf */; set => _containerGroupProfileBody.Volume = value; } + + /// The zones for the container group. + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The zones for the container group.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The zones for the container group.", + SerializedName = @"zones", + PossibleTypes = new [] { typeof(string) })] + public string[] Zone { get => _containerGroupProfileBody.Zone ?? null /* arrayOf */; set => _containerGroupProfileBody.Zone = value; } + + /// + /// overrideOnCreated will be called before the regular onCreated has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile + /// from the remote call + /// /// Determines if the rest of the onCreated method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnCreated(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public NewAzContainerInstanceContainerGroupProfile_CreateExpanded() + { + + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'ContainerGroupProfilesCreateOrUpdate' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.ContainerGroupProfilesCreateOrUpdate(SubscriptionId, ResourceGroupName, Name, _containerGroupProfileBody, onOk, onCreated, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name,body=_containerGroupProfileBody}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// a delegate that is called when the remote service returns 201 (Created). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onCreated(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnCreated(responseMessage, response, ref _returnNow); + // if overrideOnCreated has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onCreated - response for 201 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile + WriteObject((await response)); + } + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, body=_containerGroupProfileBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, body=_containerGroupProfileBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/RemoveAzContainerGroup_Delete.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/RemoveAzContainerGroup_Delete.cs index 2fcbf6070144..d1670281bfb6 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/RemoveAzContainerGroup_Delete.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/RemoveAzContainerGroup_Delete.cs @@ -16,10 +16,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Cmdlets /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzContainerGroup_Delete", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup))] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Description(@"Delete the specified container group in the specified subscription and resource group. The operation does not delete other resources provided by the user, such as volumes.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}", ApiVersion = "2022-10-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}", ApiVersion = "2024-05-01-preview")] public partial class RemoveAzContainerGroup_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener { @@ -137,12 +137,12 @@ public partial class RemoveAzContainerGroup_Delete : global::System.Management.A /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Path)] @@ -151,15 +151,12 @@ public partial class RemoveAzContainerGroup_Delete : global::System.Management.A /// Backing field for property. private string _subscriptionId; - /// - /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI - /// for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo( @@ -174,12 +171,12 @@ public partial class RemoveAzContainerGroup_Delete : global::System.Management.A /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -196,12 +193,12 @@ public partial class RemoveAzContainerGroup_Delete : global::System.Management.A /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -462,12 +459,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -484,7 +481,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -526,12 +523,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -543,7 +540,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup WriteObject((await response)); } } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/RemoveAzContainerGroup_DeleteViaIdentity.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/RemoveAzContainerGroup_DeleteViaIdentity.cs index 24ecea168066..94aae31f8b87 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/RemoveAzContainerGroup_DeleteViaIdentity.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/RemoveAzContainerGroup_DeleteViaIdentity.cs @@ -16,10 +16,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Cmdlets /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzContainerGroup_DeleteViaIdentity", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup))] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Description(@"Delete the specified container group in the specified subscription and resource group. The operation does not delete other resources provided by the user, such as volumes.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}", ApiVersion = "2022-10-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}", ApiVersion = "2024-05-01-preview")] public partial class RemoveAzContainerGroup_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener { @@ -132,12 +132,12 @@ public partial class RemoveAzContainerGroup_DeleteViaIdentity : global::System.M /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -154,12 +154,12 @@ public partial class RemoveAzContainerGroup_DeleteViaIdentity : global::System.M /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -437,12 +437,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -459,7 +459,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -501,12 +501,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -518,7 +518,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup WriteObject((await response)); } } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/RemoveAzContainerInstanceContainerGroupProfile_Delete.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/RemoveAzContainerInstanceContainerGroupProfile_Delete.cs new file mode 100644 index 000000000000..eee7556b4089 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/RemoveAzContainerInstanceContainerGroupProfile_Delete.cs @@ -0,0 +1,480 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; + using System; + + /// + /// Delete the specified container group profile in the specified subscription and resource group. The operation does not + /// delete other resources provided by the user, such as volumes. + /// + /// + /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzContainerInstanceContainerGroupProfile_Delete", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Description(@"Delete the specified container group profile in the specified subscription and resource group. The operation does not delete other resources provided by the user, such as volumes.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}", ApiVersion = "2024-05-01-preview")] + public partial class RemoveAzContainerInstanceContainerGroupProfile_Delete : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ContainerInstance Client => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the container group profile. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the container group profile.")] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the container group profile.", + SerializedName = @"containerGroupProfileName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("ContainerGroupProfileName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription. The value must be an UUID.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of + /// what happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onNoContent method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnNoContent(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'ContainerGroupProfilesDelete' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.ContainerGroupProfilesDelete(SubscriptionId, ResourceGroupName, Name, onOk, onNoContent, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public RemoveAzContainerInstanceContainerGroupProfile_Delete() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 204 (NoContent). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onNoContent(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnNoContent(responseMessage, ref _returnNow); + // if overrideOnNoContent has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onNoContent - response for 204 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/RemoveAzContainerInstanceContainerGroupProfile_DeleteViaIdentity.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/RemoveAzContainerInstanceContainerGroupProfile_DeleteViaIdentity.cs new file mode 100644 index 000000000000..1bed33a623fc --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/RemoveAzContainerInstanceContainerGroupProfile_DeleteViaIdentity.cs @@ -0,0 +1,462 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; + using System; + + /// + /// Delete the specified container group profile in the specified subscription and resource group. The operation does not + /// delete other resources provided by the user, such as volumes. + /// + /// + /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzContainerInstanceContainerGroupProfile_DeleteViaIdentity", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Description(@"Delete the specified container group profile in the specified subscription and resource group. The operation does not delete other resources provided by the user, such as volumes.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}", ApiVersion = "2024-05-01-preview")] + public partial class RemoveAzContainerInstanceContainerGroupProfile_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ContainerInstance Client => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of + /// what happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onNoContent method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnNoContent(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'ContainerGroupProfilesDelete' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.ContainerGroupProfilesDeleteViaIdentity(InputObject.Id, onOk, onNoContent, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ContainerGroupProfileName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ContainerGroupProfileName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.ContainerGroupProfilesDelete(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.ContainerGroupProfileName ?? null, onOk, onNoContent, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Intializes a new instance of the cmdlet + /// class. + /// + public RemoveAzContainerInstanceContainerGroupProfile_DeleteViaIdentity() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 204 (NoContent). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onNoContent(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnNoContent(responseMessage, ref _returnNow); + // if overrideOnNoContent has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onNoContent - response for 204 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/RemoveAzContainerInstanceSubnetServiceAssociationLink_Delete.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/RemoveAzContainerInstanceSubnetServiceAssociationLink_Delete.cs index 76b3e4ec5811..42c3ff034281 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/RemoveAzContainerInstanceSubnetServiceAssociationLink_Delete.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/RemoveAzContainerInstanceSubnetServiceAssociationLink_Delete.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Description(@"Delete container group virtual network association links. The operation does not delete other resources provided by the user.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}/providers/Microsoft.ContainerInstance/serviceAssociationLinks/default", ApiVersion = "2022-10-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}/providers/Microsoft.ContainerInstance/serviceAssociationLinks/default", ApiVersion = "2024-05-01-preview")] public partial class RemoveAzContainerInstanceSubnetServiceAssociationLink_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener { @@ -122,12 +122,12 @@ public partial class RemoveAzContainerInstanceSubnetServiceAssociationLink_Delet /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Path)] @@ -150,15 +150,12 @@ public partial class RemoveAzContainerInstanceSubnetServiceAssociationLink_Delet /// Backing field for property. private string _subscriptionId; - /// - /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI - /// for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo( @@ -187,12 +184,12 @@ public partial class RemoveAzContainerInstanceSubnetServiceAssociationLink_Delet /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -476,12 +473,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -498,7 +495,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, VirtualNetworkName=VirtualNetworkName, SubnetName=SubnetName }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/RemoveAzContainerInstanceSubnetServiceAssociationLink_DeleteViaIdentity.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/RemoveAzContainerInstanceSubnetServiceAssociationLink_DeleteViaIdentity.cs index e640934aef8b..71c056336062 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/RemoveAzContainerInstanceSubnetServiceAssociationLink_DeleteViaIdentity.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/RemoveAzContainerInstanceSubnetServiceAssociationLink_DeleteViaIdentity.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Description(@"Delete container group virtual network association links. The operation does not delete other resources provided by the user.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}/providers/Microsoft.ContainerInstance/serviceAssociationLinks/default", ApiVersion = "2022-10-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}/providers/Microsoft.ContainerInstance/serviceAssociationLinks/default", ApiVersion = "2024-05-01-preview")] public partial class RemoveAzContainerInstanceSubnetServiceAssociationLink_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener { @@ -132,12 +132,12 @@ public partial class RemoveAzContainerInstanceSubnetServiceAssociationLink_Delet /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -442,12 +442,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -464,7 +464,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/RestartAzContainerGroup_Restart.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/RestartAzContainerGroup_Restart.cs index 5aa38cc550e3..d412b9b2dd61 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/RestartAzContainerGroup_Restart.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/RestartAzContainerGroup_Restart.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Description(@"Restarts all containers in a container group in place. If container image has updates, new image will be downloaded.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/restart", ApiVersion = "2022-10-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/restart", ApiVersion = "2024-05-01-preview")] public partial class RestartAzContainerGroup_Restart : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener { @@ -136,12 +136,12 @@ public partial class RestartAzContainerGroup_Restart : global::System.Management /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Path)] @@ -150,15 +150,12 @@ public partial class RestartAzContainerGroup_Restart : global::System.Management /// Backing field for property. private string _subscriptionId; - /// - /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI - /// for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo( @@ -173,12 +170,12 @@ public partial class RestartAzContainerGroup_Restart : global::System.Management /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -449,12 +446,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -471,7 +468,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/RestartAzContainerGroup_RestartViaIdentity.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/RestartAzContainerGroup_RestartViaIdentity.cs index 336f8819d05b..2cbfe21969ef 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/RestartAzContainerGroup_RestartViaIdentity.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/RestartAzContainerGroup_RestartViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Description(@"Restarts all containers in a container group in place. If container image has updates, new image will be downloaded.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/restart", ApiVersion = "2022-10-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/restart", ApiVersion = "2024-05-01-preview")] public partial class RestartAzContainerGroup_RestartViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener { @@ -131,12 +131,12 @@ public partial class RestartAzContainerGroup_RestartViaIdentity : global::System /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -424,12 +424,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -446,7 +446,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/StartAzContainerGroup_Start.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/StartAzContainerGroup_Start.cs index 03cc740994af..6ab0877dc6b6 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/StartAzContainerGroup_Start.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/StartAzContainerGroup_Start.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Description(@"Starts all containers in a container group. Compute resources will be allocated and billing will start.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/start", ApiVersion = "2022-10-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/start", ApiVersion = "2024-05-01-preview")] public partial class StartAzContainerGroup_Start : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener { @@ -136,12 +136,12 @@ public partial class StartAzContainerGroup_Start : global::System.Management.Aut /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Path)] @@ -150,15 +150,12 @@ public partial class StartAzContainerGroup_Start : global::System.Management.Aut /// Backing field for property. private string _subscriptionId; - /// - /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI - /// for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo( @@ -173,12 +170,12 @@ public partial class StartAzContainerGroup_Start : global::System.Management.Aut /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -459,12 +456,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -481,7 +478,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/StartAzContainerGroup_StartViaIdentity.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/StartAzContainerGroup_StartViaIdentity.cs index 27313624f0f5..e52b614f3213 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/StartAzContainerGroup_StartViaIdentity.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/StartAzContainerGroup_StartViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Description(@"Starts all containers in a container group. Compute resources will be allocated and billing will start.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/start", ApiVersion = "2022-10-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/start", ApiVersion = "2024-05-01-preview")] public partial class StartAzContainerGroup_StartViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener { @@ -131,12 +131,12 @@ public partial class StartAzContainerGroup_StartViaIdentity : global::System.Man /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -434,12 +434,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -456,7 +456,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/StopAzContainerGroup_Stop.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/StopAzContainerGroup_Stop.cs index 52020775f85a..53547694f20c 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/StopAzContainerGroup_Stop.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/StopAzContainerGroup_Stop.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Description(@"Stops all containers in a container group. Compute resources will be deallocated and billing will stop.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/stop", ApiVersion = "2022-10-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/stop", ApiVersion = "2024-05-01-preview")] public partial class StopAzContainerGroup_Stop : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener { @@ -123,12 +123,12 @@ public partial class StopAzContainerGroup_Stop : global::System.Management.Autom /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Path)] @@ -137,15 +137,12 @@ public partial class StopAzContainerGroup_Stop : global::System.Management.Autom /// Backing field for property. private string _subscriptionId; - /// - /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI - /// for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo( @@ -160,12 +157,12 @@ public partial class StopAzContainerGroup_Stop : global::System.Management.Autom /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -383,12 +380,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -405,7 +402,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/StopAzContainerGroup_StopViaIdentity.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/StopAzContainerGroup_StopViaIdentity.cs index fde56750cd46..3bfaaa3f4e36 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/StopAzContainerGroup_StopViaIdentity.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/StopAzContainerGroup_StopViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Description(@"Stops all containers in a container group. Compute resources will be deallocated and billing will stop.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/stop", ApiVersion = "2022-10-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/stop", ApiVersion = "2024-05-01-preview")] public partial class StopAzContainerGroup_StopViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener { @@ -118,12 +118,12 @@ public partial class StopAzContainerGroup_StopViaIdentity : global::System.Manag /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -361,12 +361,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -383,7 +383,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/UpdateAzContainerGroup_UpdateExpanded.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/UpdateAzContainerGroup_UpdateExpanded.cs index 72e1865ab285..25a3f8a3b74f 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/UpdateAzContainerGroup_UpdateExpanded.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/UpdateAzContainerGroup_UpdateExpanded.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzContainerGroup_UpdateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup))] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Description(@"Updates container group tags with specified values.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}", ApiVersion = "2022-10-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}", ApiVersion = "2024-05-01-preview")] public partial class UpdateAzContainerGroup_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener { @@ -35,7 +35,7 @@ public partial class UpdateAzContainerGroup_UpdateExpanded : global::System.Mana private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// The Resource model definition. - private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.Resource(); + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Resource(); /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] @@ -128,12 +128,12 @@ public partial class UpdateAzContainerGroup_UpdateExpanded : global::System.Mana /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Path)] @@ -142,15 +142,12 @@ public partial class UpdateAzContainerGroup_UpdateExpanded : global::System.Mana /// Backing field for property. private string _subscriptionId; - /// - /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI - /// for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo( @@ -169,8 +166,8 @@ public partial class UpdateAzContainerGroup_UpdateExpanded : global::System.Mana ReadOnly = false, Description = @"The resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceTags Tag { get => _resourceBody.Tag ?? null /* object */; set => _resourceBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceTags Tag { get => _resourceBody.Tag ?? null /* object */; set => _resourceBody.Tag = value; } /// The zones for the container group. [global::System.Management.Automation.AllowEmptyCollection] @@ -189,24 +186,24 @@ public partial class UpdateAzContainerGroup_UpdateExpanded : global::System.Mana /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -414,12 +411,12 @@ public UpdateAzContainerGroup_UpdateExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -436,7 +433,7 @@ public UpdateAzContainerGroup_UpdateExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, body=_resourceBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -454,12 +451,12 @@ public UpdateAzContainerGroup_UpdateExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -471,7 +468,7 @@ public UpdateAzContainerGroup_UpdateExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup WriteObject((await response)); } } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/UpdateAzContainerGroup_UpdateViaIdentityExpanded.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/UpdateAzContainerGroup_UpdateViaIdentityExpanded.cs index f07123c20d02..5d1ec9a10807 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/UpdateAzContainerGroup_UpdateViaIdentityExpanded.cs +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/UpdateAzContainerGroup_UpdateViaIdentityExpanded.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzContainerGroup_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup))] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Description(@"Updates container group tags with specified values.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}", ApiVersion = "2022-10-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}", ApiVersion = "2024-05-01-preview")] public partial class UpdateAzContainerGroup_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener { @@ -35,7 +35,7 @@ public partial class UpdateAzContainerGroup_UpdateViaIdentityExpanded : global:: private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// The Resource model definition. - private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.Resource(); + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Resource(); /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] @@ -127,8 +127,8 @@ public partial class UpdateAzContainerGroup_UpdateViaIdentityExpanded : global:: ReadOnly = false, Description = @"The resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceTags Tag { get => _resourceBody.Tag ?? null /* object */; set => _resourceBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceTags Tag { get => _resourceBody.Tag ?? null /* object */; set => _resourceBody.Tag = value; } /// The zones for the container group. [global::System.Management.Automation.AllowEmptyCollection] @@ -147,24 +147,24 @@ public partial class UpdateAzContainerGroup_UpdateViaIdentityExpanded : global:: /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -392,12 +392,12 @@ public UpdateAzContainerGroup_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -414,7 +414,7 @@ public UpdateAzContainerGroup_UpdateViaIdentityExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_resourceBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -432,12 +432,12 @@ public UpdateAzContainerGroup_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -449,7 +449,7 @@ public UpdateAzContainerGroup_UpdateViaIdentityExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup WriteObject((await response)); } } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/UpdateAzContainerInstanceContainerGroupProfile_Patch.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/UpdateAzContainerInstanceContainerGroupProfile_Patch.cs new file mode 100644 index 000000000000..32d915583ddf --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/UpdateAzContainerInstanceContainerGroupProfile_Patch.cs @@ -0,0 +1,451 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; + using System; + + /// Patches container group profile with specified properties. + /// + /// [OpenAPI] Patch=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzContainerInstanceContainerGroupProfile_Patch", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile))] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Description(@"Patches container group profile with specified properties.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}", ApiVersion = "2024-05-01-preview")] + public partial class UpdateAzContainerInstanceContainerGroupProfile_Patch : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ContainerInstance Client => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the container group profile. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the container group profile.")] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the container group profile.", + SerializedName = @"containerGroupProfileName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("ContainerGroupProfileName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.HttpPipeline Pipeline { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePatch _property; + + /// Properties of container group profile that need to be patched + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Properties of container group profile that need to be patched", ValueFromPipeline = true)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Properties of container group profile that need to be patched", + SerializedName = @"properties", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePatch) })] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePatch Property { get => this._property; set => this._property = value; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription. The value must be an UUID.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'ContainerGroupProfilesPatch' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.ContainerGroupProfilesPatch(SubscriptionId, ResourceGroupName, Name, Property, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name,body=Property}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public UpdateAzContainerInstanceContainerGroupProfile_Patch() + { + + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, body=Property }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, body=Property }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/UpdateAzContainerInstanceContainerGroupProfile_PatchExpanded.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/UpdateAzContainerInstanceContainerGroupProfile_PatchExpanded.cs new file mode 100644 index 000000000000..89426d6d171a --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/UpdateAzContainerInstanceContainerGroupProfile_PatchExpanded.cs @@ -0,0 +1,453 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; + using System; + + /// Patches container group profile with specified properties. + /// + /// [OpenAPI] Patch=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzContainerInstanceContainerGroupProfile_PatchExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile))] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Description(@"Patches container group profile with specified properties.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}", ApiVersion = "2024-05-01-preview")] + public partial class UpdateAzContainerInstanceContainerGroupProfile_PatchExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Properties of container group profile that need to be patched + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePatch _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupProfilePatch(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ContainerInstance Client => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the container group profile. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the container group profile.")] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the container group profile.", + SerializedName = @"containerGroupProfileName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("ContainerGroupProfileName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription. The value must be an UUID.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// Resource tags. + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ExportAs(typeof(global::System.Collections.Hashtable))] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource tags.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource tags.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePatchTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePatchTags Tag { get => _propertiesBody.Tag ?? null /* object */; set => _propertiesBody.Tag = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'ContainerGroupProfilesPatch' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.ContainerGroupProfilesPatch(SubscriptionId, ResourceGroupName, Name, _propertiesBody, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name,body=_propertiesBody}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public UpdateAzContainerInstanceContainerGroupProfile_PatchExpanded() + { + + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, body=_propertiesBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, body=_propertiesBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/UpdateAzContainerInstanceContainerGroupProfile_PatchViaIdentity.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/UpdateAzContainerInstanceContainerGroupProfile_PatchViaIdentity.cs new file mode 100644 index 000000000000..8e5312fccdf5 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/UpdateAzContainerInstanceContainerGroupProfile_PatchViaIdentity.cs @@ -0,0 +1,433 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; + using System; + + /// Patches container group profile with specified properties. + /// + /// [OpenAPI] Patch=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzContainerInstanceContainerGroupProfile_PatchViaIdentity", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile))] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Description(@"Patches container group profile with specified properties.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}", ApiVersion = "2024-05-01-preview")] + public partial class UpdateAzContainerInstanceContainerGroupProfile_PatchViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ContainerInstance Client => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.HttpPipeline Pipeline { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePatch _property; + + /// Properties of container group profile that need to be patched + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Properties of container group profile that need to be patched", ValueFromPipeline = true)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Properties of container group profile that need to be patched", + SerializedName = @"properties", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePatch) })] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePatch Property { get => this._property; set => this._property = value; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'ContainerGroupProfilesPatch' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.ContainerGroupProfilesPatchViaIdentity(InputObject.Id, Property, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ContainerGroupProfileName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ContainerGroupProfileName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.ContainerGroupProfilesPatch(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.ContainerGroupProfileName ?? null, Property, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=Property}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Intializes a new instance of the cmdlet + /// class. + /// + public UpdateAzContainerInstanceContainerGroupProfile_PatchViaIdentity() + { + + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=Property }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=Property }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/UpdateAzContainerInstanceContainerGroupProfile_PatchViaIdentityExpanded.cs b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/UpdateAzContainerInstanceContainerGroupProfile_PatchViaIdentityExpanded.cs new file mode 100644 index 000000000000..3367eb56e206 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/UpdateAzContainerInstanceContainerGroupProfile_PatchViaIdentityExpanded.cs @@ -0,0 +1,435 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions; + using System; + + /// Patches container group profile with specified properties. + /// + /// [OpenAPI] Patch=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzContainerInstanceContainerGroupProfile_PatchViaIdentityExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile))] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Description(@"Patches container group profile with specified properties.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}", ApiVersion = "2024-05-01-preview")] + public partial class UpdateAzContainerInstanceContainerGroupProfile_PatchViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Properties of container group profile that need to be patched + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePatch _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerGroupProfilePatch(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ContainerInstance Client => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Resource tags. + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ExportAs(typeof(global::System.Collections.Hashtable))] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource tags.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource tags.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePatchTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePatchTags Tag { get => _propertiesBody.Tag ?? null /* object */; set => _propertiesBody.Tag = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'ContainerGroupProfilesPatch' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.ContainerGroupProfilesPatchViaIdentity(InputObject.Id, _propertiesBody, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ContainerGroupProfileName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ContainerGroupProfileName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.ContainerGroupProfilesPatch(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.ContainerGroupProfileName ?? null, _propertiesBody, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_propertiesBody}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Intializes a new instance of the + /// cmdlet class. + /// + public UpdateAzContainerInstanceContainerGroupProfile_PatchViaIdentityExpanded() + { + + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICloudError + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_propertiesBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_propertiesBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/help/Add-AzContainerInstanceOutput.md b/src/ContainerInstance/ContainerInstance.Autorest/help/Add-AzContainerInstanceOutput.md index 2f54df413aad..379ba0cfb49f 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/help/Add-AzContainerInstanceOutput.md +++ b/src/ContainerInstance/ContainerInstance.Autorest/help/Add-AzContainerInstanceOutput.md @@ -87,6 +87,7 @@ Accept wildcard characters: False ### -ResourceGroupName The name of the resource group. +The name is case insensitive. ```yaml Type: System.String @@ -101,8 +102,8 @@ Accept wildcard characters: False ``` ### -SubscriptionId -Subscription credentials which uniquely identify Microsoft Azure subscription. -The subscription ID forms part of the URI for every service call. +The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String @@ -154,7 +155,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerAttachResponse +### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerAttachResponse ## NOTES diff --git a/src/ContainerInstance/ContainerInstance.Autorest/help/Az.ContainerInstance.md b/src/ContainerInstance/ContainerInstance.Autorest/help/Az.ContainerInstance.md index ab22373aa962..391efb6800f2 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/help/Az.ContainerInstance.md +++ b/src/ContainerInstance/ContainerInstance.Autorest/help/Az.ContainerInstance.md @@ -28,6 +28,14 @@ Get the list of CPU/memory/GPU capabilities of a region. Gets all the network dependencies for this container group to allow complete control of network setting and configuration. For container groups, this will always be an empty list. +### [Get-AzContainerInstanceContainerGroupProfile](Get-AzContainerInstanceContainerGroupProfile.md) +Gets the properties of the specified container group profile in the specified subscription and resource group. +The operation returns the properties of container group profile including containers, image registry credentials, restart policy, IP address type, OS type, volumes, current revision number, etc. + +### [Get-AzContainerInstanceContainerGroupProfileRevision](Get-AzContainerInstanceContainerGroupProfileRevision.md) +Get a list of all the revisions of the specified container group profile in the given subscription and resource group. +This operation returns properties of each revision of the specified container group profile including containers, image registry credentials, restart policy, IP address type, OS type volumes, revision number, etc. + ### [Get-AzContainerInstanceLog](Get-AzContainerInstanceLog.md) Get the logs for a specified container instance in a specified resource group and container group. @@ -49,6 +57,9 @@ Create a in-memory object for Port ### [New-AzContainerGroupVolumeObject](New-AzContainerGroupVolumeObject.md) Create an in-memory object for Volume. +### [New-AzContainerInstanceContainerGroupProfile](New-AzContainerInstanceContainerGroupProfile.md) +Create or update container group profiles with specified configurations. + ### [New-AzContainerInstanceEnvironmentVariableObject](New-AzContainerInstanceEnvironmentVariableObject.md) Create a in-memory object for EnvironmentVariable @@ -58,6 +69,9 @@ Create a in-memory object for HttpHeader ### [New-AzContainerInstanceInitDefinitionObject](New-AzContainerInstanceInitDefinitionObject.md) Create a in-memory object for InitContainerDefinition +### [New-AzContainerInstanceNoDefaultObject](New-AzContainerInstanceNoDefaultObject.md) +Create a in-memory object for Container with no default values + ### [New-AzContainerInstanceObject](New-AzContainerInstanceObject.md) Create a in-memory object for Container @@ -71,6 +85,10 @@ Create a in-memory object for VolumeMount Delete the specified container group in the specified subscription and resource group. The operation does not delete other resources provided by the user, such as volumes. +### [Remove-AzContainerInstanceContainerGroupProfile](Remove-AzContainerInstanceContainerGroupProfile.md) +Delete the specified container group profile in the specified subscription and resource group. +The operation does not delete other resources provided by the user, such as volumes. + ### [Remove-AzContainerInstanceSubnetServiceAssociationLink](Remove-AzContainerInstanceSubnetServiceAssociationLink.md) Delete container group virtual network association links. The operation does not delete other resources provided by the user. @@ -90,3 +108,6 @@ Compute resources will be deallocated and billing will stop. ### [Update-AzContainerGroup](Update-AzContainerGroup.md) Updates container group tags with specified values. +### [Update-AzContainerInstanceContainerGroupProfile](Update-AzContainerInstanceContainerGroupProfile.md) +Patches container group profile with specified properties. + diff --git a/src/ContainerInstance/ContainerInstance.Autorest/help/Get-AzContainerGroup.md b/src/ContainerInstance/ContainerInstance.Autorest/help/Get-AzContainerGroup.md index b1e785991bb5..f1854beccd2a 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/help/Get-AzContainerGroup.md +++ b/src/ContainerInstance/ContainerInstance.Autorest/help/Get-AzContainerGroup.md @@ -192,6 +192,7 @@ Accept wildcard characters: False ### -ResourceGroupName The name of the resource group. +The name is case insensitive. ```yaml Type: System.String @@ -206,8 +207,8 @@ Accept wildcard characters: False ``` ### -SubscriptionId -Subscription credentials which uniquely identify Microsoft Azure subscription. -The subscription ID forms part of the URI for every service call. +The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String[] @@ -230,7 +231,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup +### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup ## NOTES diff --git a/src/ContainerInstance/ContainerInstance.Autorest/help/Get-AzContainerInstanceCachedImage.md b/src/ContainerInstance/ContainerInstance.Autorest/help/Get-AzContainerInstanceCachedImage.md index 5d6062ea3ece..18fe5e707b86 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/help/Get-AzContainerInstanceCachedImage.md +++ b/src/ContainerInstance/ContainerInstance.Autorest/help/Get-AzContainerInstanceCachedImage.md @@ -57,7 +57,7 @@ Accept wildcard characters: False ``` ### -Location -The identifier for the physical azure location. +The name of the Azure region. ```yaml Type: System.String @@ -72,8 +72,8 @@ Accept wildcard characters: False ``` ### -SubscriptionId -Subscription credentials which uniquely identify Microsoft Azure subscription. -The subscription ID forms part of the URI for every service call. +The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String[] @@ -94,7 +94,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICachedImages +### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICachedImages ## NOTES diff --git a/src/ContainerInstance/ContainerInstance.Autorest/help/Get-AzContainerInstanceCapability.md b/src/ContainerInstance/ContainerInstance.Autorest/help/Get-AzContainerInstanceCapability.md index a02d06d69520..7a576db9eb35 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/help/Get-AzContainerInstanceCapability.md +++ b/src/ContainerInstance/ContainerInstance.Autorest/help/Get-AzContainerInstanceCapability.md @@ -61,7 +61,7 @@ Accept wildcard characters: False ``` ### -Location -The identifier for the physical azure location. +The name of the Azure region. ```yaml Type: System.String @@ -76,8 +76,8 @@ Accept wildcard characters: False ``` ### -SubscriptionId -Subscription credentials which uniquely identify Microsoft Azure subscription. -The subscription ID forms part of the URI for every service call. +The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String[] @@ -98,7 +98,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilities +### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilities ## NOTES diff --git a/src/ContainerInstance/ContainerInstance.Autorest/help/Get-AzContainerInstanceContainerGroupOutboundNetworkDependencyEndpoint.md b/src/ContainerInstance/ContainerInstance.Autorest/help/Get-AzContainerInstanceContainerGroupOutboundNetworkDependencyEndpoint.md index f8d1a5355c75..0845ea571066 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/help/Get-AzContainerInstanceContainerGroupOutboundNetworkDependencyEndpoint.md +++ b/src/ContainerInstance/ContainerInstance.Autorest/help/Get-AzContainerInstanceContainerGroupOutboundNetworkDependencyEndpoint.md @@ -94,6 +94,7 @@ Accept wildcard characters: False ### -ResourceGroupName The name of the resource group. +The name is case insensitive. ```yaml Type: System.String @@ -108,8 +109,8 @@ Accept wildcard characters: False ``` ### -SubscriptionId -Subscription credentials which uniquely identify Microsoft Azure subscription. -The subscription ID forms part of the URI for every service call. +The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String[] diff --git a/src/ContainerInstance/ContainerInstance.Autorest/help/Get-AzContainerInstanceContainerGroupProfile.md b/src/ContainerInstance/ContainerInstance.Autorest/help/Get-AzContainerInstanceContainerGroupProfile.md new file mode 100644 index 000000000000..98e9474a473f --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/help/Get-AzContainerInstanceContainerGroupProfile.md @@ -0,0 +1,300 @@ +--- +external help file: +Module Name: Az.ContainerInstance +online version: https://learn.microsoft.com/powershell/module/az.containerinstance/get-azcontainerinstancecontainergroupprofile +schema: 2.0.0 +--- + +# Get-AzContainerInstanceContainerGroupProfile + +## SYNOPSIS +Gets the properties of the specified container group profile in the specified subscription and resource group. +The operation returns the properties of container group profile including containers, image registry credentials, restart policy, IP address type, OS type, volumes, current revision number, etc. + +## SYNTAX + +### List (Default) +``` +Get-AzContainerInstanceContainerGroupProfile [-SubscriptionId ] [-DefaultProfile ] + [] +``` + +### Get +``` +Get-AzContainerInstanceContainerGroupProfile -Name -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### Get1 +``` +Get-AzContainerInstanceContainerGroupProfile -Name -ResourceGroupName + -RevisionNumber [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzContainerInstanceContainerGroupProfile -InputObject + [-DefaultProfile ] [] +``` + +### GetViaIdentity1 +``` +Get-AzContainerInstanceContainerGroupProfile -InputObject + [-DefaultProfile ] [] +``` + +### List1 +``` +Get-AzContainerInstanceContainerGroupProfile -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [] +``` + +## DESCRIPTION +Gets the properties of the specified container group profile in the specified subscription and resource group. +The operation returns the properties of container group profile including containers, image registry credentials, restart policy, IP address type, OS type, volumes, current revision number, etc. + +## EXAMPLES + +### Example 1: List all container group profiles in the current subscription +```powershell +Get-AzContainerInstanceContainerGroupProfile +``` + +```output +Location Name Zone ResourceGroupName +-------- ---- ---- ----------------- +eastus test-cgp1 test-rg +eastus test-cgp2 test-rg +``` + +This command gets all container group profiles in the current subscription. + +### Example 2: Get container group profiles in a resource group +```powershell +Get-AzContainerInstanceContainerGroupProfile -ResourceGroupName test-rg +``` + +```output +Location Name Zone ResourceGroupName +-------- ---- ---- ----------------- +eastus test-cgp1 test-rg +eastus test-cgp2 test-rg +``` + +The command gets the container group profiles in the resource group `test-rg`. + +### Example 3: Get a specific container group profile +```powershell +Get-AzContainerInstanceContainerGroupProfile -Name test-cgp1 -ResourceGroupName test-rg | Format-List +``` + +```output +ConfidentialComputeProperty : {} +ConfidentialComputePropertyCcePolicy : +Container : {test-container} +Diagnostic : {} +DiagnosticLogAnalytic : {} +EncryptionProperty : {} +EncryptionPropertyIdentity : +EncryptionPropertyKeyName : +EncryptionPropertyKeyVersion : +EncryptionPropertyVaultBaseUrl : +Extension : +IPAddress : { + "type": "Public" + } +IPAddressAutoGeneratedDomainNameLabelScope : +IPAddressDnsNameLabel : +IPAddressFqdn : +IPAddressIP : +IPAddressPort : +IPAddressType : Public +Id : /subscriptions/00000000-0000-0000-0000-000000000000 + 0/resourceGroups/test-rg/providers/Microsoft.Contai + nerInstance/containerGroupProfiles/test-cgp1 +ImageRegistryCredentials : +InitContainer : {} +Location : eastus +LogAnalyticLogType : +LogAnalyticMetadata : { + } +LogAnalyticWorkspaceId : +LogAnalyticWorkspaceKey : +LogAnalyticWorkspaceResourceId : +Name : test-cgp1 +NetworkProfileId : +OSType : Linux +ResourceGroupName : test-rg +RestartPolicy : Never +Revision : 1 +Sku : Standard +Tag : {} +Type : Microsoft.ContainerInstance/containerGroupProfiles +Volume : +``` + +The command gets the specified container group profile. + +### Example 4: Get a specific revision of a container group profile in a resource group +```powershell +Get-AzContainerInstanceContainerGroupProfile -Name test-cgp -ResourceGroupName test-rg -RevisionNumber 1 | Format-List +``` + +```output +ConfidentialComputeProperty : {} +ConfidentialComputePropertyCcePolicy : +Container : {test-container} +Diagnostic : {} +DiagnosticLogAnalytic : {} +EncryptionProperty : {} +EncryptionPropertyIdentity : +EncryptionPropertyKeyName : +EncryptionPropertyKeyVersion : +EncryptionPropertyVaultBaseUrl : +Extension : +IPAddress : { + "type": "Public" + } +IPAddressAutoGeneratedDomainNameLabelScope : +IPAddressDnsNameLabel : +IPAddressFqdn : +IPAddressIP : +IPAddressPort : +IPAddressType : Public +Id : /subscriptions/00000000-0000-0000-0000-000000000000 + 0/resourceGroups/test-rg/providers/Microsoft.Contai + nerInstance/containerGroupProfiles/test-cgp1 +ImageRegistryCredentials : +InitContainer : {} +Location : eastus +LogAnalyticLogType : +LogAnalyticMetadata : { + } +LogAnalyticWorkspaceId : +LogAnalyticWorkspaceKey : +LogAnalyticWorkspaceResourceId : +Name : test-cgp +NetworkProfileId : +OSType : Linux +ResourceGroupName : test-rg +RestartPolicy : Never +Revision : 1 +Sku : Standard +Tag : {} +Type : Microsoft.ContainerInstance/containerGroupProfiles +Volume : +``` + +The command gets the first revision of the container group profile `test-cgp` in the resource group `test-rg`. + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity +Parameter Sets: GetViaIdentity, GetViaIdentity1 +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the container group profile. + +```yaml +Type: System.String +Parameter Sets: Get, Get1 +Aliases: ContainerGroupProfileName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Get, Get1, List1 +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RevisionNumber +The revision number of the container group profile. + +```yaml +Type: System.String +Parameter Sets: Get1 +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String[] +Parameter Sets: Get, Get1, List, List1 +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile + +## NOTES + +## RELATED LINKS + diff --git a/src/ContainerInstance/ContainerInstance.Autorest/help/Get-AzContainerInstanceContainerGroupProfileRevision.md b/src/ContainerInstance/ContainerInstance.Autorest/help/Get-AzContainerInstanceContainerGroupProfileRevision.md new file mode 100644 index 000000000000..41d9c290e8b2 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/help/Get-AzContainerInstanceContainerGroupProfileRevision.md @@ -0,0 +1,118 @@ +--- +external help file: +Module Name: Az.ContainerInstance +online version: https://learn.microsoft.com/powershell/module/az.containerinstance/get-azcontainerinstancecontainergroupprofilerevision +schema: 2.0.0 +--- + +# Get-AzContainerInstanceContainerGroupProfileRevision + +## SYNOPSIS +Get a list of all the revisions of the specified container group profile in the given subscription and resource group. +This operation returns properties of each revision of the specified container group profile including containers, image registry credentials, restart policy, IP address type, OS type volumes, revision number, etc. + +## SYNTAX + +``` +Get-AzContainerInstanceContainerGroupProfileRevision -ContainerGroupProfileName + -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [] +``` + +## DESCRIPTION +Get a list of all the revisions of the specified container group profile in the given subscription and resource group. +This operation returns properties of each revision of the specified container group profile including containers, image registry credentials, restart policy, IP address type, OS type volumes, revision number, etc. + +## EXAMPLES + +### Example 1: List all revisions of a container group profile present in a resource group in the current subscription +```powershell +Get-AzContainerInstanceContainerGroupProfileRevision -ContainerGroupProfileName test-cgp -ResourceGroupName test-rg +``` + +```output +Location Name Zone ResourceGroupName Revision +-------- ---- ---- ----------------- -------- +eastus test-cgp test-rg 1 +eastus test-cgp test-rg 2 +``` + +This command gets all revisions of `test-cgp` container group profile present in `test-rg` in the current subscription. + +## PARAMETERS + +### -ContainerGroupProfileName +The name of the container group profile. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile + +## NOTES + +## RELATED LINKS + diff --git a/src/ContainerInstance/ContainerInstance.Autorest/help/Get-AzContainerInstanceLog.md b/src/ContainerInstance/ContainerInstance.Autorest/help/Get-AzContainerInstanceLog.md index 040d3c314e42..85aaa42bd50d 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/help/Get-AzContainerInstanceLog.md +++ b/src/ContainerInstance/ContainerInstance.Autorest/help/Get-AzContainerInstanceLog.md @@ -103,6 +103,7 @@ Accept wildcard characters: False ### -ResourceGroupName The name of the resource group. +The name is case insensitive. ```yaml Type: System.String @@ -117,8 +118,8 @@ Accept wildcard characters: False ``` ### -SubscriptionId -Subscription credentials which uniquely identify Microsoft Azure subscription. -The subscription ID forms part of the URI for every service call. +The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String[] diff --git a/src/ContainerInstance/ContainerInstance.Autorest/help/Get-AzContainerInstanceUsage.md b/src/ContainerInstance/ContainerInstance.Autorest/help/Get-AzContainerInstanceUsage.md index 231e4363e90b..aa6e4c5449eb 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/help/Get-AzContainerInstanceUsage.md +++ b/src/ContainerInstance/ContainerInstance.Autorest/help/Get-AzContainerInstanceUsage.md @@ -60,7 +60,7 @@ Accept wildcard characters: False ``` ### -Location -The identifier for the physical azure location. +The name of the Azure region. ```yaml Type: System.String @@ -75,8 +75,8 @@ Accept wildcard characters: False ``` ### -SubscriptionId -Subscription credentials which uniquely identify Microsoft Azure subscription. -The subscription ID forms part of the URI for every service call. +The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String[] @@ -97,7 +97,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsage +### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsage ## NOTES diff --git a/src/ContainerInstance/ContainerInstance.Autorest/help/New-AzContainerGroup.md b/src/ContainerInstance/ContainerInstance.Autorest/help/New-AzContainerGroup.md index 5024121dc053..e8ac0bc71d68 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/help/New-AzContainerGroup.md +++ b/src/ContainerInstance/ContainerInstance.Autorest/help/New-AzContainerGroup.md @@ -13,17 +13,19 @@ Create or update container groups with specified configurations. ## SYNTAX ``` -New-AzContainerGroup -Name -ResourceGroupName -Container -Location - [-SubscriptionId ] [-DnsConfigNameServer ] [-DnsConfigOption ] - [-DnsConfigSearchDomain ] [-EncryptionPropertyKeyName ] - [-EncryptionPropertyKeyVersion ] [-EncryptionPropertyVaultBaseUrl ] - [-IdentityType ] [-IdentityUserAssignedIdentity ] - [-ImageRegistryCredential ] [-InitContainer ] - [-IPAddressDnsNameLabel ] [-IPAddressIP ] [-IPAddressPort ] - [-IPAddressType ] [-LogAnalyticLogType ] - [-LogAnalyticMetadata ] [-LogAnalyticWorkspaceId ] [-LogAnalyticWorkspaceKey ] +New-AzContainerGroup -Name -ResourceGroupName -Location [-SubscriptionId ] + [-Container ] [-ContainerGroupProfileId ] [-ContainerGroupProfileRevision ] + [-DnsConfigNameServer ] [-DnsConfigOption ] [-DnsConfigSearchDomain ] + [-EncryptionPropertyKeyName ] [-EncryptionPropertyKeyVersion ] + [-EncryptionPropertyVaultBaseUrl ] [-IdentityType ] + [-IdentityUserAssignedIdentity ] [-ImageRegistryCredential ] + [-InitContainer ] [-IPAddressDnsNameLabel ] [-IPAddressIP ] + [-IPAddressPort ] [-IPAddressType ] + [-LogAnalyticLogType ] [-LogAnalyticMetadata ] + [-LogAnalyticWorkspaceId ] [-LogAnalyticWorkspaceKey ] [-LogAnalyticWorkspaceResourceId ] [-OSType ] [-Priority ] [-RestartPolicy ] [-Sku ] + [-StandbyPoolProfileFailContainerGroupCreateOnReuseFailure] [-StandbyPoolProfileId ] [-SubnetId ] [-Tag ] [-Volume ] [-Zone ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` @@ -51,8 +53,9 @@ This commands creates a container group with a container instance, whose image i ### Example 2: Create container group and runs a custom script inside the container. ```powershell +$pwd = ConvertTo-SecureString -String "****" -AsPlainText -Force $env1 = New-AzContainerInstanceEnvironmentVariableObject -Name "env1" -Value "value1" -$env2 = New-AzContainerInstanceEnvironmentVariableObject -Name "env2" -SecureValue (ConvertTo-SecureString -String "value2" -AsPlainText -Force) +$env2 = New-AzContainerInstanceEnvironmentVariableObject -Name "env2" -SecureValue $pwd $container = New-AzContainerInstanceObject -Name test-container -Image alpine -Command "/bin/sh -c myscript.sh" -EnvironmentVariable @($env1, $env2) $containerGroup = New-AzContainerGroup -ResourceGroupName test-rg -Name test-cg -Location eastus -Container $container -OsType Linux ``` @@ -81,8 +84,9 @@ This commands creates a container group which prints out 'hello' and stops. ### Example 4: Create a container group with a container instance using image nginx in Azure Container Registry ```powershell +$pwd = ConvertTo-SecureString -String "****" -AsPlainText -Force $container = New-AzContainerInstanceObject -Name test-container -Image myacr.azurecr.io/nginx:latest -$imageRegistryCredential = New-AzContainerGroupImageRegistryCredentialObject -Server "myacr.azurecr.io" -Username "username" -Password (ConvertTo-SecureString "PlainTextPassword" -AsPlainText -Force) +$imageRegistryCredential = New-AzContainerGroupImageRegistryCredentialObject -Server "myacr.azurecr.io" -Username "username" -Password $pwd $containerGroup = New-AzContainerGroup -ResourceGroupName test-rg -Name test-cg -Location eastus -Container $container -ImageRegistryCredential $imageRegistryCredential ``` @@ -96,8 +100,9 @@ This commands creates a container group with a container instance, whose image i ### Example 5: Create a container group with a container instance using image nginx in custom container image Registry ```powershell +$pwd = ConvertTo-SecureString -String "****" -AsPlainText -Force $container = New-AzContainerInstanceObject -Name test-container -Image myserver.com/nginx:latest -$imageRegistryCredential = New-AzContainerGroupImageRegistryCredentialObject -Server "myserver.com" -Username "username" -Password (ConvertTo-SecureString "PlainTextPassword" -AsPlainText -Force) +$imageRegistryCredential = New-AzContainerGroupImageRegistryCredentialObject -Server "myserver.com" -Username "username" -Password $pwd $containerGroup = New-AzContainerGroup -ResourceGroupName test-rg -Name test-cg -Location eastus -Container $container -ImageRegistryCredential $imageRegistryCredential ``` @@ -111,7 +116,8 @@ This commands creates a container group with a container instance, whose image i ### Example 6: Create a container group that mounts Azure File volume ```powershell -$volume = New-AzContainerGroupVolumeObject -Name "myvolume" -AzureFileShareName "myshare" -AzureFileStorageAccountName "username" -AzureFileStorageAccountKey (ConvertTo-SecureString "PlainTextPassword" -AsPlainText -Force) +$pwd = ConvertTo-SecureString -String "****" -AsPlainText -Force +$volume = New-AzContainerGroupVolumeObject -Name "myvolume" -AzureFileShareName "myshare" -AzureFileStorageAccountName "username" -AzureFileStorageAccountKey $pwd $mount = New-AzContainerInstanceVolumeMountObject -MountPath "/aci/logs" -Name "myvolume" $container = New-AzContainerInstanceObject -Name test-container -Image alpine -VolumeMount $mount $containerGroup = New-AzContainerGroup -ResourceGroupName test-rg -Name test-cg -Location eastus -Container $container -Volume $volume @@ -161,11 +167,41 @@ The containers within the container group. To construct, see NOTES section for CONTAINER properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainer[] +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainer[] Parameter Sets: (All) Aliases: -Required: True +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ContainerGroupProfileId +The container group profile reference id.This will be an ARM resource id in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}'. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ContainerGroupProfileRevision +The container group profile reference revision. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False Position: Named Default value: None Accept pipeline input: False @@ -315,7 +351,7 @@ The image registry credentials by which the container group is created from. To construct, see NOTES section for IMAGEREGISTRYCREDENTIAL properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IImageRegistryCredential[] +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredential[] Parameter Sets: (All) Aliases: @@ -331,7 +367,7 @@ The init containers for a container group. To construct, see NOTES section for INITCONTAINER properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinition[] +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinition[] Parameter Sets: (All) Aliases: @@ -377,7 +413,7 @@ The list of ports exposed on the container group. To construct, see NOTES section for IPADDRESSPORT properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IPort[] +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPort[] Parameter Sets: (All) Aliases: @@ -533,7 +569,7 @@ Aliases: Required: False Position: Named -Default value: "Linux" +Default value: None Accept pipeline input: False Accept wildcard characters: False ``` @@ -599,12 +635,42 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -StandbyPoolProfileFailContainerGroupCreateOnReuseFailure +The flag to determine whether ACI should fail the create request if the container group can not be obtained from standby pool. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -StandbyPoolProfileId +The standby pool profile reference id.This will be an ARM resource id in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyContainerGroupPools/{standbyPoolName}'. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SubnetId The subnet resource IDs for a container group. To construct, see NOTES section for SUBNETID properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupSubnetId[] +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupSubnetId[] Parameter Sets: (All) Aliases: @@ -651,7 +717,7 @@ The list of volumes that can be mounted by containers in this container group. To construct, see NOTES section for VOLUME properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolume[] +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolume[] Parameter Sets: (All) Aliases: @@ -715,7 +781,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup +### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup ## NOTES diff --git a/src/ContainerInstance/ContainerInstance.Autorest/help/New-AzContainerGroupImageRegistryCredentialObject.md b/src/ContainerInstance/ContainerInstance.Autorest/help/New-AzContainerGroupImageRegistryCredentialObject.md index 0d4d82eb14b1..77acb5864972 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/help/New-AzContainerGroupImageRegistryCredentialObject.md +++ b/src/ContainerInstance/ContainerInstance.Autorest/help/New-AzContainerGroupImageRegistryCredentialObject.md @@ -24,7 +24,8 @@ Create a in-memory object for ImageRegistryCredential ### Example 1: Set up an image registry credential to create a container group ```powershell -New-AzContainerGroupImageRegistryCredentialObject -Server "myserver.com" -Username "username" -Password (ConvertTo-SecureString "******" -AsPlainText -Force) +$pwd = ConvertTo-SecureString -String "****" -AsPlainText -Force +New-AzContainerGroupImageRegistryCredentialObject -Server "myserver.com" -Username "username" -Password $pwd ``` ```output @@ -104,7 +105,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ImageRegistryCredential +### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ImageRegistryCredential ## NOTES diff --git a/src/ContainerInstance/ContainerInstance.Autorest/help/New-AzContainerGroupPortObject.md b/src/ContainerInstance/ContainerInstance.Autorest/help/New-AzContainerGroupPortObject.md index 2780e837c85e..05ccfdabb19b 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/help/New-AzContainerGroupPortObject.md +++ b/src/ContainerInstance/ContainerInstance.Autorest/help/New-AzContainerGroupPortObject.md @@ -73,7 +73,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.Port +### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Port ## NOTES diff --git a/src/ContainerInstance/ContainerInstance.Autorest/help/New-AzContainerGroupVolumeObject.md b/src/ContainerInstance/ContainerInstance.Autorest/help/New-AzContainerGroupVolumeObject.md index 8a1634d32819..ae2b74e29e20 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/help/New-AzContainerGroupVolumeObject.md +++ b/src/ContainerInstance/ContainerInstance.Autorest/help/New-AzContainerGroupVolumeObject.md @@ -26,7 +26,8 @@ Create an in-memory object for Volume. ### Example 1: Create a Azure File volume ```powershell -New-AzContainerGroupVolumeObject -Name "myvolume" -AzureFileShareName "myshare" -AzureFileStorageAccountName "username" -AzureFileStorageAccountKey (ConvertTo-SecureString "******" -AsPlainText -Force) +$pwd = ConvertTo-SecureString -String "****" -AsPlainText -Force +New-AzContainerGroupVolumeObject -Name "myvolume" -AzureFileShareName "myshare" -AzureFileStorageAccountName "username" -AzureFileStorageAccountKey $pwd ``` ```output @@ -126,7 +127,7 @@ The empty directory volume. To construct, see NOTES section for EMPTYDIR properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeEmptyDir +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeEmptyDir Parameter Sets: (All) Aliases: @@ -205,7 +206,7 @@ The secret volume. To construct, see NOTES section for SECRET properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ISecretVolume +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecretVolume Parameter Sets: (All) Aliases: @@ -223,7 +224,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.Volume +### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Volume ## NOTES diff --git a/src/ContainerInstance/ContainerInstance.Autorest/help/New-AzContainerInstanceContainerGroupProfile.md b/src/ContainerInstance/ContainerInstance.Autorest/help/New-AzContainerInstanceContainerGroupProfile.md new file mode 100644 index 000000000000..11d2cac97844 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/help/New-AzContainerInstanceContainerGroupProfile.md @@ -0,0 +1,625 @@ +--- +external help file: +Module Name: Az.ContainerInstance +online version: https://learn.microsoft.com/powershell/module/az.containerinstance/new-azcontainerinstancecontainergroupprofile +schema: 2.0.0 +--- + +# New-AzContainerInstanceContainerGroupProfile + +## SYNOPSIS +Create or update container group profiles with specified configurations. + +## SYNTAX + +``` +New-AzContainerInstanceContainerGroupProfile -Name -ResourceGroupName + -Container -OSType [-SubscriptionId ] + [-ConfidentialComputePropertyCcePolicy ] [-EncryptionPropertyIdentity ] + [-EncryptionPropertyKeyName ] [-EncryptionPropertyKeyVersion ] + [-EncryptionPropertyVaultBaseUrl ] [-Extension ] + [-ImageRegistryCredential ] [-InitContainer ] + [-IPAddressAutoGeneratedDomainNameLabelScope ] [-IPAddressDnsNameLabel ] + [-IPAddressIP ] [-IPAddressPort ] [-IPAddressType ] + [-Location ] [-LogAnalyticLogType ] [-LogAnalyticMetadata ] + [-LogAnalyticWorkspaceId ] [-LogAnalyticWorkspaceKey ] + [-LogAnalyticWorkspaceResourceId ] [-Priority ] + [-RestartPolicy ] [-Sku ] [-Tag ] + [-Volume ] [-Zone ] [-DefaultProfile ] [-Confirm] [-WhatIf] + [] +``` + +## DESCRIPTION +Create or update container group profiles with specified configurations. + +## EXAMPLES + +### Example 1: Create a container group profile with a container instance and request a public IP address with opening ports +```powershell +$port1 = New-AzContainerInstancePortObject -Port 8000 -Protocol TCP +$port2 = New-AzContainerInstancePortObject -Port 8001 -Protocol TCP +$container = New-AzContainerInstanceObject -Name test-container -Image nginx -RequestCpu 1 -RequestMemoryInGb 1.5 -Port @($port1, $port2) +$containerGroupProfile = New-AzContainerInstanceContainerGroupProfile -ResourceGroupName test-rg -Name test-cgp -Location eastus -Container $container -OsType Linux -RestartPolicy "Never" -IpAddressType Public +``` + +```output +Location Name Zone ResourceGroupName +-------- ---- ---- ----------------- +eastus test-cgp test-rg +``` + +This commands creates a container group profile with a container instance, whose image is latest nginx, and requests a public IP address with opening port 8000 and 8001. + +### Example 2: Create container group profile and runs a custom script inside the container. +```powershell +$pwd = ConvertTo-SecureString -String "****" -AsPlainText -Force +$env1 = New-AzContainerInstanceEnvironmentVariableObject -Name "env1" -Value "value1" +$env2 = New-AzContainerInstanceEnvironmentVariableObject -Name "env2" -SecureValue $pwd +$container = New-AzContainerInstanceObject -Name test-container -Image alpine -Command "/bin/sh -c myscript.sh" -EnvironmentVariable @($env1, $env2) -RequestCpu 1 -RequestMemoryInGb 1.5 +$containerGroupProfile = New-AzContainerInstanceContainerGroupProfile -ResourceGroupName test-rg -Name test-cgp -Location eastus -Container $container -OsType Linux +``` + +```output +Location Name Zone ResourceGroupName +-------- ---- ---- ----------------- +eastus test-cgp test-rg +``` + +This commands creates a container group profile and runs a custom script inside the container. + +### Example 3: Create a container group profile with a container instance using image nginx in Azure Container Registry +```powershell +$pwd = ConvertTo-SecureString -String "****" -AsPlainText -Force +$container = New-AzContainerInstanceObject -Name test-container -Image myacr.azurecr.io/nginx:latest -RequestCpu 1 -RequestMemoryInGb 1.5 +$imageRegistryCredential = New-AzContainerGroupImageRegistryCredentialObject -Server "myacr.azurecr.io" -Username "username" -Password $pwd +$containerGroupProfile = New-AzContainerInstanceContainerGroupProfile -ResourceGroupName test-rg -Name test-cgp -Location eastus -Container $container -ImageRegistryCredential $imageRegistryCredential -OsType Linux +``` + +```output +Location Name Zone ResourceGroupName +-------- ---- ---- ----------------- +eastus test-cgp test-rg +``` + +This commands creates a container group profile with a container instance, whose image is nginx in Azure Container Registry. + +### Example 4: Create a container group profile with Spot priority and a container instance using nginx image +```powershell +$container = New-AzContainerInstanceObject -Name test-container -Image nginx -RequestCpu 1 -RequestMemoryInGb 1.5 +$containerGroupProfile = New-AzContainerInstanceContainerGroupProfile -ResourceGroupName test-rg -Name test-cgp -Location eastus -Container $container -OsType Linux -RestartPolicy Never -Priority Spot +``` + +```output +Location Name Zone ResourceGroupName +-------- ---- ---- ----------------- +eastus test-cgp test-rg +``` + +This commands creates a container group profile with spot priority and a container instance, whose image is nginx. + +## PARAMETERS + +### -ConfidentialComputePropertyCcePolicy +The base64 encoded confidential compute enforcement policy + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Container +The containers within the container group. +To construct, see NOTES section for CONTAINER properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainer[] +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EncryptionPropertyIdentity +The keyvault managed identity. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EncryptionPropertyKeyName +The encryption key name. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EncryptionPropertyKeyVersion +The encryption key version. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EncryptionPropertyVaultBaseUrl +The keyvault base url. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Extension +extensions used by virtual kubelet +To construct, see NOTES section for EXTENSION properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpec[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ImageRegistryCredential +The image registry credentials by which the container group is created from. +To construct, see NOTES section for IMAGEREGISTRYCREDENTIAL properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredential[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InitContainer +The init containers for a container group. +To construct, see NOTES section for INITCONTAINER properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinition[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IPAddressAutoGeneratedDomainNameLabelScope +The value representing the security enum. +The 'Unsecure' value is the default value if not selected and means the object's domain name label is not secured against subdomain takeover. +The 'TenantReuse' value is the default value if selected and means the object's domain name label can be reused within the same tenant. +The 'SubscriptionReuse' value means the object's domain name label can be reused within the same subscription. +The 'ResourceGroupReuse' value means the object's domain name label can be reused within the same resource group. +The 'NoReuse' value means the object's domain name label cannot be reused within the same resource group, subscription, or tenant. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IPAddressDnsNameLabel +The Dns name label for the IP. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IPAddressIP +The IP exposed to the public internet. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IPAddressPort +The list of ports exposed on the container group. +To construct, see NOTES section for IPADDRESSPORT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPort[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IPAddressType +Specifies if the IP is exposed to the public internet or private VNET. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Location +The resource location. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -LogAnalyticLogType +The log type to be used. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -LogAnalyticMetadata +Metadata for log analytics. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -LogAnalyticWorkspaceId +The workspace id for log analytics + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -LogAnalyticWorkspaceKey +The workspace key for log analytics + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -LogAnalyticWorkspaceResourceId +The workspace resource id for log analytics + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the container group profile. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: ContainerGroupProfileName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -OSType +The operating system type required by the containers in the container group. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Priority +The priority of the container group. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RestartPolicy +Restart policy for all containers within the container group. +- `Always` Always restart- `OnFailure` Restart on failure- `Never` Never restart + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Sku +The SKU for a container group. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +The resource tags. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Volume +The list of volumes that can be mounted by containers in this container group. +To construct, see NOTES section for VOLUME properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolume[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Zone +The zones for the container group. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile + +## NOTES + +## RELATED LINKS + diff --git a/src/ContainerInstance/ContainerInstance.Autorest/help/New-AzContainerInstanceEnvironmentVariableObject.md b/src/ContainerInstance/ContainerInstance.Autorest/help/New-AzContainerInstanceEnvironmentVariableObject.md index 142dc37fb7d3..9879f4bda455 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/help/New-AzContainerInstanceEnvironmentVariableObject.md +++ b/src/ContainerInstance/ContainerInstance.Autorest/help/New-AzContainerInstanceEnvironmentVariableObject.md @@ -37,7 +37,8 @@ This command creates an environment variable within a container instance. ### Example 2: Create a secure environment variable within a container instance ```powershell -New-AzContainerInstanceEnvironmentVariableObject -Name "env2" -SecureValue (ConvertTo-SecureString -String "******" -AsPlainText -Force) +$pwd = ConvertTo-SecureString -String "****" -AsPlainText -Force +New-AzContainerInstanceEnvironmentVariableObject -Name "env2" -SecureValue $pwd ``` ```output @@ -102,7 +103,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.EnvironmentVariable +### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.EnvironmentVariable ## NOTES diff --git a/src/ContainerInstance/ContainerInstance.Autorest/help/New-AzContainerInstanceHttpHeaderObject.md b/src/ContainerInstance/ContainerInstance.Autorest/help/New-AzContainerInstanceHttpHeaderObject.md index 10a721e713e9..3d590d7470bf 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/help/New-AzContainerInstanceHttpHeaderObject.md +++ b/src/ContainerInstance/ContainerInstance.Autorest/help/New-AzContainerInstanceHttpHeaderObject.md @@ -73,7 +73,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.HttpHeader +### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.HttpHeader ## NOTES diff --git a/src/ContainerInstance/ContainerInstance.Autorest/help/New-AzContainerInstanceInitDefinitionObject.md b/src/ContainerInstance/ContainerInstance.Autorest/help/New-AzContainerInstanceInitDefinitionObject.md index f4455f8aeba4..5c080e4fb130 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/help/New-AzContainerInstanceInitDefinitionObject.md +++ b/src/ContainerInstance/ContainerInstance.Autorest/help/New-AzContainerInstanceInitDefinitionObject.md @@ -58,7 +58,7 @@ The environment variables to set in the init container. To construct, see NOTES section for ENVIRONMENTVARIABLE properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEnvironmentVariable[] +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariable[] Parameter Sets: (All) Aliases: @@ -104,7 +104,7 @@ The volume mounts available to the init container. To construct, see NOTES section for VOLUMEMOUNT properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeMount[] +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMount[] Parameter Sets: (All) Aliases: @@ -122,7 +122,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.InitContainerDefinition +### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.InitContainerDefinition ## NOTES diff --git a/src/ContainerInstance/ContainerInstance.Autorest/help/New-AzContainerInstanceNoDefaultObject.md b/src/ContainerInstance/ContainerInstance.Autorest/help/New-AzContainerInstanceNoDefaultObject.md new file mode 100644 index 000000000000..ad2bba7ef158 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/help/New-AzContainerInstanceNoDefaultObject.md @@ -0,0 +1,623 @@ +--- +external help file: +Module Name: Az.ContainerInstance +online version: https://learn.microsoft.com/powershell/module/az.ContainerInstance/New-AzContainerInstanceNoDefaultObject +schema: 2.0.0 +--- + +# New-AzContainerInstanceNoDefaultObject + +## SYNOPSIS +Create a in-memory object for Container with no default values + +## SYNTAX + +``` +New-AzContainerInstanceNoDefaultObject -Name [-Command ] + [-ConfigMapKeyValuePair ] [-EnvironmentVariable ] + [-Image ] [-LimitCpu ] [-LimitMemoryInGb ] [-LimitsGpuCount ] + [-LimitsGpuSku ] [-LivenessProbeExecCommand ] [-LivenessProbeFailureThreshold ] + [-LivenessProbeHttpGetHttpHeader ] [-LivenessProbeHttpGetPath ] + [-LivenessProbeHttpGetPort ] [-LivenessProbeHttpGetScheme ] + [-LivenessProbeInitialDelaySecond ] [-LivenessProbePeriodSecond ] + [-LivenessProbeSuccessThreshold ] [-LivenessProbeTimeoutSecond ] [-Port ] + [-ReadinessProbeExecCommand ] [-ReadinessProbeFailureThreshold ] + [-ReadinessProbeHttpGetHttpHeader ] [-ReadinessProbeHttpGetPath ] + [-ReadinessProbeHttpGetPort ] [-ReadinessProbeHttpGetScheme ] + [-ReadinessProbeInitialDelaySecond ] [-ReadinessProbePeriodSecond ] + [-ReadinessProbeSuccessThreshold ] [-ReadinessProbeTimeoutSecond ] [-RequestCpu ] + [-RequestMemoryInGb ] [-RequestsGpuCount ] [-RequestsGpuSku ] + [-VolumeMount ] [] +``` + +## DESCRIPTION +Create a in-memory object for Container with no default values + +## EXAMPLES + +### Example 1: Create a container instance using image alphine with request cpu 1.0 and request memory 1.5Gb +```powershell +New-AzContainerInstanceNoDefaultObject -Name "test-container" -Image alpine -RequestCpu 1 -RequestMemoryInGb 1.5 +``` + +```output +Name +---- +test-container +``` + +Create a container instance using image alphine with request cpu 1.0 and request memory 1.5Gb + +### Example 2: Create a container instance using image alphine with limit cpu 2.0 and limit memory 2.5Gb +```powershell +New-AzContainerInstanceNoDefaultObject -Image alpine -Name "test-container" -LimitCpu 2 -LimitMemoryInGb 2.5 +``` + +```output +Name +---- +test-container +``` + +Create a container instance using image alphine with limit cpu 2.0 and limit memory 2.5Gb + +### Example 3: Create a container group with a container instance +```powershell +$container = New-AzContainerInstanceNoDefaultObject -Name test-container -Image alpine +New-AzContainerGroup -ResourceGroupName testrg-rg -Name test-cg -Location eastus -Container $container +``` + +```output +Location Name Zone ResourceGroupName +-------- ---- ---- ----------------- +eastus test-cg test-rg +``` + +Create a container group with a container instance + +## PARAMETERS + +### -Command +The commands to execute within the container instance in exec form. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ConfigMapKeyValuePair +The key value pairs dictionary in the config map to set in the container instance. +To construct, see NOTES section for CONFIGMAPKEYVALUEPAIR properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfigMapKeyValuePairs +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EnvironmentVariable +The environment variables to set in the container instance. +To construct, see NOTES section for ENVIRONMENTVARIABLE properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariable[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Image +The name of the image used to create the container instance. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -LimitCpu +The CPU limit of this container instance. + +```yaml +Type: System.Double +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -LimitMemoryInGb +The memory limit in GB of this container instance. + +```yaml +Type: System.Double +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -LimitsGpuCount +The count of the GPU resource. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -LimitsGpuSku +The SKU of the GPU resource. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -LivenessProbeExecCommand +The commands to execute within the container. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -LivenessProbeFailureThreshold +The failure threshold. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -LivenessProbeHttpGetHttpHeader +The HTTP headers for liveness probe. +To construct, see NOTES section for LIVENESSPROBEHTTPGETHTTPHEADER properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -LivenessProbeHttpGetPath +The path to probe. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -LivenessProbeHttpGetPort +The port number to probe. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -LivenessProbeHttpGetScheme +The scheme. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -LivenessProbeInitialDelaySecond +The initial delay seconds. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -LivenessProbePeriodSecond +The period seconds. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -LivenessProbeSuccessThreshold +The success threshold. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -LivenessProbeTimeoutSecond +The timeout seconds. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The user-provided name of the container instance. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Port +The exposed ports on the container instance. +To construct, see NOTES section for PORT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPort[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ReadinessProbeExecCommand +The commands to execute within the container. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ReadinessProbeFailureThreshold +The failure threshold. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ReadinessProbeHttpGetHttpHeader +The HTTP headers for readiness probe. +To construct, see NOTES section for READINESSPROBEHTTPGETHTTPHEADER properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ReadinessProbeHttpGetPath +The path to probe. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ReadinessProbeHttpGetPort +The port number to probe. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ReadinessProbeHttpGetScheme +The scheme. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ReadinessProbeInitialDelaySecond +The initial delay seconds. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ReadinessProbePeriodSecond +The period seconds. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ReadinessProbeSuccessThreshold +The success threshold. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ReadinessProbeTimeoutSecond +The timeout seconds. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RequestCpu +The CPU request of this container instance. + +```yaml +Type: System.Double +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RequestMemoryInGb +The memory request in GB of this container instance. + +```yaml +Type: System.Double +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RequestsGpuCount +The count of the GPU resource. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RequestsGpuSku +The SKU of the GPU resource. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -VolumeMount +The volume mounts available to the container instance. +To construct, see NOTES section for VOLUMEMOUNT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMount[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Container + +## NOTES + +## RELATED LINKS + diff --git a/src/ContainerInstance/ContainerInstance.Autorest/help/New-AzContainerInstanceObject.md b/src/ContainerInstance/ContainerInstance.Autorest/help/New-AzContainerInstanceObject.md index c5b2928e596d..9ec605a83986 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/help/New-AzContainerInstanceObject.md +++ b/src/ContainerInstance/ContainerInstance.Autorest/help/New-AzContainerInstanceObject.md @@ -14,19 +14,20 @@ Create a in-memory object for Container ``` New-AzContainerInstanceObject -Image -Name [-Command ] - [-EnvironmentVariable ] [-LimitCpu ] [-LimitMemoryInGb ] - [-LimitsGpuCount ] [-LimitsGpuSku ] [-LivenessProbeExecCommand ] - [-LivenessProbeFailureThreshold ] [-LivenessProbeHttpGetHttpHeader ] - [-LivenessProbeHttpGetPath ] [-LivenessProbeHttpGetPort ] - [-LivenessProbeHttpGetScheme ] [-LivenessProbeInitialDelaySecond ] - [-LivenessProbePeriodSecond ] [-LivenessProbeSuccessThreshold ] - [-LivenessProbeTimeoutSecond ] [-Port ] [-ReadinessProbeExecCommand ] - [-ReadinessProbeFailureThreshold ] [-ReadinessProbeHttpGetHttpHeader ] - [-ReadinessProbeHttpGetPath ] [-ReadinessProbeHttpGetPort ] - [-ReadinessProbeHttpGetScheme ] [-ReadinessProbeInitialDelaySecond ] - [-ReadinessProbePeriodSecond ] [-ReadinessProbeSuccessThreshold ] - [-ReadinessProbeTimeoutSecond ] [-RequestCpu ] [-RequestMemoryInGb ] - [-RequestsGpuCount ] [-RequestsGpuSku ] [-VolumeMount ] [] + [-ConfigMapKeyValuePair ] [-EnvironmentVariable ] + [-LimitCpu ] [-LimitMemoryInGb ] [-LimitsGpuCount ] [-LimitsGpuSku ] + [-LivenessProbeExecCommand ] [-LivenessProbeFailureThreshold ] + [-LivenessProbeHttpGetHttpHeader ] [-LivenessProbeHttpGetPath ] + [-LivenessProbeHttpGetPort ] [-LivenessProbeHttpGetScheme ] + [-LivenessProbeInitialDelaySecond ] [-LivenessProbePeriodSecond ] + [-LivenessProbeSuccessThreshold ] [-LivenessProbeTimeoutSecond ] [-Port ] + [-ReadinessProbeExecCommand ] [-ReadinessProbeFailureThreshold ] + [-ReadinessProbeHttpGetHttpHeader ] [-ReadinessProbeHttpGetPath ] + [-ReadinessProbeHttpGetPort ] [-ReadinessProbeHttpGetScheme ] + [-ReadinessProbeInitialDelaySecond ] [-ReadinessProbePeriodSecond ] + [-ReadinessProbeSuccessThreshold ] [-ReadinessProbeTimeoutSecond ] [-RequestCpu ] + [-RequestMemoryInGb ] [-RequestsGpuCount ] [-RequestsGpuSku ] + [-VolumeMount ] [] ``` ## DESCRIPTION @@ -91,12 +92,28 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ConfigMapKeyValuePair +The key value pairs dictionary in the config map to set in the container instance. +To construct, see NOTES section for CONFIGMAPKEYVALUEPAIR properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfigMapKeyValuePairs +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -EnvironmentVariable The environment variables to set in the container instance. To construct, see NOTES section for ENVIRONMENTVARIABLE properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEnvironmentVariable[] +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariable[] Parameter Sets: (All) Aliases: @@ -217,7 +234,7 @@ The HTTP headers for liveness probe. To construct, see NOTES section for LIVENESSPROBEHTTPGETHTTPHEADER properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IHttpHeader[] +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader[] Parameter Sets: (All) Aliases: @@ -353,7 +370,7 @@ The exposed ports on the container instance. To construct, see NOTES section for PORT properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPort[] +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPort[] Parameter Sets: (All) Aliases: @@ -399,7 +416,7 @@ The HTTP headers for readiness probe. To construct, see NOTES section for READINESSPROBEHTTPGETHTTPHEADER properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IHttpHeader[] +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader[] Parameter Sets: (All) Aliases: @@ -580,7 +597,7 @@ The volume mounts available to the container instance. To construct, see NOTES section for VOLUMEMOUNT properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeMount[] +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMount[] Parameter Sets: (All) Aliases: @@ -598,7 +615,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.Container +### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Container ## NOTES diff --git a/src/ContainerInstance/ContainerInstance.Autorest/help/New-AzContainerInstancePortObject.md b/src/ContainerInstance/ContainerInstance.Autorest/help/New-AzContainerInstancePortObject.md index 259262bb029d..049f2f519f8f 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/help/New-AzContainerInstancePortObject.md +++ b/src/ContainerInstance/ContainerInstance.Autorest/help/New-AzContainerInstancePortObject.md @@ -73,7 +73,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerPort +### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerPort ## NOTES diff --git a/src/ContainerInstance/ContainerInstance.Autorest/help/New-AzContainerInstanceVolumeMountObject.md b/src/ContainerInstance/ContainerInstance.Autorest/help/New-AzContainerInstanceVolumeMountObject.md index a9aaa574a04d..9e816bb339b8 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/help/New-AzContainerInstanceVolumeMountObject.md +++ b/src/ContainerInstance/ContainerInstance.Autorest/help/New-AzContainerInstanceVolumeMountObject.md @@ -90,7 +90,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.VolumeMount +### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.VolumeMount ## NOTES diff --git a/src/ContainerInstance/ContainerInstance.Autorest/help/Remove-AzContainerGroup.md b/src/ContainerInstance/ContainerInstance.Autorest/help/Remove-AzContainerGroup.md index 5698d802ac6d..b00b10eb0bf2 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/help/Remove-AzContainerGroup.md +++ b/src/ContainerInstance/ContainerInstance.Autorest/help/Remove-AzContainerGroup.md @@ -153,6 +153,7 @@ Accept wildcard characters: False ### -ResourceGroupName The name of the resource group. +The name is case insensitive. ```yaml Type: System.String @@ -167,8 +168,8 @@ Accept wildcard characters: False ``` ### -SubscriptionId -Subscription credentials which uniquely identify Microsoft Azure subscription. -The subscription ID forms part of the URI for every service call. +The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String @@ -222,7 +223,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup +### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup ## NOTES diff --git a/src/ContainerInstance/ContainerInstance.Autorest/help/Remove-AzContainerInstanceContainerGroupProfile.md b/src/ContainerInstance/ContainerInstance.Autorest/help/Remove-AzContainerInstanceContainerGroupProfile.md new file mode 100644 index 000000000000..2a26a696020e --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/help/Remove-AzContainerInstanceContainerGroupProfile.md @@ -0,0 +1,189 @@ +--- +external help file: +Module Name: Az.ContainerInstance +online version: https://learn.microsoft.com/powershell/module/az.containerinstance/remove-azcontainerinstancecontainergroupprofile +schema: 2.0.0 +--- + +# Remove-AzContainerInstanceContainerGroupProfile + +## SYNOPSIS +Delete the specified container group profile in the specified subscription and resource group. +The operation does not delete other resources provided by the user, such as volumes. + +## SYNTAX + +### Delete (Default) +``` +Remove-AzContainerInstanceContainerGroupProfile -Name -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### DeleteViaIdentity +``` +Remove-AzContainerInstanceContainerGroupProfile -InputObject + [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Delete the specified container group profile in the specified subscription and resource group. +The operation does not delete other resources provided by the user, such as volumes. + +## EXAMPLES + +### Example 1: Remove a container group profile +```powershell +Remove-AzContainerInstanceContainerGroupProfile -Name test-cgp -ResourceGroupName test-rg +``` + +This command removes the specified container group profile. + +### Example 2: Removes a container group profile by piping +```powershell +Get-AzContainerInstanceContainerGroupProfile -Name test-cgp -ResourceGroupName test-rg | Remove-AzContainerInstanceContainerGroupProfile +``` + +This command removes a container group profile by piping. + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the container group profile. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: ContainerGroupProfileName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS + diff --git a/src/ContainerInstance/ContainerInstance.Autorest/help/Remove-AzContainerInstanceSubnetServiceAssociationLink.md b/src/ContainerInstance/ContainerInstance.Autorest/help/Remove-AzContainerInstanceSubnetServiceAssociationLink.md index 937959351ed4..6818918479a7 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/help/Remove-AzContainerInstanceSubnetServiceAssociationLink.md +++ b/src/ContainerInstance/ContainerInstance.Autorest/help/Remove-AzContainerInstanceSubnetServiceAssociationLink.md @@ -120,6 +120,7 @@ Accept wildcard characters: False ### -ResourceGroupName The name of the resource group. +The name is case insensitive. ```yaml Type: System.String @@ -149,8 +150,8 @@ Accept wildcard characters: False ``` ### -SubscriptionId -Subscription credentials which uniquely identify Microsoft Azure subscription. -The subscription ID forms part of the URI for every service call. +The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String diff --git a/src/ContainerInstance/ContainerInstance.Autorest/help/Restart-AzContainerGroup.md b/src/ContainerInstance/ContainerInstance.Autorest/help/Restart-AzContainerGroup.md index f519c9441774..5cf5c747578d 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/help/Restart-AzContainerGroup.md +++ b/src/ContainerInstance/ContainerInstance.Autorest/help/Restart-AzContainerGroup.md @@ -141,6 +141,7 @@ Accept wildcard characters: False ### -ResourceGroupName The name of the resource group. +The name is case insensitive. ```yaml Type: System.String @@ -155,8 +156,8 @@ Accept wildcard characters: False ``` ### -SubscriptionId -Subscription credentials which uniquely identify Microsoft Azure subscription. -The subscription ID forms part of the URI for every service call. +The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String diff --git a/src/ContainerInstance/ContainerInstance.Autorest/help/Start-AzContainerGroup.md b/src/ContainerInstance/ContainerInstance.Autorest/help/Start-AzContainerGroup.md index e92c1b7522dc..0bde48070b53 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/help/Start-AzContainerGroup.md +++ b/src/ContainerInstance/ContainerInstance.Autorest/help/Start-AzContainerGroup.md @@ -141,6 +141,7 @@ Accept wildcard characters: False ### -ResourceGroupName The name of the resource group. +The name is case insensitive. ```yaml Type: System.String @@ -155,8 +156,8 @@ Accept wildcard characters: False ``` ### -SubscriptionId -Subscription credentials which uniquely identify Microsoft Azure subscription. -The subscription ID forms part of the URI for every service call. +The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String diff --git a/src/ContainerInstance/ContainerInstance.Autorest/help/Stop-AzContainerGroup.md b/src/ContainerInstance/ContainerInstance.Autorest/help/Stop-AzContainerGroup.md index 27ec68dd83ba..d3a08d8b54c9 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/help/Stop-AzContainerGroup.md +++ b/src/ContainerInstance/ContainerInstance.Autorest/help/Stop-AzContainerGroup.md @@ -112,6 +112,7 @@ Accept wildcard characters: False ### -ResourceGroupName The name of the resource group. +The name is case insensitive. ```yaml Type: System.String @@ -126,8 +127,8 @@ Accept wildcard characters: False ``` ### -SubscriptionId -Subscription credentials which uniquely identify Microsoft Azure subscription. -The subscription ID forms part of the URI for every service call. +The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String diff --git a/src/ContainerInstance/ContainerInstance.Autorest/help/Update-AzContainerGroup.md b/src/ContainerInstance/ContainerInstance.Autorest/help/Update-AzContainerGroup.md index 57fb0ee71dd8..29c56dbab024 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/help/Update-AzContainerGroup.md +++ b/src/ContainerInstance/ContainerInstance.Autorest/help/Update-AzContainerGroup.md @@ -126,6 +126,7 @@ Accept wildcard characters: False ### -ResourceGroupName The name of the resource group. +The name is case insensitive. ```yaml Type: System.String @@ -140,8 +141,8 @@ Accept wildcard characters: False ``` ### -SubscriptionId -Subscription credentials which uniquely identify Microsoft Azure subscription. -The subscription ID forms part of the URI for every service call. +The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String @@ -225,7 +226,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup +### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup ## NOTES diff --git a/src/ContainerInstance/ContainerInstance.Autorest/help/Update-AzContainerInstanceContainerGroupProfile.md b/src/ContainerInstance/ContainerInstance.Autorest/help/Update-AzContainerInstanceContainerGroupProfile.md new file mode 100644 index 000000000000..969862e2b298 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/help/Update-AzContainerInstanceContainerGroupProfile.md @@ -0,0 +1,236 @@ +--- +external help file: +Module Name: Az.ContainerInstance +online version: https://learn.microsoft.com/powershell/module/az.containerinstance/update-azcontainerinstancecontainergroupprofile +schema: 2.0.0 +--- + +# Update-AzContainerInstanceContainerGroupProfile + +## SYNOPSIS +Patches container group profile with specified properties. + +## SYNTAX + +### PatchExpanded (Default) +``` +Update-AzContainerInstanceContainerGroupProfile -Name -ResourceGroupName + [-SubscriptionId ] [-Tag ] [-DefaultProfile ] [-Confirm] [-WhatIf] + [] +``` + +### Patch +``` +Update-AzContainerInstanceContainerGroupProfile -Name -ResourceGroupName + -Property [-SubscriptionId ] [-DefaultProfile ] [-Confirm] + [-WhatIf] [] +``` + +### PatchViaIdentity +``` +Update-AzContainerInstanceContainerGroupProfile -InputObject + -Property [-DefaultProfile ] [-Confirm] [-WhatIf] + [] +``` + +### PatchViaIdentityExpanded +``` +Update-AzContainerInstanceContainerGroupProfile -InputObject [-Tag ] + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Patches container group profile with specified properties. + +## EXAMPLES + +### Example 1: Update a container group profile +```powershell +$container = Update-AzContainerInstanceContainerGroupProfile -Name test-cgp -ResourceGroupName test-rg -Tag @{"k"="v"} +$container.Tag | Format-List +``` + +```output +Keys : {k} +Values : {v} +AdditionalProperties : {[k, v]} +Count : 1 +``` + +This command updates a container group profile. + +### Example 2: Update a container group profile using piping +```powershell +$container = Get-AzContainerInstanceContainerGroupProfile -Name test-cgp -ResourceGroupName test-rg | Update-AzContainerInstanceContainerGroupProfile -Tag @{"k"="v"} +$container.Tag | Format-List +``` + +```output +Keys : {k} +Values : {v} +AdditionalProperties : {[k, v]} +Count : 1 +``` + +This command updates a container group profile using pipeing. + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity +Parameter Sets: PatchViaIdentity, PatchViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the container group profile. + +```yaml +Type: System.String +Parameter Sets: Patch, PatchExpanded +Aliases: ContainerGroupProfileName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Property +Properties of container group profile that need to be patched +To construct, see NOTES section for PROPERTY properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePatch +Parameter Sets: Patch, PatchViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Patch, PatchExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: Patch, PatchExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +Resource tags. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: PatchExpanded, PatchViaIdentityExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePatch + +### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile + +## NOTES + +## RELATED LINKS + diff --git a/src/ContainerInstance/ContainerInstance.Autorest/internal/Get-AzContainerInstanceOperation.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/internal/Get-AzContainerInstanceOperation.ps1 index 9297b20d25ba..57e906962d7c 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/internal/Get-AzContainerInstanceOperation.ps1 +++ b/src/ContainerInstance/ContainerInstance.Autorest/internal/Get-AzContainerInstanceOperation.ps1 @@ -25,12 +25,12 @@ List the operations for Azure Container Instance service. {{ Add code here }} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperation +Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperation .Link https://learn.microsoft.com/powershell/module/az.containerinstance/get-azcontainerinstanceoperation #> function Get-AzContainerInstanceOperation { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperation])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperation])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter()] diff --git a/src/ContainerInstance/ContainerInstance.Autorest/internal/Invoke-AzContainerInstanceCommand.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/internal/Invoke-AzContainerInstanceCommand.ps1 index dd6733c7a866..9477482cf4f7 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/internal/Invoke-AzContainerInstanceCommand.ps1 +++ b/src/ContainerInstance/ContainerInstance.Autorest/internal/Invoke-AzContainerInstanceCommand.ps1 @@ -23,12 +23,12 @@ Executes a command for a specific container instance in a specified resource gro Invoke-AzContainerInstanceCommand -ContainerGroupName test-cg -ContainerName test-container -ResourceGroupName test-rg -Command "echo hello" .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecResponse +Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecResponse .Link https://learn.microsoft.com/powershell/module/az.containerinstance/invoke-azcontainerinstancecommand #> function Invoke-AzContainerInstanceCommand { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecResponse])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecResponse])] [CmdletBinding(DefaultParameterSetName='ExecuteExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -47,14 +47,15 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # Subscription credentials which uniquely identify Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter()] diff --git a/src/ContainerInstance/ContainerInstance.Autorest/internal/New-AzContainerGroup.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/internal/New-AzContainerGroup.ps1 index 5422f3f8b3df..9f48deecc4f3 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/internal/New-AzContainerGroup.ps1 +++ b/src/ContainerInstance/ContainerInstance.Autorest/internal/New-AzContainerGroup.ps1 @@ -25,23 +25,27 @@ $port2 = New-AzContainerInstancePortObject -Port 8001 -Protocol TCP $container = New-AzContainerInstanceObject -Name test-container -Image nginx -RequestCpu 1 -RequestMemoryInGb 1.5 -Port @($port1, $port2) $containerGroup = New-AzContainerGroup -ResourceGroupName test-rg -Name test-cg -Location eastus -Container $container -OsType Linux -RestartPolicy "Never" -IpAddressType Public .Example +$pwd = ConvertTo-SecureString -String "****" -AsPlainText -Force $env1 = New-AzContainerInstanceEnvironmentVariableObject -Name "env1" -Value "value1" -$env2 = New-AzContainerInstanceEnvironmentVariableObject -Name "env2" -SecureValue (ConvertTo-SecureString -String "value2" -AsPlainText -Force) +$env2 = New-AzContainerInstanceEnvironmentVariableObject -Name "env2" -SecureValue $pwd $container = New-AzContainerInstanceObject -Name test-container -Image alpine -Command "/bin/sh -c myscript.sh" -EnvironmentVariable @($env1, $env2) $containerGroup = New-AzContainerGroup -ResourceGroupName test-rg -Name test-cg -Location eastus -Container $container -OsType Linux .Example $container = New-AzContainerInstanceObject -Name test-container -Image alpine -Command "echo hello" $containerGroup = New-AzContainerGroup -ResourceGroupName test-rg -Name test-cg -Location eastus -Container $container -OsType Linux .Example +$pwd = ConvertTo-SecureString -String "****" -AsPlainText -Force $container = New-AzContainerInstanceObject -Name test-container -Image myacr.azurecr.io/nginx:latest -$imageRegistryCredential = New-AzContainerGroupImageRegistryCredentialObject -Server "myacr.azurecr.io" -Username "username" -Password (ConvertTo-SecureString "PlainTextPassword" -AsPlainText -Force) +$imageRegistryCredential = New-AzContainerGroupImageRegistryCredentialObject -Server "myacr.azurecr.io" -Username "username" -Password $pwd $containerGroup = New-AzContainerGroup -ResourceGroupName test-rg -Name test-cg -Location eastus -Container $container -ImageRegistryCredential $imageRegistryCredential .Example +$pwd = ConvertTo-SecureString -String "****" -AsPlainText -Force $container = New-AzContainerInstanceObject -Name test-container -Image myserver.com/nginx:latest -$imageRegistryCredential = New-AzContainerGroupImageRegistryCredentialObject -Server "myserver.com" -Username "username" -Password (ConvertTo-SecureString "PlainTextPassword" -AsPlainText -Force) +$imageRegistryCredential = New-AzContainerGroupImageRegistryCredentialObject -Server "myserver.com" -Username "username" -Password $pwd $containerGroup = New-AzContainerGroup -ResourceGroupName test-rg -Name test-cg -Location eastus -Container $container -ImageRegistryCredential $imageRegistryCredential .Example -$volume = New-AzContainerGroupVolumeObject -Name "myvolume" -AzureFileShareName "myshare" -AzureFileStorageAccountName "username" -AzureFileStorageAccountKey (ConvertTo-SecureString "PlainTextPassword" -AsPlainText -Force) +$pwd = ConvertTo-SecureString -String "****" -AsPlainText -Force +$volume = New-AzContainerGroupVolumeObject -Name "myvolume" -AzureFileShareName "myshare" -AzureFileStorageAccountName "username" -AzureFileStorageAccountKey $pwd $mount = New-AzContainerInstanceVolumeMountObject -MountPath "/aci/logs" -Name "myvolume" $container = New-AzContainerInstanceObject -Name test-container -Image alpine -VolumeMount $mount $containerGroup = New-AzContainerGroup -ResourceGroupName test-rg -Name test-cg -Location eastus -Container $container -Volume $volume @@ -50,22 +54,24 @@ $container = New-AzContainerInstanceObject -Name test-container -Image alpine $containerGroup = New-AzContainerGroup -ResourceGroupName test-rg -Name test-cg -Location eastus -Container $container -IdentityType "SystemAssigned, UserAssigned" -IdentityUserAssignedIdentity @{"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}" = @{}} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup +Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. CONTAINER : The containers within the container group. - Image : The name of the image used to create the container instance. Name : The user-provided name of the container instance. - RequestCpu : The CPU request of this container instance. - RequestMemoryInGb : The memory request in GB of this container instance. + [CapabilityAdd ]: The capabilities to add to the container. + [CapabilityDrop ]: The capabilities to drop from the container. [Command ]: The commands to execute within the container instance in exec form. + [ConfigMapKeyValuePair ]: The key value pairs dictionary in the config map. + [(Any) ]: This indicates any property can be added to this object. [EnvironmentVariable ]: The environment variables to set in the container instance. Name : The name of the environment variable. [SecureValue ]: The value of the secure environment variable. [Value ]: The value of the environment variable. + [Image ]: The name of the image used to create the container instance. [LimitCpu ]: The CPU limit of this container instance. [LimitMemoryInGb ]: The memory limit in GB of this container instance. [LimitsGpuCount ]: The count of the GPU resource. @@ -95,8 +101,15 @@ CONTAINER : The containers within the container group. [ReadinessProbePeriodSecond ]: The period seconds. [ReadinessProbeSuccessThreshold ]: The success threshold. [ReadinessProbeTimeoutSecond ]: The timeout seconds. + [RequestCpu ]: The CPU request of this container instance. + [RequestMemoryInGb ]: The memory request in GB of this container instance. [RequestsGpuCount ]: The count of the GPU resource. [RequestsGpuSku ]: The SKU of the GPU resource. + [SecurityContextAllowPrivilegeEscalation ]: A boolean value indicating whether the init process can elevate its privileges + [SecurityContextPrivileged ]: The flag to determine if the container permissions is elevated to Privileged. + [SecurityContextRunAsGroup ]: Sets the User GID for the container. + [SecurityContextRunAsUser ]: Sets the User UID for the container. + [SecurityContextSeccompProfile ]: a base64 encoded string containing the contents of the JSON in the seccomp profile [VolumeMount ]: The volume mounts available to the container instance. MountPath : The path within the container where the volume should be mounted. Must not contain colon (:). Name : The name of the volume mount. @@ -118,12 +131,19 @@ IMAGEREGISTRYCREDENTIAL : The image registry credent INITCONTAINER : The init containers for a container group. Name : The name for the init container. + [CapabilityAdd ]: The capabilities to add to the container. + [CapabilityDrop ]: The capabilities to drop from the container. [Command ]: The command to execute within the init container in exec form. [EnvironmentVariable ]: The environment variables to set in the init container. Name : The name of the environment variable. [SecureValue ]: The value of the secure environment variable. [Value ]: The value of the environment variable. [Image ]: The image of the init container. + [SecurityContextAllowPrivilegeEscalation ]: A boolean value indicating whether the init process can elevate its privileges + [SecurityContextPrivileged ]: The flag to determine if the container permissions is elevated to Privileged. + [SecurityContextRunAsGroup ]: Sets the User GID for the container. + [SecurityContextRunAsUser ]: Sets the User UID for the container. + [SecurityContextSeccompProfile ]: a base64 encoded string containing the contents of the JSON in the seccomp profile [VolumeMount ]: The volume mounts available to the init container. MountPath : The path within the container where the volume should be mounted. Must not contain colon (:). Name : The name of the volume mount. @@ -154,7 +174,7 @@ VOLUME : The list of volumes that can be mounted by containers in thi https://learn.microsoft.com/powershell/module/az.containerinstance/new-azcontainergroup #> function New-AzContainerGroup { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -168,37 +188,42 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # Subscription credentials which uniquely identify Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(Mandatory)] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainer[]] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainer[]] # The containers within the container group. # To construct, see NOTES section for CONTAINER properties and create a hash table. ${Container}, [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes])] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo(Description='Sets OSType equal Linux by default.', Script='"Linux"')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes] - # The operating system type required by the containers in the container group. - ${OSType}, + [System.String] + # The base64 encoded confidential compute enforcement policy + ${ConfidentialComputePropertyCcePolicy}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.String] - # The base64 encoded confidential compute enforcement policy - ${ConfidentialComputePropertyCcePolicy}, + # The container group profile reference id.This will be an ARM resource id in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}'. + ${ContainerGroupProfileId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.Int32] + # The container group profile reference revision. + ${ContainerGroupProfileRevision}, [Parameter()] [AllowEmptyCollection()] @@ -246,7 +271,7 @@ param( [Parameter()] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpec[]] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpec[]] # extensions used by virtual kubelet # To construct, see NOTES section for EXTENSION properties and create a hash table. ${Extension}, @@ -278,7 +303,7 @@ param( [Parameter()] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IPort[]] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPort[]] # The list of ports exposed on the container group. # To construct, see NOTES section for IPADDRESSPORT properties and create a hash table. ${IPAddressPort}, @@ -301,7 +326,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentityUserAssignedIdentities]))] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentityUserAssignedIdentities]))] [System.Collections.Hashtable] # The list of user identities associated with the container group. ${IdentityUserAssignedIdentity}, @@ -309,7 +334,7 @@ param( [Parameter()] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IImageRegistryCredential[]] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredential[]] # The image registry credentials by which the container group is created from. # To construct, see NOTES section for IMAGEREGISTRYCREDENTIAL properties and create a hash table. ${ImageRegistryCredential}, @@ -317,7 +342,7 @@ param( [Parameter()] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinition[]] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinition[]] # The init containers for a container group. # To construct, see NOTES section for INITCONTAINER properties and create a hash table. ${InitContainer}, @@ -337,7 +362,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsMetadata]))] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsMetadata]))] [System.Collections.Hashtable] # Metadata for log analytics. ${LogAnalyticMetadata}, @@ -360,6 +385,13 @@ param( # The workspace resource id for log analytics ${LogAnalyticWorkspaceResourceId}, + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes])] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes] + # The operating system type required by the containers in the container group. + ${OSType}, + [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority])] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] @@ -382,17 +414,29 @@ param( # The SKU for a container group. ${Sku}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.Management.Automation.SwitchParameter] + # The flag to determine whether ACI should fail the create request if the container group can not be obtained from standby pool. + ${StandbyPoolProfileFailContainerGroupCreateOnReuseFailure}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.String] + # The standby pool profile reference id.This will be an ARM resource id in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyContainerGroupPools/{standbyPoolName}'. + ${StandbyPoolProfileId}, + [Parameter()] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupSubnetId[]] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupSubnetId[]] # The subnet resource IDs for a container group. # To construct, see NOTES section for SUBNETID properties and create a hash table. ${SubnetId}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceTags]))] [System.Collections.Hashtable] # The resource tags. ${Tag}, @@ -400,7 +444,7 @@ param( [Parameter()] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolume[]] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolume[]] # The list of volumes that can be mounted by containers in this container group. # To construct, see NOTES section for VOLUME properties and create a hash table. ${Volume}, @@ -493,9 +537,6 @@ begin { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } } - if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('OSType')) { - $PSBoundParameters['OSType'] = "Linux" - } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} diff --git a/src/ContainerInstance/ContainerInstance.Autorest/internal/ProxyCmdletDefinitions.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/internal/ProxyCmdletDefinitions.ps1 index 90cb2e43f5a1..b0b800ae46e9 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/internal/ProxyCmdletDefinitions.ps1 +++ b/src/ContainerInstance/ContainerInstance.Autorest/internal/ProxyCmdletDefinitions.ps1 @@ -25,12 +25,12 @@ List the operations for Azure Container Instance service. {{ Add code here }} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperation +Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperation .Link https://learn.microsoft.com/powershell/module/az.containerinstance/get-azcontainerinstanceoperation #> function Get-AzContainerInstanceOperation { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IOperation])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IOperation])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter()] @@ -133,12 +133,12 @@ Executes a command for a specific container instance in a specified resource gro Invoke-AzContainerInstanceCommand -ContainerGroupName test-cg -ContainerName test-container -ResourceGroupName test-rg -Command "echo hello" .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecResponse +Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecResponse .Link https://learn.microsoft.com/powershell/module/az.containerinstance/invoke-azcontainerinstancecommand #> function Invoke-AzContainerInstanceCommand { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerExecResponse])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerExecResponse])] [CmdletBinding(DefaultParameterSetName='ExecuteExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -157,14 +157,15 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # Subscription credentials which uniquely identify Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter()] @@ -311,23 +312,27 @@ $port2 = New-AzContainerInstancePortObject -Port 8001 -Protocol TCP $container = New-AzContainerInstanceObject -Name test-container -Image nginx -RequestCpu 1 -RequestMemoryInGb 1.5 -Port @($port1, $port2) $containerGroup = New-AzContainerGroup -ResourceGroupName test-rg -Name test-cg -Location eastus -Container $container -OsType Linux -RestartPolicy "Never" -IpAddressType Public .Example +$pwd = ConvertTo-SecureString -String "****" -AsPlainText -Force $env1 = New-AzContainerInstanceEnvironmentVariableObject -Name "env1" -Value "value1" -$env2 = New-AzContainerInstanceEnvironmentVariableObject -Name "env2" -SecureValue (ConvertTo-SecureString -String "value2" -AsPlainText -Force) +$env2 = New-AzContainerInstanceEnvironmentVariableObject -Name "env2" -SecureValue $pwd $container = New-AzContainerInstanceObject -Name test-container -Image alpine -Command "/bin/sh -c myscript.sh" -EnvironmentVariable @($env1, $env2) $containerGroup = New-AzContainerGroup -ResourceGroupName test-rg -Name test-cg -Location eastus -Container $container -OsType Linux .Example $container = New-AzContainerInstanceObject -Name test-container -Image alpine -Command "echo hello" $containerGroup = New-AzContainerGroup -ResourceGroupName test-rg -Name test-cg -Location eastus -Container $container -OsType Linux .Example +$pwd = ConvertTo-SecureString -String "****" -AsPlainText -Force $container = New-AzContainerInstanceObject -Name test-container -Image myacr.azurecr.io/nginx:latest -$imageRegistryCredential = New-AzContainerGroupImageRegistryCredentialObject -Server "myacr.azurecr.io" -Username "username" -Password (ConvertTo-SecureString "PlainTextPassword" -AsPlainText -Force) +$imageRegistryCredential = New-AzContainerGroupImageRegistryCredentialObject -Server "myacr.azurecr.io" -Username "username" -Password $pwd $containerGroup = New-AzContainerGroup -ResourceGroupName test-rg -Name test-cg -Location eastus -Container $container -ImageRegistryCredential $imageRegistryCredential .Example +$pwd = ConvertTo-SecureString -String "****" -AsPlainText -Force $container = New-AzContainerInstanceObject -Name test-container -Image myserver.com/nginx:latest -$imageRegistryCredential = New-AzContainerGroupImageRegistryCredentialObject -Server "myserver.com" -Username "username" -Password (ConvertTo-SecureString "PlainTextPassword" -AsPlainText -Force) +$imageRegistryCredential = New-AzContainerGroupImageRegistryCredentialObject -Server "myserver.com" -Username "username" -Password $pwd $containerGroup = New-AzContainerGroup -ResourceGroupName test-rg -Name test-cg -Location eastus -Container $container -ImageRegistryCredential $imageRegistryCredential .Example -$volume = New-AzContainerGroupVolumeObject -Name "myvolume" -AzureFileShareName "myshare" -AzureFileStorageAccountName "username" -AzureFileStorageAccountKey (ConvertTo-SecureString "PlainTextPassword" -AsPlainText -Force) +$pwd = ConvertTo-SecureString -String "****" -AsPlainText -Force +$volume = New-AzContainerGroupVolumeObject -Name "myvolume" -AzureFileShareName "myshare" -AzureFileStorageAccountName "username" -AzureFileStorageAccountKey $pwd $mount = New-AzContainerInstanceVolumeMountObject -MountPath "/aci/logs" -Name "myvolume" $container = New-AzContainerInstanceObject -Name test-container -Image alpine -VolumeMount $mount $containerGroup = New-AzContainerGroup -ResourceGroupName test-rg -Name test-cg -Location eastus -Container $container -Volume $volume @@ -336,22 +341,24 @@ $container = New-AzContainerInstanceObject -Name test-container -Image alpine $containerGroup = New-AzContainerGroup -ResourceGroupName test-rg -Name test-cg -Location eastus -Container $container -IdentityType "SystemAssigned, UserAssigned" -IdentityUserAssignedIdentity @{"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}" = @{}} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup +Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. CONTAINER : The containers within the container group. - Image : The name of the image used to create the container instance. Name : The user-provided name of the container instance. - RequestCpu : The CPU request of this container instance. - RequestMemoryInGb : The memory request in GB of this container instance. + [CapabilityAdd ]: The capabilities to add to the container. + [CapabilityDrop ]: The capabilities to drop from the container. [Command ]: The commands to execute within the container instance in exec form. + [ConfigMapKeyValuePair ]: The key value pairs dictionary in the config map. + [(Any) ]: This indicates any property can be added to this object. [EnvironmentVariable ]: The environment variables to set in the container instance. Name : The name of the environment variable. [SecureValue ]: The value of the secure environment variable. [Value ]: The value of the environment variable. + [Image ]: The name of the image used to create the container instance. [LimitCpu ]: The CPU limit of this container instance. [LimitMemoryInGb ]: The memory limit in GB of this container instance. [LimitsGpuCount ]: The count of the GPU resource. @@ -381,8 +388,15 @@ CONTAINER : The containers within the container group. [ReadinessProbePeriodSecond ]: The period seconds. [ReadinessProbeSuccessThreshold ]: The success threshold. [ReadinessProbeTimeoutSecond ]: The timeout seconds. + [RequestCpu ]: The CPU request of this container instance. + [RequestMemoryInGb ]: The memory request in GB of this container instance. [RequestsGpuCount ]: The count of the GPU resource. [RequestsGpuSku ]: The SKU of the GPU resource. + [SecurityContextAllowPrivilegeEscalation ]: A boolean value indicating whether the init process can elevate its privileges + [SecurityContextPrivileged ]: The flag to determine if the container permissions is elevated to Privileged. + [SecurityContextRunAsGroup ]: Sets the User GID for the container. + [SecurityContextRunAsUser ]: Sets the User UID for the container. + [SecurityContextSeccompProfile ]: a base64 encoded string containing the contents of the JSON in the seccomp profile [VolumeMount ]: The volume mounts available to the container instance. MountPath : The path within the container where the volume should be mounted. Must not contain colon (:). Name : The name of the volume mount. @@ -404,12 +418,19 @@ IMAGEREGISTRYCREDENTIAL : The image registry credent INITCONTAINER : The init containers for a container group. Name : The name for the init container. + [CapabilityAdd ]: The capabilities to add to the container. + [CapabilityDrop ]: The capabilities to drop from the container. [Command ]: The command to execute within the init container in exec form. [EnvironmentVariable ]: The environment variables to set in the init container. Name : The name of the environment variable. [SecureValue ]: The value of the secure environment variable. [Value ]: The value of the environment variable. [Image ]: The image of the init container. + [SecurityContextAllowPrivilegeEscalation ]: A boolean value indicating whether the init process can elevate its privileges + [SecurityContextPrivileged ]: The flag to determine if the container permissions is elevated to Privileged. + [SecurityContextRunAsGroup ]: Sets the User GID for the container. + [SecurityContextRunAsUser ]: Sets the User UID for the container. + [SecurityContextSeccompProfile ]: a base64 encoded string containing the contents of the JSON in the seccomp profile [VolumeMount ]: The volume mounts available to the init container. MountPath : The path within the container where the volume should be mounted. Must not contain colon (:). Name : The name of the volume mount. @@ -440,7 +461,7 @@ VOLUME : The list of volumes that can be mounted by containers in thi https://learn.microsoft.com/powershell/module/az.containerinstance/new-azcontainergroup #> function New-AzContainerGroup { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -454,37 +475,42 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # Subscription credentials which uniquely identify Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(Mandatory)] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainer[]] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainer[]] # The containers within the container group. # To construct, see NOTES section for CONTAINER properties and create a hash table. ${Container}, [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes])] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo(Description='Sets OSType equal Linux by default.', Script='"Linux"')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes] - # The operating system type required by the containers in the container group. - ${OSType}, + [System.String] + # The base64 encoded confidential compute enforcement policy + ${ConfidentialComputePropertyCcePolicy}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.String] - # The base64 encoded confidential compute enforcement policy - ${ConfidentialComputePropertyCcePolicy}, + # The container group profile reference id.This will be an ARM resource id in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}'. + ${ContainerGroupProfileId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.Int32] + # The container group profile reference revision. + ${ContainerGroupProfileRevision}, [Parameter()] [AllowEmptyCollection()] @@ -532,7 +558,7 @@ param( [Parameter()] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IDeploymentExtensionSpec[]] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpec[]] # extensions used by virtual kubelet # To construct, see NOTES section for EXTENSION properties and create a hash table. ${Extension}, @@ -564,7 +590,7 @@ param( [Parameter()] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IPort[]] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPort[]] # The list of ports exposed on the container group. # To construct, see NOTES section for IPADDRESSPORT properties and create a hash table. ${IPAddressPort}, @@ -587,7 +613,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupIdentityUserAssignedIdentities]))] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentityUserAssignedIdentities]))] [System.Collections.Hashtable] # The list of user identities associated with the container group. ${IdentityUserAssignedIdentity}, @@ -595,7 +621,7 @@ param( [Parameter()] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IImageRegistryCredential[]] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredential[]] # The image registry credentials by which the container group is created from. # To construct, see NOTES section for IMAGEREGISTRYCREDENTIAL properties and create a hash table. ${ImageRegistryCredential}, @@ -603,7 +629,7 @@ param( [Parameter()] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinition[]] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinition[]] # The init containers for a container group. # To construct, see NOTES section for INITCONTAINER properties and create a hash table. ${InitContainer}, @@ -623,7 +649,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ILogAnalyticsMetadata]))] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsMetadata]))] [System.Collections.Hashtable] # Metadata for log analytics. ${LogAnalyticMetadata}, @@ -646,6 +672,13 @@ param( # The workspace resource id for log analytics ${LogAnalyticWorkspaceResourceId}, + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes])] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes] + # The operating system type required by the containers in the container group. + ${OSType}, + [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority])] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] @@ -668,17 +701,29 @@ param( # The SKU for a container group. ${Sku}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.Management.Automation.SwitchParameter] + # The flag to determine whether ACI should fail the create request if the container group can not be obtained from standby pool. + ${StandbyPoolProfileFailContainerGroupCreateOnReuseFailure}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] + [System.String] + # The standby pool profile reference id.This will be an ARM resource id in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyContainerGroupPools/{standbyPoolName}'. + ${StandbyPoolProfileId}, + [Parameter()] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupSubnetId[]] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupSubnetId[]] # The subnet resource IDs for a container group. # To construct, see NOTES section for SUBNETID properties and create a hash table. ${SubnetId}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IResourceTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceTags]))] [System.Collections.Hashtable] # The resource tags. ${Tag}, @@ -686,7 +731,7 @@ param( [Parameter()] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolume[]] + [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolume[]] # The list of volumes that can be mounted by containers in this container group. # To construct, see NOTES section for VOLUME properties and create a hash table. ${Volume}, @@ -779,9 +824,6 @@ begin { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } } - if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('OSType')) { - $PSBoundParameters['OSType'] = "Linux" - } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} diff --git a/src/ContainerInstance/ContainerInstance.Autorest/test/Add-AzContainerInstanceOutput.Recording.json b/src/ContainerInstance/ContainerInstance.Autorest/test/Add-AzContainerInstanceOutput.Recording.json index 302a98ea8b12..ade7ca92f080 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/test/Add-AzContainerInstanceOutput.Recording.json +++ b/src/ContainerInstance/ContainerInstance.Autorest/test/Add-AzContainerInstanceOutput.Recording.json @@ -1,17 +1,17 @@ { - "Add-AzContainerInstanceOutput+[NoContext]+Attach+$POST+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg/containers/bez-test-ci/attach?api-version=2022-10-01-preview+1": { + "Add-AzContainerInstanceOutput+[NoContext]+Attach+$POST+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg/containers/bez-test-ci/attach?api-version=2024-05-01-preview+1": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg/containers/bez-test-ci/attach?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg/containers/bez-test-ci/attach?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "44" ], - "x-ms-client-request-id": [ "efc0ec26-8284-44b3-8673-0720a7a413d4" ], + "x-ms-unique-id": [ "45" ], + "x-ms-client-request-id": [ "98cc5722-8b09-4a06-9fbe-680a856d2d09" ], "CommandName": [ "Add-AzContainerInstanceOutput" ], "FullCommandName": [ "Add-AzContainerInstanceOutput_Attach" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -22,22 +22,24 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-request-id": [ "eastus:bb8bb79c-27d6-411b-a89e-b7fcc6893dac" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], - "x-ms-correlation-request-id": [ "8b58628a-e1d3-43c7-8252-e2b651bf973b" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T000309Z:8b58628a-e1d3-43c7-8252-e2b651bf973b" ], + "x-ms-request-id": [ "eastus:f083e88e-f016-4c34-ae72-e295a30ec9cf" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], + "x-ms-correlation-request-id": [ "77ab91d8-68d8-4c85-bd07-248cb72550a8" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T045956Z:77ab91d8-68d8-4c85-bd07-248cb72550a8" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:03:08 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 3E6A76C4B13B4F74BEE8A30B7506AA36 Ref B: MAA201060514031 Ref C: 2024-10-31T04:59:55Z" ], + "Date": [ "Thu, 31 Oct 2024 04:59:56 GMT" ] }, "ContentHeaders": { "Content-Length": [ "197" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"webSocketUri\":\"wss://sbzrea3z7unme7t.eastus.atlas.cloudapp.azure.com:19390/logstream/sessionId/27659607-971b-44ed-aac4-08555ebe31c6?api-version=1.0\",\"password\":\"bG%PnI3j1}8*nwzl6wvAs!tG\u003e[[EOM]]\"}", + "Content": "{\"webSocketUri\":\"wss://sbz65hajgyoenwz.eastus.atlas.cloudapp.azure.com:19390/logstream/sessionId/9395d1a9-57a8-4970-abb1-d43a0cc81138?api-version=1.0\",\"password\":\"[Sanitized]\"}", "isContentBase64": false } } -} \ No newline at end of file +} diff --git a/src/ContainerInstance/ContainerInstance.Autorest/test/Get-AzContainerGroup.Recording.json b/src/ContainerInstance/ContainerInstance.Autorest/test/Get-AzContainerGroup.Recording.json index a201fcf12541..513707371b27 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/test/Get-AzContainerGroup.Recording.json +++ b/src/ContainerInstance/ContainerInstance.Autorest/test/Get-AzContainerGroup.Recording.json @@ -1,58 +1,17 @@ { - "Get-AzContainerGroup+[NoContext]+List+$GET+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/providers/Microsoft.ContainerInstance/containerGroups?api-version=2022-10-01-preview+1": { + "Get-AzContainerGroup+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg?api-version=2024-05-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/providers/Microsoft.ContainerInstance/containerGroups?api-version=2022-10-01-preview", - "Content": null, - "isContentBase64": false, - "Headers": { - "x-ms-unique-id": [ "45" ], - "x-ms-client-request-id": [ "d89a8dca-1688-4f14-9e48-c8a23d838e44" ], - "CommandName": [ "Get-AzContainerGroup" ], - "FullCommandName": [ "Get-AzContainerGroup_List" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "x-ms-original-request-ids": [ "eastus:9d3edd24-2b6b-4639-9c85-0ad5b480de4d", "northeurope:60ffa924-e0c4-484f-966a-a85f106715ae" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11969" ], - "x-ms-request-id": [ "8f8f57cb-a8d2-40bf-8182-bb7babc047d5" ], - "x-ms-correlation-request-id": [ "8f8f57cb-a8d2-40bf-8182-bb7babc047d5" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T000320Z:8f8f57cb-a8d2-40bf-8182-bb7babc047d5" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:03:19 GMT" ] - }, - "ContentHeaders": { - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ], - "Content-Length": [ "32280" ] - }, - "Content": "{\"value\":[{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"bez-test-ci\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\"},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg\",\"name\":\"bez-test-cg\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"},{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\"},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg-remove1\",\"name\":\"bez-test-cg-remove1\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"},{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"2\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\"},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg-remove2\",\"name\":\"bez-test-cg-remove2\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"},{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"priority\":\"Regular\"},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgq5m6g\",\"name\":\"test-cgq5m6g\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"},{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"priority\":\"Regular\"},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgq5m6g-remove1\",\"name\":\"test-cgq5m6g-remove1\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"},{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"priority\":\"Regular\"},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgq5m6g-remove2\",\"name\":\"test-cgq5m6g-remove2\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"},{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"priority\":\"Spot\"},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgytxbr\",\"name\":\"test-cgytxbr\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"},{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"priority\":\"Spot\"},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgytxbr-remove1\",\"name\":\"test-cgytxbr-remove1\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"},{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"priority\":\"Spot\"},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgytxbr-remove2\",\"name\":\"test-cgytxbr-remove2\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"},{\"properties\":{\"sku\":\"Confidential\",\"confidentialComputeProperties\":{\"ccePolicy\":\"cGFja2FnZSBwb2xpY3kKCmFwaV9zdm4gOj0gIjAuMTAuMCIKCm1vdW50X2RldmljZSA6PSB7ImFsbG93ZWQiOiB0cnVlfQptb3VudF9vdmVybGF5IDo9IHsiYWxsb3dlZCI6IHRydWV9CmNyZWF0ZV9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbCwgImFsbG93X3N0ZGlvX2FjY2VzcyI6IHRydWV9CnVubW91bnRfZGV2aWNlIDo9IHsiYWxsb3dlZCI6IHRydWV9IAp1bm1vdW50X292ZXJsYXkgOj0geyJhbGxvd2VkIjogdHJ1ZX0KZXhlY19pbl9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbH0KZXhlY19leHRlcm5hbCA6PSB7ImFsbG93ZWQiOiB0cnVlLCAiZW52X2xpc3QiOiBudWxsLCAiYWxsb3dfc3RkaW9fYWNjZXNzIjogdHJ1ZX0Kc2h1dGRvd25fY29udGFpbmVyIDo9IHsiYWxsb3dlZCI6IHRydWV9CnNpZ25hbF9jb250YWluZXJfcHJvY2VzcyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV9tb3VudCA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CmdldF9wcm9wZXJ0aWVzIDo9IHsiYWxsb3dlZCI6IHRydWV9CmR1bXBfc3RhY2tzIDo9IHsiYWxsb3dlZCI6IHRydWV9CnJ1bnRpbWVfbG9nZ2luZyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpsb2FkX2ZyYWdtZW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CnNjcmF0Y2hfbW91bnQgOj0geyJhbGxvd2VkIjogdHJ1ZX0Kc2NyYXRjaF91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9Cg==\"},\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\"},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup\",\"name\":\"test-confidential-containergroup\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"},{\"properties\":{\"sku\":\"Confidential\",\"confidentialComputeProperties\":{\"ccePolicy\":\"cGFja2FnZSBwb2xpY3kKCmFwaV9zdm4gOj0gIjAuMTAuMCIKCm1vdW50X2RldmljZSA6PSB7ImFsbG93ZWQiOiB0cnVlfQptb3VudF9vdmVybGF5IDo9IHsiYWxsb3dlZCI6IHRydWV9CmNyZWF0ZV9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbCwgImFsbG93X3N0ZGlvX2FjY2VzcyI6IHRydWV9CnVubW91bnRfZGV2aWNlIDo9IHsiYWxsb3dlZCI6IHRydWV9IAp1bm1vdW50X292ZXJsYXkgOj0geyJhbGxvd2VkIjogdHJ1ZX0KZXhlY19pbl9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbH0KZXhlY19leHRlcm5hbCA6PSB7ImFsbG93ZWQiOiB0cnVlLCAiZW52X2xpc3QiOiBudWxsLCAiYWxsb3dfc3RkaW9fYWNjZXNzIjogdHJ1ZX0Kc2h1dGRvd25fY29udGFpbmVyIDo9IHsiYWxsb3dlZCI6IHRydWV9CnNpZ25hbF9jb250YWluZXJfcHJvY2VzcyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV9tb3VudCA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CmdldF9wcm9wZXJ0aWVzIDo9IHsiYWxsb3dlZCI6IHRydWV9CmR1bXBfc3RhY2tzIDo9IHsiYWxsb3dlZCI6IHRydWV9CnJ1bnRpbWVfbG9nZ2luZyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpsb2FkX2ZyYWdtZW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CnNjcmF0Y2hfbW91bnQgOj0geyJhbGxvd2VkIjogdHJ1ZX0Kc2NyYXRjaF91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9Cg==\"},\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\"},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup-remove1\",\"name\":\"test-confidential-containergroup-remove1\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"},{\"properties\":{\"sku\":\"Confidential\",\"confidentialComputeProperties\":{\"ccePolicy\":\"cGFja2FnZSBwb2xpY3kKCmFwaV9zdm4gOj0gIjAuMTAuMCIKCm1vdW50X2RldmljZSA6PSB7ImFsbG93ZWQiOiB0cnVlfQptb3VudF9vdmVybGF5IDo9IHsiYWxsb3dlZCI6IHRydWV9CmNyZWF0ZV9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbCwgImFsbG93X3N0ZGlvX2FjY2VzcyI6IHRydWV9CnVubW91bnRfZGV2aWNlIDo9IHsiYWxsb3dlZCI6IHRydWV9IAp1bm1vdW50X292ZXJsYXkgOj0geyJhbGxvd2VkIjogdHJ1ZX0KZXhlY19pbl9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbH0KZXhlY19leHRlcm5hbCA6PSB7ImFsbG93ZWQiOiB0cnVlLCAiZW52X2xpc3QiOiBudWxsLCAiYWxsb3dfc3RkaW9fYWNjZXNzIjogdHJ1ZX0Kc2h1dGRvd25fY29udGFpbmVyIDo9IHsiYWxsb3dlZCI6IHRydWV9CnNpZ25hbF9jb250YWluZXJfcHJvY2VzcyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV9tb3VudCA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CmdldF9wcm9wZXJ0aWVzIDo9IHsiYWxsb3dlZCI6IHRydWV9CmR1bXBfc3RhY2tzIDo9IHsiYWxsb3dlZCI6IHRydWV9CnJ1bnRpbWVfbG9nZ2luZyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpsb2FkX2ZyYWdtZW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CnNjcmF0Y2hfbW91bnQgOj0geyJhbGxvd2VkIjogdHJ1ZX0Kc2NyYXRjaF91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9Cg==\"},\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\"},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup-remove2\",\"name\":\"test-confidential-containergroup-remove2\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"},{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"bez-test-ci\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\"},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgkuf6n/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg\",\"name\":\"bez-test-cg\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"},{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\"},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgkuf6n/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg-remove1\",\"name\":\"bez-test-cg-remove1\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"},{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"2\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\"},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgkuf6n/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg-remove2\",\"name\":\"bez-test-cg-remove2\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"},{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"priority\":\"Spot\"},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgkuf6n/providers/Microsoft.ContainerInstance/containerGroups/test-cg81fji\",\"name\":\"test-cg81fji\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"},{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"priority\":\"Spot\"},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgkuf6n/providers/Microsoft.ContainerInstance/containerGroups/test-cg81fji-remove1\",\"name\":\"test-cg81fji-remove1\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"},{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"priority\":\"Spot\"},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgkuf6n/providers/Microsoft.ContainerInstance/containerGroups/test-cg81fji-remove2\",\"name\":\"test-cg81fji-remove2\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"},{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"priority\":\"Regular\"},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgkuf6n/providers/Microsoft.ContainerInstance/containerGroups/test-cgzsmd9\",\"name\":\"test-cgzsmd9\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"},{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"priority\":\"Regular\"},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgkuf6n/providers/Microsoft.ContainerInstance/containerGroups/test-cgzsmd9-remove1\",\"name\":\"test-cgzsmd9-remove1\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"},{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"priority\":\"Regular\"},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgkuf6n/providers/Microsoft.ContainerInstance/containerGroups/test-cgzsmd9-remove2\",\"name\":\"test-cgzsmd9-remove2\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"},{\"properties\":{\"sku\":\"Confidential\",\"confidentialComputeProperties\":{\"ccePolicy\":\"cGFja2FnZSBwb2xpY3kKCmFwaV9zdm4gOj0gIjAuMTAuMCIKCm1vdW50X2RldmljZSA6PSB7ImFsbG93ZWQiOiB0cnVlfQptb3VudF9vdmVybGF5IDo9IHsiYWxsb3dlZCI6IHRydWV9CmNyZWF0ZV9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbCwgImFsbG93X3N0ZGlvX2FjY2VzcyI6IHRydWV9CnVubW91bnRfZGV2aWNlIDo9IHsiYWxsb3dlZCI6IHRydWV9IAp1bm1vdW50X292ZXJsYXkgOj0geyJhbGxvd2VkIjogdHJ1ZX0KZXhlY19pbl9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbH0KZXhlY19leHRlcm5hbCA6PSB7ImFsbG93ZWQiOiB0cnVlLCAiZW52X2xpc3QiOiBudWxsLCAiYWxsb3dfc3RkaW9fYWNjZXNzIjogdHJ1ZX0Kc2h1dGRvd25fY29udGFpbmVyIDo9IHsiYWxsb3dlZCI6IHRydWV9CnNpZ25hbF9jb250YWluZXJfcHJvY2VzcyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV9tb3VudCA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CmdldF9wcm9wZXJ0aWVzIDo9IHsiYWxsb3dlZCI6IHRydWV9CmR1bXBfc3RhY2tzIDo9IHsiYWxsb3dlZCI6IHRydWV9CnJ1bnRpbWVfbG9nZ2luZyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpsb2FkX2ZyYWdtZW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CnNjcmF0Y2hfbW91bnQgOj0geyJhbGxvd2VkIjogdHJ1ZX0Kc2NyYXRjaF91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9Cg==\"},\"provisioningState\":\"Pending\",\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\"},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgkuf6n/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup\",\"name\":\"test-confidential-containergroup\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"},{\"properties\":{\"sku\":\"Confidential\",\"confidentialComputeProperties\":{\"ccePolicy\":\"eyJhbGxvd19hbGwiOnRydWUsImNvbnRhaW5lcnMiOnsibGVuZ3RoIjowLCJlbGVtZW50cyI6bnVsbH191234\"},\"provisioningState\":\"Failed\",\"containers\":[{\"name\":\"testcontainer1\",\"properties\":{\"image\":\"alpine\",\"command\":[\"/bin/sh\",\"-c\",\"sTimeout=10; xMax=10; x=1; while [ $x -le $((xMax*(60/sTimeout))) ]; do echo \\\"Sleeping $x time for $sTimeout s \\\" $(( x++ )) \\\" =\u003e $(date +%Y-%m-%d_%H:%M:%S)\\\"; sleep $sTimeout; done\"],\"ports\":[],\"environmentVariables\":[],\"resources\":{\"requests\":{\"memoryInGB\":0.5,\"cpu\":0.5}}}}],\"initContainers\":[],\"restartPolicy\":\"Always\",\"osType\":\"Linux\"},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/suselva-cc-test-rg/providers/Microsoft.ContainerInstance/containerGroups/aci-snp-suselvatest-28-007-invalidPolicy-2\",\"name\":\"aci-snp-suselvatest-28-007-invalidPolicy-2\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"northeurope\"},{\"properties\":{\"sku\":\"Confidential\",\"confidentialComputeProperties\":{\"ccePolicy\":\"cGFja2FnZSBwb2xpY3kKCmFwaV9zdm4gOj0gIjAuMTAuMCIKZnJhbWV3b3JrX3N2biA6PSAiMC4xLjAiCgptb3VudF9kZXZpY2UgOj0geyJhbGxvd2VkIjogdHJ1ZX0KbW91bnRfb3ZlcmxheSA6PSB7ImFsbG93ZWQiOiB0cnVlfQpjcmVhdGVfY29udGFpbmVyIDo9IHsiYWxsb3dlZCI6IHRydWUsICJhbGxvd19zdGRpb19hY2Nlc3MiOiB0cnVlfQp1bm1vdW50X2RldmljZSA6PSB7ImFsbG93ZWQiOiB0cnVlfQp1bm1vdW50X292ZXJsYXkgOj0geyJhbGxvd2VkIjogdHJ1ZX0KZXhlY19pbl9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZX0KZXhlY19leHRlcm5hbCA6PSB7ImFsbG93ZWQiOiB0cnVlLCAiYWxsb3dfc3RkaW9fYWNjZXNzIjogdHJ1ZX0Kc2h1dGRvd25fY29udGFpbmVyIDo9IHsiYWxsb3dlZCI6IHRydWV9CnNpZ25hbF9jb250YWluZXJfcHJvY2VzcyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV9tb3VudCA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CmdldF9wcm9wZXJ0aWVzIDo9IHsiYWxsb3dlZCI6IHRydWV9CmR1bXBfc3RhY2tzIDo9IHsiYWxsb3dlZCI6IHRydWV9CnJ1bnRpbWVfbG9nZ2luZyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpsb2FkX2ZyYWdtZW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CnNjcmF0Y2hfbW91bnQgOj0geyJhbGxvd2VkIjogdHJ1ZX0Kc2NyYXRjaF91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9Cg==\"},\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"ci-2023020935-0\",\"properties\":{\"image\":\"ccfmsrc.azurecr.io/public/ccf/app/run:3.0.4-snp\",\"command\":[\"/bin/sh\",\"-c\",\"apt-get update \u0026\u0026 apt-get install -y openssh-server rsync sudo \u0026\u0026 sed -i \u0027s/PubkeyAuthentication no/PubkeyAuthentication yes/g\u0027 /etc/ssh/sshd_config \u0026\u0026 sed -i \u0027s/PasswordAuthentication yes/PasswordAuthentication no/g\u0027 /etc/ssh/sshd_config \u0026\u0026 sed -i \u0027s/#\\\\s*Port 22/Port 22/g\u0027 /etc/ssh/sshd_config \u0026\u0026 useradd -m agent \u0026\u0026 echo \\\"agent ALL=(ALL) NOPASSWD: ALL\\\" \u003e\u003e /etc/sudoers \u0026\u0026 service ssh restart \u0026\u0026 mkdir /home/agent/.ssh \u0026\u0026 echo ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC7BnnuFXSEZftAaslbCbkLa576V0krwJhs3/kwWlMlpqnQYb5de/RS7YTLokvyVznOzEczdvB4QcoTNZWcR2benLOYEhhrkhIpO+9zyyviZnSGtVBYj9IPwpDi20wfObZF/5vCuXgX61sAEcj0HcOZA5slNzYAhZgHWqYeMeYXFAZHpbnDAbmbgFDKslfSIJ/IwifJQyuoeHxCS22UJVxSjYeqloTgCPUPAgKogRmPkpeb6m7FY7S1+GrRNbflmiPqmPajKH2TYRyFkJPhFDK2brvF8rojbZ2EHBzVLx3xJwdFwHzCyX8DDfCyjYHQ1tU+g1eaNEUZ15u85dmAqopyVBny26lHBWuwT9hPe+dDzQ89591SY0VU3EP3dMYMO4hc8Smzhn//eE9TN/Lkap1bQoA9l7J5e1GoRH0JIeZMDugxHFsp/JxOP7a8Gt56YzN8GgX6IuUlpsW+XO+tdTgFf0o4mfnLr8wrXHgsxYrgSH6SWg1PAGLU1RhhwwwcBjOgh7BIenQRZ1uJcE1V7kHeOkSFrr75mB07C3qStP+hYPnAxqlQYDORR4D6Cmnyoq7I8Ut9xpq5FBj9KuRNH5aRfzK44e0SZknUuxl27M4Nn/Q3vvMpJLBZ/pAUoBsD8ASYufvgMCIfjJ/aGtCCbaWuheiencVksvEQvnRmJQ3/IQ== vsts@fv-az58-504 \u003e\u003e /home/agent/.ssh/authorized_keys \u0026\u0026 echo *** | base64 -d \u003e /home/agent/.ssh/id_rsa \u0026\u0026 chmod 600 /home/agent/.ssh/id_rsa \u0026\u0026 ssh-keygen -y -f /home/agent/.ssh/id_rsa \u003e /home/agent/.ssh/id_rsa.pub \u0026\u0026 chmod 600 /home/agent/.ssh/id_rsa.pub \u0026\u0026 chown -R agent:agent /home/agent/.ssh \u0026\u0026 echo UVM_SECURITY_POLICY=$UVM_SECURITY_POLICY \u003e\u003e /aci_env \u0026\u0026 echo UVM_REFERENCE_INFO=$UVM_REFERENCE_INFO \u003e\u003e /aci_env \u0026\u0026 echo UVM_HOST_AMD_CERTIFICATE=$UVM_HOST_AMD_CERTIFICATE \u003e\u003e /aci_env \u0026\u0026 tail -f /dev/null\"],\"ports\":[{\"protocol\":\"TCP\",\"port\":22}],\"environmentVariables\":[],\"resources\":{\"requests\":{\"memoryInGB\":16.0,\"cpu\":4.0}},\"volumeMounts\":[{\"name\":\"ccfcivolume\",\"mountPath\":\"/ccfci\"}]}}],\"initContainers\":[],\"restartPolicy\":\"Never\",\"ipAddress\":{\"ports\":[{\"protocol\":\"TCP\",\"port\":22}],\"type\":\"Public\"},\"osType\":\"Linux\",\"volumes\":[{\"name\":\"ccfcivolume\",\"azureFile\":{\"shareName\":\"ccfcishare\",\"storageAccountName\":\"ccfcistorage\"}},{\"name\":\"udsemptydir\",\"emptyDir\":{}}]},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/suselva-cc-test-rg/providers/Microsoft.ContainerInstance/containerGroups/suselvatest-cri-ci-2023020935-2\",\"name\":\"suselvatest-cri-ci-2023020935-2\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"northeurope\"},{\"properties\":{\"sku\":\"Confidential\",\"confidentialComputeProperties\":{\"ccePolicy\":\"cGFja2FnZSBwb2xpY3kKCmFwaV9zdm4gOj0gIjAuMTAuMCIKZnJhbWV3b3JrX3N2biA6PSAiMC4xLjAiCgptb3VudF9kZXZpY2UgOj0geyJhbGxvd2VkIjogdHJ1ZX0KbW91bnRfb3ZlcmxheSA6PSB7ImFsbG93ZWQiOiB0cnVlfQpjcmVhdGVfY29udGFpbmVyIDo9IHsiYWxsb3dlZCI6IHRydWUsICJhbGxvd19zdGRpb19hY2Nlc3MiOiB0cnVlfQp1bm1vdW50X2RldmljZSA6PSB7ImFsbG93ZWQiOiB0cnVlfQp1bm1vdW50X292ZXJsYXkgOj0geyJhbGxvd2VkIjogdHJ1ZX0KZXhlY19pbl9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZX0KZXhlY19leHRlcm5hbCA6PSB7ImFsbG93ZWQiOiB0cnVlLCAiYWxsb3dfc3RkaW9fYWNjZXNzIjogdHJ1ZX0Kc2h1dGRvd25fY29udGFpbmVyIDo9IHsiYWxsb3dlZCI6IHRydWV9CnNpZ25hbF9jb250YWluZXJfcHJvY2VzcyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV9tb3VudCA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CmdldF9wcm9wZXJ0aWVzIDo9IHsiYWxsb3dlZCI6IHRydWV9CmR1bXBfc3RhY2tzIDo9IHsiYWxsb3dlZCI6IHRydWV9CnJ1bnRpbWVfbG9nZ2luZyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpsb2FkX2ZyYWdtZW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CnNjcmF0Y2hfbW91bnQgOj0geyJhbGxvd2VkIjogdHJ1ZX0Kc2NyYXRjaF91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9Cg==\"},\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"ci-2023020935-0\",\"properties\":{\"image\":\"ccfmsrc.azurecr.io/public/ccf/app/run:3.0.4-snp\",\"command\":[\"/bin/sh\",\"-c\",\"apt-get update \u0026\u0026 apt-get install -y openssh-server rsync sudo \u0026\u0026 sed -i \u0027s/PubkeyAuthentication no/PubkeyAuthentication yes/g\u0027 /etc/ssh/sshd_config \u0026\u0026 sed -i \u0027s/PasswordAuthentication yes/PasswordAuthentication no/g\u0027 /etc/ssh/sshd_config \u0026\u0026 sed -i \u0027s/#\\\\s*Port 22/Port 22/g\u0027 /etc/ssh/sshd_config \u0026\u0026 useradd -m agent \u0026\u0026 echo \\\"agent ALL=(ALL) NOPASSWD: ALL\\\" \u003e\u003e /etc/sudoers \u0026\u0026 service ssh restart \u0026\u0026 mkdir /home/agent/.ssh \u0026\u0026 echo ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC7BnnuFXSEZftAaslbCbkLa576V0krwJhs3/kwWlMlpqnQYb5de/RS7YTLokvyVznOzEczdvB4QcoTNZWcR2benLOYEhhrkhIpO+9zyyviZnSGtVBYj9IPwpDi20wfObZF/5vCuXgX61sAEcj0HcOZA5slNzYAhZgHWqYeMeYXFAZHpbnDAbmbgFDKslfSIJ/IwifJQyuoeHxCS22UJVxSjYeqloTgCPUPAgKogRmPkpeb6m7FY7S1+GrRNbflmiPqmPajKH2TYRyFkJPhFDK2brvF8rojbZ2EHBzVLx3xJwdFwHzCyX8DDfCyjYHQ1tU+g1eaNEUZ15u85dmAqopyVBny26lHBWuwT9hPe+dDzQ89591SY0VU3EP3dMYMO4hc8Smzhn//eE9TN/Lkap1bQoA9l7J5e1GoRH0JIeZMDugxHFsp/JxOP7a8Gt56YzN8GgX6IuUlpsW+XO+tdTgFf0o4mfnLr8wrXHgsxYrgSH6SWg1PAGLU1RhhwwwcBjOgh7BIenQRZ1uJcE1V7kHeOkSFrr75mB07C3qStP+hYPnAxqlQYDORR4D6Cmnyoq7I8Ut9xpq5FBj9KuRNH5aRfzK44e0SZknUuxl27M4Nn/Q3vvMpJLBZ/pAUoBsD8ASYufvgMCIfjJ/aGtCCbaWuheiencVksvEQvnRmJQ3/IQ== vsts@fv-az58-504 \u003e\u003e /home/agent/.ssh/authorized_keys \u0026\u0026 echo cmFuZG9tIHBhc3N3b3JkIGZvciB0ZXN0aW5n | base64 -d \u003e /home/agent/.ssh/id_rsa \u0026\u0026 chmod 600 /home/agent/.ssh/id_rsa \u0026\u0026 ssh-keygen -y -f /home/agent/.ssh/id_rsa \u003e /home/agent/.ssh/id_rsa.pub \u0026\u0026 chmod 600 /home/agent/.ssh/id_rsa.pub \u0026\u0026 chown -R agent:agent /home/agent/.ssh \u0026\u0026 echo UVM_SECURITY_POLICY=$UVM_SECURITY_POLICY \u003e\u003e /aci_env \u0026\u0026 echo UVM_REFERENCE_INFO=$UVM_REFERENCE_INFO \u003e\u003e /aci_env \u0026\u0026 echo UVM_HOST_AMD_CERTIFICATE=$UVM_HOST_AMD_CERTIFICATE \u003e\u003e /aci_env \u0026\u0026 tail -f /dev/null\"],\"ports\":[{\"protocol\":\"TCP\",\"port\":22}],\"environmentVariables\":[],\"resources\":{\"requests\":{\"memoryInGB\":16.0,\"cpu\":4.0}},\"volumeMounts\":[{\"name\":\"ccfcivolume\",\"mountPath\":\"/ccfci\"}]}}],\"initContainers\":[],\"restartPolicy\":\"Never\",\"ipAddress\":{\"ports\":[{\"protocol\":\"TCP\",\"port\":22}],\"type\":\"Public\"},\"osType\":\"Linux\",\"volumes\":[{\"name\":\"ccfcivolume\",\"azureFile\":{\"shareName\":\"ccfcishare\",\"storageAccountName\":\"ccfcistorage\"}},{\"name\":\"udsemptydir\",\"emptyDir\":{}}]},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/suselva-cc-test-rg/providers/Microsoft.ContainerInstance/containerGroups/suselvatest-cri-ci-2023020935-3\",\"name\":\"suselvatest-cri-ci-2023020935-3\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"northeurope\"},{\"properties\":{\"sku\":\"Confidential\",\"confidentialComputeProperties\":{\"ccePolicy\":\"cGFja2FnZSBwb2xpY3kKCmltcG9ydCBmdXR1cmUua2V5d29yZHMuZXZlcnkKaW1wb3J0IGZ1dHVyZS5rZXl3b3Jkcy5pbgoKYXBpX3N2biA6PSAiMC4xMC4wIgpmcmFtZXdvcmtfc3ZuIDo9ICIwLjEuMCIKCmZyYWdtZW50cyA6PSBbCiAgewogICAgImZlZWQiOiAibWNyLm1pY3Jvc29mdC5jb20vYWNpL2FjaS1jYy1pbmZyYS1mcmFnbWVudCIsCiAgICAiaW5jbHVkZXMiOiBbCiAgICAgICJjb250YWluZXJzIgogICAgXSwKICAgICJpc3N1ZXIiOiAiZGlkOng1MDk6MDpzaGEyNTY6SV9faXVMMjVvWEVWRmRUUF9hQkx4X2VUMVJQSGJDUV9FQ0JRZllacHQ5czo6ZWt1OjEuMy42LjEuNC4xLjMxMS43Ni41OS4xLjMiLAogICAgIm1pbmltdW1fc3ZuIjogIjEuMC4wIgogIH0KXQoKY29udGFpbmVycyA6PSBbeyJhbGxvd19lbGV2YXRlZCI6dHJ1ZSwiYWxsb3dfc3RkaW9fYWNjZXNzIjp0cnVlLCJjb21tYW5kIjpbIi9iaW4vc2giLCItYyIsInNUaW1lb3V0PTEwOyB4TWF4PTEwOyB4PTE7IHdoaWxlIFsgJHggLWxlICQoKHhNYXgqKDYwL3NUaW1lb3V0KSkpIF07IGRvIGVjaG8gXCJTbGVlcGluZyAuLi4uLiAkeCB0aW1lIGZvciAkc1RpbWVvdXQgcyBcIiAkKCggeCsrICkpIFwiID0+ICQoZGF0ZSArJVktJW0tJWRfJUg6JU06JVMpXCI7IHNsZWVwICRzVGltZW91dDsgZG9uZSJdLCJlbnZfcnVsZXMiOlt7InBhdHRlcm4iOiJQQVRIPS91c3IvbG9jYWwvc2JpbjovdXNyL2xvY2FsL2JpbjovdXNyL3NiaW46L3Vzci9iaW46L3NiaW46L2JpbiIsInJlcXVpcmVkIjpmYWxzZSwic3RyYXRlZ3kiOiJzdHJpbmcifSx7InBhdHRlcm4iOiJURVJNPXh0ZXJtIiwicmVxdWlyZWQiOmZhbHNlLCJzdHJhdGVneSI6InN0cmluZyJ9LHsicGF0dGVybiI6IigoP2kpRkFCUklDKV8uKz0uKyIsInJlcXVpcmVkIjpmYWxzZSwic3RyYXRlZ3kiOiJyZTIifSx7InBhdHRlcm4iOiJIT1NUTkFNRT0uKyIsInJlcXVpcmVkIjpmYWxzZSwic3RyYXRlZ3kiOiJyZTIifSx7InBhdHRlcm4iOiJUKEUpP01QPS4rIiwicmVxdWlyZWQiOmZhbHNlLCJzdHJhdGVneSI6InJlMiJ9LHsicGF0dGVybiI6IkZhYnJpY1BhY2thZ2VGaWxlTmFtZT0uKyIsInJlcXVpcmVkIjpmYWxzZSwic3RyYXRlZ3kiOiJyZTIifSx7InBhdHRlcm4iOiJIb3N0ZWRTZXJ2aWNlTmFtZT0uKyIsInJlcXVpcmVkIjpmYWxzZSwic3RyYXRlZ3kiOiJyZTIifSx7InBhdHRlcm4iOiJJREVOVElUWV9BUElfVkVSU0lPTj0uKyIsInJlcXVpcmVkIjpmYWxzZSwic3RyYXRlZ3kiOiJyZTIifSx7InBhdHRlcm4iOiJJREVOVElUWV9IRUFERVI9LisiLCJyZXF1aXJlZCI6ZmFsc2UsInN0cmF0ZWd5IjoicmUyIn0seyJwYXR0ZXJuIjoiSURFTlRJVFlfU0VSVkVSX1RIVU1CUFJJTlQ9LisiLCJyZXF1aXJlZCI6ZmFsc2UsInN0cmF0ZWd5IjoicmUyIn0seyJwYXR0ZXJuIjoiYXp1cmVjb250YWluZXJpbnN0YW5jZV9yZXN0YXJ0ZWRfYnk9LisiLCJyZXF1aXJlZCI6ZmFsc2UsInN0cmF0ZWd5IjoicmUyIn1dLCJleGVjX3Byb2Nlc3NlcyI6W3siYWxsb3dfc3RkaW9fYWNjZXNzIjp0cnVlLCJjb21tYW5kIjpbIi9iaW4vc2giXSwic2lnbmFscyI6W119LHsiYWxsb3dfc3RkaW9fYWNjZXNzIjp0cnVlLCJjb21tYW5kIjpbIi9iaW4vYmFzaCJdLCJzaWduYWxzIjpbXX1dLCJpZCI6ImFscGluZSIsImxheWVycyI6WyI1OTViYjAwNGYwNzU5ODYxY2E1ZTM0MWNlNmU2ZDM0ZWEyMDVlOWY5NzFjZjFhYjYzNzM3MTA1OTc2YTFkMDk1Il0sIm1vdW50cyI6W3siZGVzdGluYXRpb24iOiIvZXRjL3Jlc29sdi5jb25mIiwib3B0aW9ucyI6WyJyYmluZCIsInJzaGFyZWQiLCJydyJdLCJzb3VyY2UiOiJzYW5kYm94Oi8vL3RtcC9hdGxhcy9yZXNvbHZjb25mLy4rIiwidHlwZSI6ImJpbmQifV0sInNpZ25hbHMiOltdLCJ3b3JraW5nX2RpciI6Ii8ifSx7ImFsbG93X2VsZXZhdGVkIjp0cnVlLCJhbGxvd19zdGRpb19hY2Nlc3MiOnRydWUsImNvbW1hbmQiOlsiL2Jpbi9zaCIsIi1jIiwic1RpbWVvdXQ9MTA7IHhNYXg9MTA7IHg9MTsgd2hpbGUgWyAkeCAtbGUgJCgoeE1heCooNjAvc1RpbWVvdXQpKSkgXTsgZG8gZWNobyBcIlNsZWVwaW5nIDEgJHggdGltZSBmb3IgJHNUaW1lb3V0IHMgXCIgJCgoIHgrKyApKSBcIiA9PiAkKGRhdGUgKyVZLSVtLSVkXyVIOiVNOiVTKVwiOyBzbGVlcCAkc1RpbWVvdXQ7IGRvbmUiXSwiZW52X3J1bGVzIjpbeyJwYXR0ZXJuIjoiUEFUSD0vdXNyL2xvY2FsL3NiaW46L3Vzci9sb2NhbC9iaW46L3Vzci9zYmluOi91c3IvYmluOi9zYmluOi9iaW4iLCJyZXF1aXJlZCI6ZmFsc2UsInN0cmF0ZWd5Ijoic3RyaW5nIn0seyJwYXR0ZXJuIjoiVEVSTT14dGVybSIsInJlcXVpcmVkIjpmYWxzZSwic3RyYXRlZ3kiOiJzdHJpbmcifSx7InBhdHRlcm4iOiIoKD9pKUZBQlJJQylfLis9LisiLCJyZXF1aXJlZCI6ZmFsc2UsInN0cmF0ZWd5IjoicmUyIn0seyJwYXR0ZXJuIjoiSE9TVE5BTUU9LisiLCJyZXF1aXJlZCI6ZmFsc2UsInN0cmF0ZWd5IjoicmUyIn0seyJwYXR0ZXJuIjoiVChFKT9NUD0uKyIsInJlcXVpcmVkIjpmYWxzZSwic3RyYXRlZ3kiOiJyZTIifSx7InBhdHRlcm4iOiJGYWJyaWNQYWNrYWdlRmlsZU5hbWU9LisiLCJyZXF1aXJlZCI6ZmFsc2UsInN0cmF0ZWd5IjoicmUyIn0seyJwYXR0ZXJuIjoiSG9zdGVkU2VydmljZU5hbWU9LisiLCJyZXF1aXJlZCI6ZmFsc2UsInN0cmF0ZWd5IjoicmUyIn0seyJwYXR0ZXJuIjoiSURFTlRJVFlfQVBJX1ZFUlNJT049LisiLCJyZXF1aXJlZCI6ZmFsc2UsInN0cmF0ZWd5IjoicmUyIn0seyJwYXR0ZXJuIjoiSURFTlRJVFlfSEVBREVSPS4rIiwicmVxdWlyZWQiOmZhbHNlLCJzdHJhdGVneSI6InJlMiJ9LHsicGF0dGVybiI6IklERU5USVRZX1NFUlZFUl9USFVNQlBSSU5UPS4rIiwicmVxdWlyZWQiOmZhbHNlLCJzdHJhdGVneSI6InJlMiJ9LHsicGF0dGVybiI6ImF6dXJlY29udGFpbmVyaW5zdGFuY2VfcmVzdGFydGVkX2J5PS4rIiwicmVxdWlyZWQiOmZhbHNlLCJzdHJhdGVneSI6InJlMiJ9XSwiZXhlY19wcm9jZXNzZXMiOlt7ImFsbG93X3N0ZGlvX2FjY2VzcyI6dHJ1ZSwiY29tbWFuZCI6WyIvYmluL3NoIl0sInNpZ25hbHMiOltdfSx7ImFsbG93X3N0ZGlvX2FjY2VzcyI6dHJ1ZSwiY29tbWFuZCI6WyIvYmluL2Jhc2giXSwic2lnbmFscyI6W119XSwiaWQiOiJhbHBpbmUiLCJsYXllcnMiOlsiNTk1YmIwMDRmMDc1OTg2MWNhNWUzNDFjZTZlNmQzNGVhMjA1ZTlmOTcxY2YxYWI2MzczNzEwNTk3NmExZDA5NSJdLCJtb3VudHMiOlt7ImRlc3RpbmF0aW9uIjoiL2V0Yy9yZXNvbHYuY29uZiIsIm9wdGlvbnMiOlsicmJpbmQiLCJyc2hhcmVkIiwicnciXSwic291cmNlIjoic2FuZGJveDovLy90bXAvYXRsYXMvcmVzb2x2Y29uZi8uKyIsInR5cGUiOiJiaW5kIn1dLCJzaWduYWxzIjpbXSwid29ya2luZ19kaXIiOiIvIn0seyJhbGxvd19lbGV2YXRlZCI6ZmFsc2UsImFsbG93X3N0ZGlvX2FjY2VzcyI6dHJ1ZSwiY29tbWFuZCI6WyIvcGF1c2UiXSwiZW52X3J1bGVzIjpbeyJwYXR0ZXJuIjoiUEFUSD0vdXNyL2xvY2FsL3NiaW46L3Vzci9sb2NhbC9iaW46L3Vzci9zYmluOi91c3IvYmluOi9zYmluOi9iaW4iLCJyZXF1aXJlZCI6dHJ1ZSwic3RyYXRlZ3kiOiJzdHJpbmcifSx7InBhdHRlcm4iOiJURVJNPXh0ZXJtIiwicmVxdWlyZWQiOmZhbHNlLCJzdHJhdGVneSI6InN0cmluZyJ9XSwiZXhlY19wcm9jZXNzZXMiOltdLCJsYXllcnMiOlsiMTZiNTE0MDU3YTA2YWQ2NjVmOTJjMDI4NjNhY2EwNzRmZDU5NzZjNzU1ZDI2YmZmMTYzNjUyOTkxNjllODQxNSJdLCJtb3VudHMiOltdLCJzaWduYWxzIjpbXSwid29ya2luZ19kaXIiOiIvIn1dCgphbGxvd19wcm9wZXJ0aWVzX2FjY2VzcyA6PSB0cnVlCmFsbG93X2R1bXBfc3RhY2tzIDo9IHRydWUKYWxsb3dfcnVudGltZV9sb2dnaW5nIDo9IHRydWUKYWxsb3dfZW52aXJvbm1lbnRfdmFyaWFibGVfZHJvcHBpbmcgOj0gdHJ1ZQphbGxvd191bmVuY3J5cHRlZF9zY3JhdGNoIDo9IGZhbHNlCgoKCm1vdW50X2RldmljZSA6PSBkYXRhLmZyYW1ld29yay5tb3VudF9kZXZpY2UKdW5tb3VudF9kZXZpY2UgOj0gZGF0YS5mcmFtZXdvcmsudW5tb3VudF9kZXZpY2UKbW91bnRfb3ZlcmxheSA6PSBkYXRhLmZyYW1ld29yay5tb3VudF9vdmVybGF5CnVubW91bnRfb3ZlcmxheSA6PSBkYXRhLmZyYW1ld29yay51bm1vdW50X292ZXJsYXkKY3JlYXRlX2NvbnRhaW5lciA6PSBkYXRhLmZyYW1ld29yay5jcmVhdGVfY29udGFpbmVyCmV4ZWNfaW5fY29udGFpbmVyIDo9IGRhdGEuZnJhbWV3b3JrLmV4ZWNfaW5fY29udGFpbmVyCmV4ZWNfZXh0ZXJuYWwgOj0gZGF0YS5mcmFtZXdvcmsuZXhlY19leHRlcm5hbApzaHV0ZG93bl9jb250YWluZXIgOj0gZGF0YS5mcmFtZXdvcmsuc2h1dGRvd25fY29udGFpbmVyCnNpZ25hbF9jb250YWluZXJfcHJvY2VzcyA6PSBkYXRhLmZyYW1ld29yay5zaWduYWxfY29udGFpbmVyX3Byb2Nlc3MKcGxhbjlfbW91bnQgOj0gZGF0YS5mcmFtZXdvcmsucGxhbjlfbW91bnQKcGxhbjlfdW5tb3VudCA6PSBkYXRhLmZyYW1ld29yay5wbGFuOV91bm1vdW50CmdldF9wcm9wZXJ0aWVzIDo9IGRhdGEuZnJhbWV3b3JrLmdldF9wcm9wZXJ0aWVzCmR1bXBfc3RhY2tzIDo9IGRhdGEuZnJhbWV3b3JrLmR1bXBfc3RhY2tzCnJ1bnRpbWVfbG9nZ2luZyA6PSBkYXRhLmZyYW1ld29yay5ydW50aW1lX2xvZ2dpbmcKbG9hZF9mcmFnbWVudCA6PSBkYXRhLmZyYW1ld29yay5sb2FkX2ZyYWdtZW50CnNjcmF0Y2hfbW91bnQgOj0gZGF0YS5mcmFtZXdvcmsuc2NyYXRjaF9tb3VudApzY3JhdGNoX3VubW91bnQgOj0gZGF0YS5mcmFtZXdvcmsuc2NyYXRjaF91bm1vdW50CgpyZWFzb24gOj0geyJlcnJvcnMiOiBkYXRhLmZyYW1ld29yay5lcnJvcnN9\"},\"provisioningState\":\"Failed\",\"containers\":[{\"name\":\"testcontainer1\",\"properties\":{\"image\":\"alpine\",\"command\":[\"/bin/sh\",\"-c\",\"sTimeout=10; xMax=10; x=1; while [ $x -le $((xMax*(60/sTimeout))) ]; do echo \\\"Sleeping $x time for $sTimeout s \\\" $(( x++ )) \\\" =\u003e $(date +%Y-%m-%d_%H:%M:%S)\\\"; sleep $sTimeout; done\"],\"ports\":[],\"environmentVariables\":[],\"resources\":{\"requests\":{\"memoryInGB\":0.2,\"cpu\":0.2}}}},{\"name\":\"testcontainer2\",\"properties\":{\"image\":\"alpine\",\"command\":[\"/bin/sh\",\"-c\",\"sTimeout=10; xMax=10; x=1; while [ $x -le $((xMax*(60/sTimeout))) ]; do echo \\\"Sleeping $x time for $sTimeout s \\\" $(( x++ )) \\\" =\u003e $(date +%Y-%m-%d_%H:%M:%S)\\\"; sleep $sTimeout; done\"],\"ports\":[],\"environmentVariables\":[],\"resources\":{\"requests\":{\"memoryInGB\":0.2,\"cpu\":0.2}}}}],\"initContainers\":[],\"restartPolicy\":\"Always\",\"osType\":\"Linux\"},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/suselva-cc-test-rg/providers/Microsoft.ContainerInstance/containerGroups/suselvatest-events-test-northeu-1\",\"name\":\"suselvatest-events-test-northeu-1\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"northeurope\"}]}", - "isContentBase64": false - } - }, - "Get-AzContainerGroup+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg?api-version=2022-10-01-preview+1": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "46" ], - "x-ms-client-request-id": [ "88754af0-5f05-49d2-bab0-a2a275ed7e0d" ], + "x-ms-client-request-id": [ "74b9d51f-2793-4c7c-872a-7aea70692fc5" ], "CommandName": [ "Get-AzContainerGroup" ], "FullCommandName": [ "Get-AzContainerGroup_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -63,37 +22,39 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-request-id": [ "eastus:cc777ffe-1294-4bb6-8e98-e0997c493181" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11968" ], - "x-ms-correlation-request-id": [ "b5795aa2-3c86-48dc-9ab8-86a5c1f003e2" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T000320Z:b5795aa2-3c86-48dc-9ab8-86a5c1f003e2" ], + "x-ms-request-id": [ "eastus:d22c4d42-5b2a-4f4a-89fa-0c8cbc0fa26e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "5a69c7e5-bf93-495c-bc1f-107c510fa9e0" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T050007Z:5a69c7e5-bf93-495c-bc1f-107c510fa9e0" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:03:19 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 96F1991EB4724E648317FF4A32FC86C3 Ref B: MAA201060514031 Ref C: 2024-10-31T05:00:06Z" ], + "Date": [ "Thu, 31 Oct 2024 05:00:07 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1333" ], + "Content-Length": [ "1578" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"bez-test-ci\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2023-02-17T23:53:48.067Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:53:26Z\",\"lastTimestamp\":\"2023-02-17T23:53:26Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:53:35Z\",\"lastTimestamp\":\"2023-02-17T23:53:35Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:53:48Z\",\"lastTimestamp\":\"2023-02-17T23:53:48Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"}},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg\",\"name\":\"bez-test-cg\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"}", + "Content": "{\"properties\":{\"sku\":\"Standard\",\"isCreatedFromStandbyPool\":false,\"provisioningState\":\"Succeeded\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"bez-test-ci\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{}},\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2024-10-31T04:52:46.771Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:52:33Z\",\"lastTimestamp\":\"2024-10-31T04:52:33Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:52:38Z\",\"lastTimestamp\":\"2024-10-31T04:52:38Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:52:46Z\",\"lastTimestamp\":\"2024-10-31T04:52:46Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"}},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg\",\"name\":\"bez-test-cg\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"}", "isContentBase64": false } }, - "Get-AzContainerGroup+[NoContext]+List1+$GET+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups?api-version=2022-10-01-preview+1": { + "Get-AzContainerGroup+[NoContext]+List1+$GET+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups?api-version=2024-05-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "47" ], - "x-ms-client-request-id": [ "4a9a0a55-40d3-4e61-b9a5-b51fbacb1e0c" ], + "x-ms-client-request-id": [ "8ae76b7e-0c7e-4859-bc2b-3c3e4dd8a09b" ], "CommandName": [ "Get-AzContainerGroup" ], "FullCommandName": [ "Get-AzContainerGroup_List1" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -104,28 +65,30 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-request-id": [ "eastus:08d18ce1-4c75-4f70-9326-e98919bd35d7" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11967" ], - "x-ms-correlation-request-id": [ "2130a332-59ca-4e2f-9ed8-21ff3d8f539d" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T000321Z:2130a332-59ca-4e2f-9ed8-21ff3d8f539d" ], + "x-ms-request-id": [ "eastus:12fbec50-3ba5-404b-ad48-aee3e5a27484" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "c3017afb-1d18-4dc2-b4f3-4fac16553a37" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T050008Z:c3017afb-1d18-4dc2-b4f3-4fac16553a37" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:03:20 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 98393D61C3CF4780B3F15EC233F0DCD2 Ref B: MAA201060514031 Ref C: 2024-10-31T05:00:07Z" ], + "Date": [ "Thu, 31 Oct 2024 05:00:07 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "9779" ], + "Content-Length": [ "11831" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"bez-test-ci\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\"},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg\",\"name\":\"bez-test-cg\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"},{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\"},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg-remove1\",\"name\":\"bez-test-cg-remove1\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"},{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"2\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\"},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg-remove2\",\"name\":\"bez-test-cg-remove2\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"},{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"priority\":\"Regular\"},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgq5m6g\",\"name\":\"test-cgq5m6g\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"},{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"priority\":\"Regular\"},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgq5m6g-remove1\",\"name\":\"test-cgq5m6g-remove1\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"},{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"priority\":\"Regular\"},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgq5m6g-remove2\",\"name\":\"test-cgq5m6g-remove2\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"},{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"priority\":\"Spot\"},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgytxbr\",\"name\":\"test-cgytxbr\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"},{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"priority\":\"Spot\"},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgytxbr-remove1\",\"name\":\"test-cgytxbr-remove1\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"},{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"priority\":\"Spot\"},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgytxbr-remove2\",\"name\":\"test-cgytxbr-remove2\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"},{\"properties\":{\"sku\":\"Confidential\",\"confidentialComputeProperties\":{\"ccePolicy\":\"cGFja2FnZSBwb2xpY3kKCmFwaV9zdm4gOj0gIjAuMTAuMCIKCm1vdW50X2RldmljZSA6PSB7ImFsbG93ZWQiOiB0cnVlfQptb3VudF9vdmVybGF5IDo9IHsiYWxsb3dlZCI6IHRydWV9CmNyZWF0ZV9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbCwgImFsbG93X3N0ZGlvX2FjY2VzcyI6IHRydWV9CnVubW91bnRfZGV2aWNlIDo9IHsiYWxsb3dlZCI6IHRydWV9IAp1bm1vdW50X292ZXJsYXkgOj0geyJhbGxvd2VkIjogdHJ1ZX0KZXhlY19pbl9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbH0KZXhlY19leHRlcm5hbCA6PSB7ImFsbG93ZWQiOiB0cnVlLCAiZW52X2xpc3QiOiBudWxsLCAiYWxsb3dfc3RkaW9fYWNjZXNzIjogdHJ1ZX0Kc2h1dGRvd25fY29udGFpbmVyIDo9IHsiYWxsb3dlZCI6IHRydWV9CnNpZ25hbF9jb250YWluZXJfcHJvY2VzcyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV9tb3VudCA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CmdldF9wcm9wZXJ0aWVzIDo9IHsiYWxsb3dlZCI6IHRydWV9CmR1bXBfc3RhY2tzIDo9IHsiYWxsb3dlZCI6IHRydWV9CnJ1bnRpbWVfbG9nZ2luZyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpsb2FkX2ZyYWdtZW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CnNjcmF0Y2hfbW91bnQgOj0geyJhbGxvd2VkIjogdHJ1ZX0Kc2NyYXRjaF91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9Cg==\"},\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\"},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup\",\"name\":\"test-confidential-containergroup\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"},{\"properties\":{\"sku\":\"Confidential\",\"confidentialComputeProperties\":{\"ccePolicy\":\"cGFja2FnZSBwb2xpY3kKCmFwaV9zdm4gOj0gIjAuMTAuMCIKCm1vdW50X2RldmljZSA6PSB7ImFsbG93ZWQiOiB0cnVlfQptb3VudF9vdmVybGF5IDo9IHsiYWxsb3dlZCI6IHRydWV9CmNyZWF0ZV9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbCwgImFsbG93X3N0ZGlvX2FjY2VzcyI6IHRydWV9CnVubW91bnRfZGV2aWNlIDo9IHsiYWxsb3dlZCI6IHRydWV9IAp1bm1vdW50X292ZXJsYXkgOj0geyJhbGxvd2VkIjogdHJ1ZX0KZXhlY19pbl9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbH0KZXhlY19leHRlcm5hbCA6PSB7ImFsbG93ZWQiOiB0cnVlLCAiZW52X2xpc3QiOiBudWxsLCAiYWxsb3dfc3RkaW9fYWNjZXNzIjogdHJ1ZX0Kc2h1dGRvd25fY29udGFpbmVyIDo9IHsiYWxsb3dlZCI6IHRydWV9CnNpZ25hbF9jb250YWluZXJfcHJvY2VzcyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV9tb3VudCA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CmdldF9wcm9wZXJ0aWVzIDo9IHsiYWxsb3dlZCI6IHRydWV9CmR1bXBfc3RhY2tzIDo9IHsiYWxsb3dlZCI6IHRydWV9CnJ1bnRpbWVfbG9nZ2luZyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpsb2FkX2ZyYWdtZW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CnNjcmF0Y2hfbW91bnQgOj0geyJhbGxvd2VkIjogdHJ1ZX0Kc2NyYXRjaF91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9Cg==\"},\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\"},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup-remove1\",\"name\":\"test-confidential-containergroup-remove1\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"},{\"properties\":{\"sku\":\"Confidential\",\"confidentialComputeProperties\":{\"ccePolicy\":\"cGFja2FnZSBwb2xpY3kKCmFwaV9zdm4gOj0gIjAuMTAuMCIKCm1vdW50X2RldmljZSA6PSB7ImFsbG93ZWQiOiB0cnVlfQptb3VudF9vdmVybGF5IDo9IHsiYWxsb3dlZCI6IHRydWV9CmNyZWF0ZV9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbCwgImFsbG93X3N0ZGlvX2FjY2VzcyI6IHRydWV9CnVubW91bnRfZGV2aWNlIDo9IHsiYWxsb3dlZCI6IHRydWV9IAp1bm1vdW50X292ZXJsYXkgOj0geyJhbGxvd2VkIjogdHJ1ZX0KZXhlY19pbl9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbH0KZXhlY19leHRlcm5hbCA6PSB7ImFsbG93ZWQiOiB0cnVlLCAiZW52X2xpc3QiOiBudWxsLCAiYWxsb3dfc3RkaW9fYWNjZXNzIjogdHJ1ZX0Kc2h1dGRvd25fY29udGFpbmVyIDo9IHsiYWxsb3dlZCI6IHRydWV9CnNpZ25hbF9jb250YWluZXJfcHJvY2VzcyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV9tb3VudCA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CmdldF9wcm9wZXJ0aWVzIDo9IHsiYWxsb3dlZCI6IHRydWV9CmR1bXBfc3RhY2tzIDo9IHsiYWxsb3dlZCI6IHRydWV9CnJ1bnRpbWVfbG9nZ2luZyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpsb2FkX2ZyYWdtZW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CnNjcmF0Y2hfbW91bnQgOj0geyJhbGxvd2VkIjogdHJ1ZX0Kc2NyYXRjaF91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9Cg==\"},\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\"},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup-remove2\",\"name\":\"test-confidential-containergroup-remove2\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"}]}", + "Content": "{\"value\":[{\"properties\":{\"sku\":\"Standard\",\"isCreatedFromStandbyPool\":false,\"provisioningState\":\"Succeeded\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"bez-test-ci\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{}},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\"},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg\",\"name\":\"bez-test-cg\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"},{\"properties\":{\"sku\":\"Standard\",\"isCreatedFromStandbyPool\":false,\"provisioningState\":\"Succeeded\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{}},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\"},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg-remove1\",\"name\":\"bez-test-cg-remove1\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"},{\"properties\":{\"sku\":\"Standard\",\"isCreatedFromStandbyPool\":false,\"provisioningState\":\"Succeeded\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"2\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{}},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\"},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg-remove2\",\"name\":\"bez-test-cg-remove2\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"},{\"properties\":{\"sku\":\"Standard\",\"isCreatedFromStandbyPool\":false,\"provisioningState\":\"Succeeded\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{}},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"priority\":\"Regular\"},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cgfl4g3\",\"name\":\"test-cgfl4g3\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"},{\"properties\":{\"sku\":\"Standard\",\"isCreatedFromStandbyPool\":false,\"provisioningState\":\"Succeeded\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{}},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"priority\":\"Regular\"},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cgfl4g3-remove1\",\"name\":\"test-cgfl4g3-remove1\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"},{\"properties\":{\"sku\":\"Standard\",\"isCreatedFromStandbyPool\":false,\"provisioningState\":\"Succeeded\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{}},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"priority\":\"Regular\"},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cgfl4g3-remove2\",\"name\":\"test-cgfl4g3-remove2\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"},{\"properties\":{\"sku\":\"Standard\",\"isCreatedFromStandbyPool\":false,\"provisioningState\":\"Succeeded\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{}},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"priority\":\"Spot\"},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cguyxhp\",\"name\":\"test-cguyxhp\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"},{\"properties\":{\"sku\":\"Standard\",\"isCreatedFromStandbyPool\":false,\"provisioningState\":\"Succeeded\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{}},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"priority\":\"Spot\"},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cguyxhp-remove1\",\"name\":\"test-cguyxhp-remove1\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"},{\"properties\":{\"sku\":\"Standard\",\"isCreatedFromStandbyPool\":false,\"provisioningState\":\"Succeeded\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{}},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"priority\":\"Spot\"},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cguyxhp-remove2\",\"name\":\"test-cguyxhp-remove2\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"},{\"properties\":{\"sku\":\"Confidential\",\"confidentialComputeProperties\":{\"ccePolicy\":\"cGFja2FnZSBwb2xpY3kKCmFwaV9zdm4gOj0gIjAuMTAuMCIKCm1vdW50X2RldmljZSA6PSB7ImFsbG93ZWQiOiB0cnVlfQptb3VudF9vdmVybGF5IDo9IHsiYWxsb3dlZCI6IHRydWV9CmNyZWF0ZV9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbCwgImFsbG93X3N0ZGlvX2FjY2VzcyI6IHRydWV9CnVubW91bnRfZGV2aWNlIDo9IHsiYWxsb3dlZCI6IHRydWV9IAp1bm1vdW50X292ZXJsYXkgOj0geyJhbGxvd2VkIjogdHJ1ZX0KZXhlY19pbl9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbH0KZXhlY19leHRlcm5hbCA6PSB7ImFsbG93ZWQiOiB0cnVlLCAiZW52X2xpc3QiOiBudWxsLCAiYWxsb3dfc3RkaW9fYWNjZXNzIjogdHJ1ZX0Kc2h1dGRvd25fY29udGFpbmVyIDo9IHsiYWxsb3dlZCI6IHRydWV9CnNpZ25hbF9jb250YWluZXJfcHJvY2VzcyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV9tb3VudCA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CmdldF9wcm9wZXJ0aWVzIDo9IHsiYWxsb3dlZCI6IHRydWV9CmR1bXBfc3RhY2tzIDo9IHsiYWxsb3dlZCI6IHRydWV9CnJ1bnRpbWVfbG9nZ2luZyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpsb2FkX2ZyYWdtZW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CnNjcmF0Y2hfbW91bnQgOj0geyJhbGxvd2VkIjogdHJ1ZX0Kc2NyYXRjaF91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9Cg==\"},\"isCreatedFromStandbyPool\":false,\"provisioningState\":\"Succeeded\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{}},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\"},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup\",\"name\":\"test-confidential-containergroup\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"},{\"properties\":{\"sku\":\"Confidential\",\"confidentialComputeProperties\":{\"ccePolicy\":\"cGFja2FnZSBwb2xpY3kKCmFwaV9zdm4gOj0gIjAuMTAuMCIKCm1vdW50X2RldmljZSA6PSB7ImFsbG93ZWQiOiB0cnVlfQptb3VudF9vdmVybGF5IDo9IHsiYWxsb3dlZCI6IHRydWV9CmNyZWF0ZV9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbCwgImFsbG93X3N0ZGlvX2FjY2VzcyI6IHRydWV9CnVubW91bnRfZGV2aWNlIDo9IHsiYWxsb3dlZCI6IHRydWV9IAp1bm1vdW50X292ZXJsYXkgOj0geyJhbGxvd2VkIjogdHJ1ZX0KZXhlY19pbl9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbH0KZXhlY19leHRlcm5hbCA6PSB7ImFsbG93ZWQiOiB0cnVlLCAiZW52X2xpc3QiOiBudWxsLCAiYWxsb3dfc3RkaW9fYWNjZXNzIjogdHJ1ZX0Kc2h1dGRvd25fY29udGFpbmVyIDo9IHsiYWxsb3dlZCI6IHRydWV9CnNpZ25hbF9jb250YWluZXJfcHJvY2VzcyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV9tb3VudCA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CmdldF9wcm9wZXJ0aWVzIDo9IHsiYWxsb3dlZCI6IHRydWV9CmR1bXBfc3RhY2tzIDo9IHsiYWxsb3dlZCI6IHRydWV9CnJ1bnRpbWVfbG9nZ2luZyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpsb2FkX2ZyYWdtZW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CnNjcmF0Y2hfbW91bnQgOj0geyJhbGxvd2VkIjogdHJ1ZX0Kc2NyYXRjaF91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9Cg==\"},\"isCreatedFromStandbyPool\":false,\"provisioningState\":\"Succeeded\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{}},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\"},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup-remove1\",\"name\":\"test-confidential-containergroup-remove1\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"},{\"properties\":{\"sku\":\"Confidential\",\"confidentialComputeProperties\":{\"ccePolicy\":\"cGFja2FnZSBwb2xpY3kKCmFwaV9zdm4gOj0gIjAuMTAuMCIKCm1vdW50X2RldmljZSA6PSB7ImFsbG93ZWQiOiB0cnVlfQptb3VudF9vdmVybGF5IDo9IHsiYWxsb3dlZCI6IHRydWV9CmNyZWF0ZV9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbCwgImFsbG93X3N0ZGlvX2FjY2VzcyI6IHRydWV9CnVubW91bnRfZGV2aWNlIDo9IHsiYWxsb3dlZCI6IHRydWV9IAp1bm1vdW50X292ZXJsYXkgOj0geyJhbGxvd2VkIjogdHJ1ZX0KZXhlY19pbl9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbH0KZXhlY19leHRlcm5hbCA6PSB7ImFsbG93ZWQiOiB0cnVlLCAiZW52X2xpc3QiOiBudWxsLCAiYWxsb3dfc3RkaW9fYWNjZXNzIjogdHJ1ZX0Kc2h1dGRvd25fY29udGFpbmVyIDo9IHsiYWxsb3dlZCI6IHRydWV9CnNpZ25hbF9jb250YWluZXJfcHJvY2VzcyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV9tb3VudCA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CmdldF9wcm9wZXJ0aWVzIDo9IHsiYWxsb3dlZCI6IHRydWV9CmR1bXBfc3RhY2tzIDo9IHsiYWxsb3dlZCI6IHRydWV9CnJ1bnRpbWVfbG9nZ2luZyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpsb2FkX2ZyYWdtZW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CnNjcmF0Y2hfbW91bnQgOj0geyJhbGxvd2VkIjogdHJ1ZX0Kc2NyYXRjaF91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9Cg==\"},\"isCreatedFromStandbyPool\":false,\"provisioningState\":\"Succeeded\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{}},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\"},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup-remove2\",\"name\":\"test-confidential-containergroup-remove2\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"}]}", "isContentBase64": false } }, - "Get-AzContainerGroup+[NoContext]+GetViaIdentity+$PATCH+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg?api-version=2022-10-01-preview+1": { + "Get-AzContainerGroup+[NoContext]+GetViaIdentity+$PATCH+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg?api-version=2024-05-01-preview+1": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg?api-version=2024-05-01-preview", "Content": "{\n \"tags\": {\n \"key\": \"value\"\n }\n}", "isContentBase64": false, "Headers": { @@ -140,37 +103,39 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-request-id": [ "eastus:dfdbab8a-ed55-453a-bc82-c1476af4fa33" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1187" ], - "x-ms-correlation-request-id": [ "b6a31153-5ad8-4ddb-b970-749544683957" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T000322Z:b6a31153-5ad8-4ddb-b970-749544683957" ], + "x-ms-request-id": [ "eastus:06d30606-84d1-4db4-b9d5-70b49af4536d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], + "x-ms-correlation-request-id": [ "257ee978-d6cd-4409-bdf3-a02eabd030bf" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T050012Z:257ee978-d6cd-4409-bdf3-a02eabd030bf" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:03:21 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: C74201BA602F4AFAACCF9F8C496B2DF2 Ref B: MAA201060514031 Ref C: 2024-10-31T05:00:08Z" ], + "Date": [ "Thu, 31 Oct 2024 05:00:11 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1356" ], + "Content-Length": [ "1601" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"bez-test-ci\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2023-02-17T23:53:48.067Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:53:26Z\",\"lastTimestamp\":\"2023-02-17T23:53:26Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:53:35Z\",\"lastTimestamp\":\"2023-02-17T23:53:35Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:53:48Z\",\"lastTimestamp\":\"2023-02-17T23:53:48Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"}},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg\",\"name\":\"bez-test-cg\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\",\"tags\":{\"key\":\"value\"}}", + "Content": "{\"properties\":{\"sku\":\"Standard\",\"isCreatedFromStandbyPool\":false,\"provisioningState\":\"Succeeded\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"bez-test-ci\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{}},\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2024-10-31T04:52:46.771Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:52:33Z\",\"lastTimestamp\":\"2024-10-31T04:52:33Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:52:38Z\",\"lastTimestamp\":\"2024-10-31T04:52:38Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:52:46Z\",\"lastTimestamp\":\"2024-10-31T04:52:46Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"}},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg\",\"name\":\"bez-test-cg\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\",\"tags\":{\"key\":\"value\"}}", "isContentBase64": false } }, - "Get-AzContainerGroup+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg?api-version=2022-10-01-preview+2": { + "Get-AzContainerGroup+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg?api-version=2024-05-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "49" ], - "x-ms-client-request-id": [ "3bff1bc5-fcf1-473a-b4d0-ae85d3d107d8" ], + "x-ms-client-request-id": [ "524bc2dc-bf91-415f-9edc-d4aed1465d8e" ], "CommandName": [ "Get-AzContainerGroup" ], "FullCommandName": [ "Get-AzContainerGroup_GetViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -181,21 +146,23 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-request-id": [ "eastus:080f66ee-0f42-43f0-8c25-41a8c2b5780a" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11966" ], - "x-ms-correlation-request-id": [ "233cca7e-cf0c-4616-aced-ce8c0508789f" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T000322Z:233cca7e-cf0c-4616-aced-ce8c0508789f" ], + "x-ms-request-id": [ "eastus:8b104fb4-d8bd-4c79-b1f8-b43bfc5b7ad2" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "003fb64e-a2b2-480a-9876-16e8036de070" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T050012Z:003fb64e-a2b2-480a-9876-16e8036de070" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:03:21 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: B5E2DFA2EDF14752AD73549BC79DAE0B Ref B: MAA201060514031 Ref C: 2024-10-31T05:00:12Z" ], + "Date": [ "Thu, 31 Oct 2024 05:00:12 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1356" ], + "Content-Length": [ "1601" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"bez-test-ci\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2023-02-17T23:53:48.067Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:53:26Z\",\"lastTimestamp\":\"2023-02-17T23:53:26Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:53:35Z\",\"lastTimestamp\":\"2023-02-17T23:53:35Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:53:48Z\",\"lastTimestamp\":\"2023-02-17T23:53:48Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"}},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg\",\"name\":\"bez-test-cg\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\",\"tags\":{\"key\":\"value\"}}", + "Content": "{\"properties\":{\"sku\":\"Standard\",\"isCreatedFromStandbyPool\":false,\"provisioningState\":\"Succeeded\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"bez-test-ci\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{}},\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2024-10-31T04:52:46.771Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:52:33Z\",\"lastTimestamp\":\"2024-10-31T04:52:33Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:52:38Z\",\"lastTimestamp\":\"2024-10-31T04:52:38Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:52:46Z\",\"lastTimestamp\":\"2024-10-31T04:52:46Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"}},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg\",\"name\":\"bez-test-cg\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\",\"tags\":{\"key\":\"value\"}}", "isContentBase64": false } } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/test/Get-AzContainerGroup.Tests.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/test/Get-AzContainerGroup.Tests.ps1 index 641e0f059cbb..b27b0c7526c8 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/test/Get-AzContainerGroup.Tests.ps1 +++ b/src/ContainerInstance/ContainerInstance.Autorest/test/Get-AzContainerGroup.Tests.ps1 @@ -20,7 +20,7 @@ while(-not $mockingPath) { Describe 'Get-AzContainerGroup' { - It 'List' { + It 'List' -skip { { Get-AzContainerGroup } | Should -Not -Throw diff --git a/src/ContainerInstance/ContainerInstance.Autorest/test/Get-AzContainerGroupConfidentialSku.Recording.json b/src/ContainerInstance/ContainerInstance.Autorest/test/Get-AzContainerGroupConfidentialSku.Recording.json index 04cd57822171..202b4ef37d4a 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/test/Get-AzContainerGroupConfidentialSku.Recording.json +++ b/src/ContainerInstance/ContainerInstance.Autorest/test/Get-AzContainerGroupConfidentialSku.Recording.json @@ -1,17 +1,17 @@ { - "Get-AzContainerGroupConfidentialSku+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup?api-version=2022-10-01-preview+1": { + "Get-AzContainerGroupConfidentialSku+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup?api-version=2024-05-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "50" ], - "x-ms-client-request-id": [ "9dab58b7-0bfc-4320-a950-b8b23c517db1" ], + "x-ms-client-request-id": [ "40ce3248-5e9b-4fed-b178-431d13d3f815" ], "CommandName": [ "Get-AzContainerGroup" ], "FullCommandName": [ "Get-AzContainerGroup_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -22,28 +22,30 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-request-id": [ "eastus:791b247b-aac4-43c5-afc0-08a2184fbd96" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11965" ], - "x-ms-correlation-request-id": [ "24ce49e9-d59f-419c-bb51-2de1cf6ce608" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T000332Z:24ce49e9-d59f-419c-bb51-2de1cf6ce608" ], + "x-ms-request-id": [ "eastus:7a4809fe-638b-4011-b1b1-24c2134f252b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "1d97fd48-823f-4152-bdbe-29e968279e1f" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T050023Z:1d97fd48-823f-4152-bdbe-29e968279e1f" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:03:31 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 1AF9FCBBEA1E42199FE83B0FE6BDCACB Ref B: MAA201060514031 Ref C: 2024-10-31T05:00:23Z" ], + "Date": [ "Thu, 31 Oct 2024 05:00:23 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2446" ], + "Content-Length": [ "2691" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"sku\":\"Confidential\",\"confidentialComputeProperties\":{\"ccePolicy\":\"cGFja2FnZSBwb2xpY3kKCmFwaV9zdm4gOj0gIjAuMTAuMCIKCm1vdW50X2RldmljZSA6PSB7ImFsbG93ZWQiOiB0cnVlfQptb3VudF9vdmVybGF5IDo9IHsiYWxsb3dlZCI6IHRydWV9CmNyZWF0ZV9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbCwgImFsbG93X3N0ZGlvX2FjY2VzcyI6IHRydWV9CnVubW91bnRfZGV2aWNlIDo9IHsiYWxsb3dlZCI6IHRydWV9IAp1bm1vdW50X292ZXJsYXkgOj0geyJhbGxvd2VkIjogdHJ1ZX0KZXhlY19pbl9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbH0KZXhlY19leHRlcm5hbCA6PSB7ImFsbG93ZWQiOiB0cnVlLCAiZW52X2xpc3QiOiBudWxsLCAiYWxsb3dfc3RkaW9fYWNjZXNzIjogdHJ1ZX0Kc2h1dGRvd25fY29udGFpbmVyIDo9IHsiYWxsb3dlZCI6IHRydWV9CnNpZ25hbF9jb250YWluZXJfcHJvY2VzcyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV9tb3VudCA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CmdldF9wcm9wZXJ0aWVzIDo9IHsiYWxsb3dlZCI6IHRydWV9CmR1bXBfc3RhY2tzIDo9IHsiYWxsb3dlZCI6IHRydWV9CnJ1bnRpbWVfbG9nZ2luZyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpsb2FkX2ZyYWdtZW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CnNjcmF0Y2hfbW91bnQgOj0geyJhbGxvd2VkIjogdHJ1ZX0Kc2NyYXRjaF91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9Cg==\"},\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2023-02-18T00:00:15.471Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:59:24Z\",\"lastTimestamp\":\"2023-02-17T23:59:24Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:59:31Z\",\"lastTimestamp\":\"2023-02-17T23:59:31Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-18T00:00:15Z\",\"lastTimestamp\":\"2023-02-18T00:00:15Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"}},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup\",\"name\":\"test-confidential-containergroup\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"}", + "Content": "{\"properties\":{\"sku\":\"Confidential\",\"confidentialComputeProperties\":{\"ccePolicy\":\"cGFja2FnZSBwb2xpY3kKCmFwaV9zdm4gOj0gIjAuMTAuMCIKCm1vdW50X2RldmljZSA6PSB7ImFsbG93ZWQiOiB0cnVlfQptb3VudF9vdmVybGF5IDo9IHsiYWxsb3dlZCI6IHRydWV9CmNyZWF0ZV9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbCwgImFsbG93X3N0ZGlvX2FjY2VzcyI6IHRydWV9CnVubW91bnRfZGV2aWNlIDo9IHsiYWxsb3dlZCI6IHRydWV9IAp1bm1vdW50X292ZXJsYXkgOj0geyJhbGxvd2VkIjogdHJ1ZX0KZXhlY19pbl9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbH0KZXhlY19leHRlcm5hbCA6PSB7ImFsbG93ZWQiOiB0cnVlLCAiZW52X2xpc3QiOiBudWxsLCAiYWxsb3dfc3RkaW9fYWNjZXNzIjogdHJ1ZX0Kc2h1dGRvd25fY29udGFpbmVyIDo9IHsiYWxsb3dlZCI6IHRydWV9CnNpZ25hbF9jb250YWluZXJfcHJvY2VzcyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV9tb3VudCA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CmdldF9wcm9wZXJ0aWVzIDo9IHsiYWxsb3dlZCI6IHRydWV9CmR1bXBfc3RhY2tzIDo9IHsiYWxsb3dlZCI6IHRydWV9CnJ1bnRpbWVfbG9nZ2luZyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpsb2FkX2ZyYWdtZW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CnNjcmF0Y2hfbW91bnQgOj0geyJhbGxvd2VkIjogdHJ1ZX0Kc2NyYXRjaF91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9Cg==\"},\"isCreatedFromStandbyPool\":false,\"provisioningState\":\"Succeeded\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{}},\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2024-10-31T04:58:03.987Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:57:48Z\",\"lastTimestamp\":\"2024-10-31T04:57:48Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:57:49Z\",\"lastTimestamp\":\"2024-10-31T04:57:49Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:58:03Z\",\"lastTimestamp\":\"2024-10-31T04:58:03Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"}},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup\",\"name\":\"test-confidential-containergroup\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"}", "isContentBase64": false } }, - "Get-AzContainerGroupConfidentialSku+[NoContext]+GetViaIdentity+$PATCH+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup?api-version=2022-10-01-preview+1": { + "Get-AzContainerGroupConfidentialSku+[NoContext]+GetViaIdentity+$PATCH+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup?api-version=2024-05-01-preview+1": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup?api-version=2024-05-01-preview", "Content": "{\n \"tags\": {\n \"key\": \"value\"\n }\n}", "isContentBase64": false, "Headers": { @@ -58,37 +60,39 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-request-id": [ "eastus:438acc8e-c842-431f-bd37-d5c4bd8a3f5a" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1186" ], - "x-ms-correlation-request-id": [ "cb3099c8-d416-4783-9695-4ac9f47e09c5" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T000333Z:cb3099c8-d416-4783-9695-4ac9f47e09c5" ], + "x-ms-request-id": [ "eastus:012fcc0a-6aa6-494d-870b-8de468695a37" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], + "x-ms-correlation-request-id": [ "263a4b2d-0e32-451b-b8b3-10dfbcf9245d" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T050028Z:263a4b2d-0e32-451b-b8b3-10dfbcf9245d" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:03:32 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 120E050E2945451B9DC977B35653FF0E Ref B: MAA201060514031 Ref C: 2024-10-31T05:00:24Z" ], + "Date": [ "Thu, 31 Oct 2024 05:00:27 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2469" ], + "Content-Length": [ "2714" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"sku\":\"Confidential\",\"confidentialComputeProperties\":{\"ccePolicy\":\"cGFja2FnZSBwb2xpY3kKCmFwaV9zdm4gOj0gIjAuMTAuMCIKCm1vdW50X2RldmljZSA6PSB7ImFsbG93ZWQiOiB0cnVlfQptb3VudF9vdmVybGF5IDo9IHsiYWxsb3dlZCI6IHRydWV9CmNyZWF0ZV9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbCwgImFsbG93X3N0ZGlvX2FjY2VzcyI6IHRydWV9CnVubW91bnRfZGV2aWNlIDo9IHsiYWxsb3dlZCI6IHRydWV9IAp1bm1vdW50X292ZXJsYXkgOj0geyJhbGxvd2VkIjogdHJ1ZX0KZXhlY19pbl9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbH0KZXhlY19leHRlcm5hbCA6PSB7ImFsbG93ZWQiOiB0cnVlLCAiZW52X2xpc3QiOiBudWxsLCAiYWxsb3dfc3RkaW9fYWNjZXNzIjogdHJ1ZX0Kc2h1dGRvd25fY29udGFpbmVyIDo9IHsiYWxsb3dlZCI6IHRydWV9CnNpZ25hbF9jb250YWluZXJfcHJvY2VzcyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV9tb3VudCA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CmdldF9wcm9wZXJ0aWVzIDo9IHsiYWxsb3dlZCI6IHRydWV9CmR1bXBfc3RhY2tzIDo9IHsiYWxsb3dlZCI6IHRydWV9CnJ1bnRpbWVfbG9nZ2luZyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpsb2FkX2ZyYWdtZW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CnNjcmF0Y2hfbW91bnQgOj0geyJhbGxvd2VkIjogdHJ1ZX0Kc2NyYXRjaF91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9Cg==\"},\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2023-02-18T00:00:15.471Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:59:24Z\",\"lastTimestamp\":\"2023-02-17T23:59:24Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:59:31Z\",\"lastTimestamp\":\"2023-02-17T23:59:31Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-18T00:00:15Z\",\"lastTimestamp\":\"2023-02-18T00:00:15Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"}},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup\",\"name\":\"test-confidential-containergroup\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\",\"tags\":{\"key\":\"value\"}}", + "Content": "{\"properties\":{\"sku\":\"Confidential\",\"confidentialComputeProperties\":{\"ccePolicy\":\"cGFja2FnZSBwb2xpY3kKCmFwaV9zdm4gOj0gIjAuMTAuMCIKCm1vdW50X2RldmljZSA6PSB7ImFsbG93ZWQiOiB0cnVlfQptb3VudF9vdmVybGF5IDo9IHsiYWxsb3dlZCI6IHRydWV9CmNyZWF0ZV9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbCwgImFsbG93X3N0ZGlvX2FjY2VzcyI6IHRydWV9CnVubW91bnRfZGV2aWNlIDo9IHsiYWxsb3dlZCI6IHRydWV9IAp1bm1vdW50X292ZXJsYXkgOj0geyJhbGxvd2VkIjogdHJ1ZX0KZXhlY19pbl9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbH0KZXhlY19leHRlcm5hbCA6PSB7ImFsbG93ZWQiOiB0cnVlLCAiZW52X2xpc3QiOiBudWxsLCAiYWxsb3dfc3RkaW9fYWNjZXNzIjogdHJ1ZX0Kc2h1dGRvd25fY29udGFpbmVyIDo9IHsiYWxsb3dlZCI6IHRydWV9CnNpZ25hbF9jb250YWluZXJfcHJvY2VzcyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV9tb3VudCA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CmdldF9wcm9wZXJ0aWVzIDo9IHsiYWxsb3dlZCI6IHRydWV9CmR1bXBfc3RhY2tzIDo9IHsiYWxsb3dlZCI6IHRydWV9CnJ1bnRpbWVfbG9nZ2luZyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpsb2FkX2ZyYWdtZW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CnNjcmF0Y2hfbW91bnQgOj0geyJhbGxvd2VkIjogdHJ1ZX0Kc2NyYXRjaF91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9Cg==\"},\"isCreatedFromStandbyPool\":false,\"provisioningState\":\"Succeeded\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{}},\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2024-10-31T04:58:03.987Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:57:48Z\",\"lastTimestamp\":\"2024-10-31T04:57:48Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:57:49Z\",\"lastTimestamp\":\"2024-10-31T04:57:49Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:58:03Z\",\"lastTimestamp\":\"2024-10-31T04:58:03Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"}},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup\",\"name\":\"test-confidential-containergroup\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\",\"tags\":{\"key\":\"value\"}}", "isContentBase64": false } }, - "Get-AzContainerGroupConfidentialSku+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup?api-version=2022-10-01-preview+2": { + "Get-AzContainerGroupConfidentialSku+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup?api-version=2024-05-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "52" ], - "x-ms-client-request-id": [ "85012dbf-73cf-4146-8f2d-605c0b23cb1e" ], + "x-ms-client-request-id": [ "48d2c86b-2240-4cd4-a95e-1395d45072ea" ], "CommandName": [ "Get-AzContainerGroup" ], "FullCommandName": [ "Get-AzContainerGroup_GetViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -99,21 +103,23 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-request-id": [ "eastus:7bd40e7e-77aa-4528-90c5-1d964fcca126" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11964" ], - "x-ms-correlation-request-id": [ "5a03c7b2-49b2-4d42-b2eb-b17367d96c70" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T000333Z:5a03c7b2-49b2-4d42-b2eb-b17367d96c70" ], + "x-ms-request-id": [ "eastus:7751071c-ac2d-4981-90ff-f54944ffaaaf" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "b568be53-dd32-4932-968a-e0efc05725ca" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T050029Z:b568be53-dd32-4932-968a-e0efc05725ca" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:03:32 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 997324D90DF34BEB9FB787AF9376ACB9 Ref B: MAA201060514031 Ref C: 2024-10-31T05:00:28Z" ], + "Date": [ "Thu, 31 Oct 2024 05:00:29 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2469" ], + "Content-Length": [ "2714" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"sku\":\"Confidential\",\"confidentialComputeProperties\":{\"ccePolicy\":\"cGFja2FnZSBwb2xpY3kKCmFwaV9zdm4gOj0gIjAuMTAuMCIKCm1vdW50X2RldmljZSA6PSB7ImFsbG93ZWQiOiB0cnVlfQptb3VudF9vdmVybGF5IDo9IHsiYWxsb3dlZCI6IHRydWV9CmNyZWF0ZV9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbCwgImFsbG93X3N0ZGlvX2FjY2VzcyI6IHRydWV9CnVubW91bnRfZGV2aWNlIDo9IHsiYWxsb3dlZCI6IHRydWV9IAp1bm1vdW50X292ZXJsYXkgOj0geyJhbGxvd2VkIjogdHJ1ZX0KZXhlY19pbl9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbH0KZXhlY19leHRlcm5hbCA6PSB7ImFsbG93ZWQiOiB0cnVlLCAiZW52X2xpc3QiOiBudWxsLCAiYWxsb3dfc3RkaW9fYWNjZXNzIjogdHJ1ZX0Kc2h1dGRvd25fY29udGFpbmVyIDo9IHsiYWxsb3dlZCI6IHRydWV9CnNpZ25hbF9jb250YWluZXJfcHJvY2VzcyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV9tb3VudCA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CmdldF9wcm9wZXJ0aWVzIDo9IHsiYWxsb3dlZCI6IHRydWV9CmR1bXBfc3RhY2tzIDo9IHsiYWxsb3dlZCI6IHRydWV9CnJ1bnRpbWVfbG9nZ2luZyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpsb2FkX2ZyYWdtZW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CnNjcmF0Y2hfbW91bnQgOj0geyJhbGxvd2VkIjogdHJ1ZX0Kc2NyYXRjaF91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9Cg==\"},\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2023-02-18T00:00:15.471Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:59:24Z\",\"lastTimestamp\":\"2023-02-17T23:59:24Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:59:31Z\",\"lastTimestamp\":\"2023-02-17T23:59:31Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-18T00:00:15Z\",\"lastTimestamp\":\"2023-02-18T00:00:15Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"}},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup\",\"name\":\"test-confidential-containergroup\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\",\"tags\":{\"key\":\"value\"}}", + "Content": "{\"properties\":{\"sku\":\"Confidential\",\"confidentialComputeProperties\":{\"ccePolicy\":\"cGFja2FnZSBwb2xpY3kKCmFwaV9zdm4gOj0gIjAuMTAuMCIKCm1vdW50X2RldmljZSA6PSB7ImFsbG93ZWQiOiB0cnVlfQptb3VudF9vdmVybGF5IDo9IHsiYWxsb3dlZCI6IHRydWV9CmNyZWF0ZV9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbCwgImFsbG93X3N0ZGlvX2FjY2VzcyI6IHRydWV9CnVubW91bnRfZGV2aWNlIDo9IHsiYWxsb3dlZCI6IHRydWV9IAp1bm1vdW50X292ZXJsYXkgOj0geyJhbGxvd2VkIjogdHJ1ZX0KZXhlY19pbl9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbH0KZXhlY19leHRlcm5hbCA6PSB7ImFsbG93ZWQiOiB0cnVlLCAiZW52X2xpc3QiOiBudWxsLCAiYWxsb3dfc3RkaW9fYWNjZXNzIjogdHJ1ZX0Kc2h1dGRvd25fY29udGFpbmVyIDo9IHsiYWxsb3dlZCI6IHRydWV9CnNpZ25hbF9jb250YWluZXJfcHJvY2VzcyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV9tb3VudCA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CmdldF9wcm9wZXJ0aWVzIDo9IHsiYWxsb3dlZCI6IHRydWV9CmR1bXBfc3RhY2tzIDo9IHsiYWxsb3dlZCI6IHRydWV9CnJ1bnRpbWVfbG9nZ2luZyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpsb2FkX2ZyYWdtZW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CnNjcmF0Y2hfbW91bnQgOj0geyJhbGxvd2VkIjogdHJ1ZX0Kc2NyYXRjaF91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9Cg==\"},\"isCreatedFromStandbyPool\":false,\"provisioningState\":\"Succeeded\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{}},\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2024-10-31T04:58:03.987Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:57:48Z\",\"lastTimestamp\":\"2024-10-31T04:57:48Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:57:49Z\",\"lastTimestamp\":\"2024-10-31T04:57:49Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:58:03Z\",\"lastTimestamp\":\"2024-10-31T04:58:03Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"}},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup\",\"name\":\"test-confidential-containergroup\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\",\"tags\":{\"key\":\"value\"}}", "isContentBase64": false } } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/test/Get-AzContainerGroupRegularPriority.Recording.json b/src/ContainerInstance/ContainerInstance.Autorest/test/Get-AzContainerGroupRegularPriority.Recording.json index 49df1e760e68..666d75785b8e 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/test/Get-AzContainerGroupRegularPriority.Recording.json +++ b/src/ContainerInstance/ContainerInstance.Autorest/test/Get-AzContainerGroupRegularPriority.Recording.json @@ -1,17 +1,17 @@ { - "Get-AzContainerGroupRegularPriority+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgq5m6g?api-version=2022-10-01-preview+1": { + "Get-AzContainerGroupRegularPriority+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cgfl4g3?api-version=2024-05-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgq5m6g?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cgfl4g3?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "53" ], - "x-ms-client-request-id": [ "8303d992-9cd9-4486-9afe-80a5788b8ff9" ], + "x-ms-client-request-id": [ "d12e337d-8b32-4163-b317-0b68ac6a122c" ], "CommandName": [ "Get-AzContainerGroup" ], "FullCommandName": [ "Get-AzContainerGroup_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -22,28 +22,30 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-request-id": [ "eastus:2ae696a5-98fa-4396-9844-73331bb6eb4e" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11963" ], - "x-ms-correlation-request-id": [ "bbbd4b88-0053-46a4-95c0-5fc22c1666b0" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T000342Z:bbbd4b88-0053-46a4-95c0-5fc22c1666b0" ], + "x-ms-request-id": [ "eastus:99f4f93f-11f8-4f04-a82e-34ed8768ef2e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "98e1e445-6c30-425f-8082-df9b4ddb552c" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T050039Z:98e1e445-6c30-425f-8082-df9b4ddb552c" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:03:41 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: E35AF733307443FCB47F6A165AF487F7 Ref B: MAA201060514031 Ref C: 2024-10-31T05:00:39Z" ], + "Date": [ "Thu, 31 Oct 2024 05:00:39 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1346" ], + "Content-Length": [ "1591" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2023-02-17T23:55:24.634Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:55:05Z\",\"lastTimestamp\":\"2023-02-17T23:55:05Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:55:13Z\",\"lastTimestamp\":\"2023-02-17T23:55:13Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:55:24Z\",\"lastTimestamp\":\"2023-02-17T23:55:24Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"},\"priority\":\"Regular\"},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgq5m6g\",\"name\":\"test-cgq5m6g\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"}", + "Content": "{\"properties\":{\"sku\":\"Standard\",\"isCreatedFromStandbyPool\":false,\"provisioningState\":\"Succeeded\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{}},\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2024-10-31T04:54:30.507Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:54:19Z\",\"lastTimestamp\":\"2024-10-31T04:54:19Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:54:21Z\",\"lastTimestamp\":\"2024-10-31T04:54:21Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:54:30Z\",\"lastTimestamp\":\"2024-10-31T04:54:30Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"},\"priority\":\"Regular\"},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cgfl4g3\",\"name\":\"test-cgfl4g3\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"}", "isContentBase64": false } }, - "Get-AzContainerGroupRegularPriority+[NoContext]+GetViaIdentity+$PATCH+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgq5m6g?api-version=2022-10-01-preview+1": { + "Get-AzContainerGroupRegularPriority+[NoContext]+GetViaIdentity+$PATCH+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cgfl4g3?api-version=2024-05-01-preview+1": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgq5m6g?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cgfl4g3?api-version=2024-05-01-preview", "Content": "{\n \"tags\": {\n \"key\": \"value\"\n }\n}", "isContentBase64": false, "Headers": { @@ -58,37 +60,39 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-request-id": [ "eastus:363eada4-3bd4-4167-91c7-7f96082b45ba" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1185" ], - "x-ms-correlation-request-id": [ "4acdeaf4-1f2d-4779-8c49-d85de8125501" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T000343Z:4acdeaf4-1f2d-4779-8c49-d85de8125501" ], + "x-ms-request-id": [ "eastus:eeceabd7-93bc-4466-b41e-27bdea721c55" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], + "x-ms-correlation-request-id": [ "bc1f13bf-2008-415b-b164-81f746110932" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T050043Z:bc1f13bf-2008-415b-b164-81f746110932" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:03:42 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 9E0D8E5FE68D48AD801D643A3A603B4C Ref B: MAA201060514031 Ref C: 2024-10-31T05:00:39Z" ], + "Date": [ "Thu, 31 Oct 2024 05:00:43 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1369" ], + "Content-Length": [ "1614" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2023-02-17T23:55:24.634Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:55:05Z\",\"lastTimestamp\":\"2023-02-17T23:55:05Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:55:13Z\",\"lastTimestamp\":\"2023-02-17T23:55:13Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:55:24Z\",\"lastTimestamp\":\"2023-02-17T23:55:24Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"},\"priority\":\"Regular\"},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgq5m6g\",\"name\":\"test-cgq5m6g\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\",\"tags\":{\"key\":\"value\"}}", + "Content": "{\"properties\":{\"sku\":\"Standard\",\"isCreatedFromStandbyPool\":false,\"provisioningState\":\"Succeeded\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{}},\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2024-10-31T04:54:30.507Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:54:19Z\",\"lastTimestamp\":\"2024-10-31T04:54:19Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:54:21Z\",\"lastTimestamp\":\"2024-10-31T04:54:21Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:54:30Z\",\"lastTimestamp\":\"2024-10-31T04:54:30Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"},\"priority\":\"Regular\"},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cgfl4g3\",\"name\":\"test-cgfl4g3\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\",\"tags\":{\"key\":\"value\"}}", "isContentBase64": false } }, - "Get-AzContainerGroupRegularPriority+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgq5m6g?api-version=2022-10-01-preview+2": { + "Get-AzContainerGroupRegularPriority+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cgfl4g3?api-version=2024-05-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgq5m6g?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cgfl4g3?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "55" ], - "x-ms-client-request-id": [ "36cc0d6f-8b50-452f-98ad-d9000116de79" ], + "x-ms-client-request-id": [ "bd546381-4e63-4d67-9d59-9e6aaf3cabc7" ], "CommandName": [ "Get-AzContainerGroup" ], "FullCommandName": [ "Get-AzContainerGroup_GetViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -99,21 +103,23 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-request-id": [ "eastus:d43a4423-a26c-4fa7-b33c-8831882fa313" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11962" ], - "x-ms-correlation-request-id": [ "cd2a1a9d-8c3f-4488-8ab1-21593e3dd418" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T000343Z:cd2a1a9d-8c3f-4488-8ab1-21593e3dd418" ], + "x-ms-request-id": [ "eastus:da912a17-a9a2-4bb5-a875-940826c8578c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "688af6d4-29d5-43b8-81ac-829276e5f025" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T050044Z:688af6d4-29d5-43b8-81ac-829276e5f025" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:03:42 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 553AACFDD7D346CEACFF8105611529F8 Ref B: MAA201060514031 Ref C: 2024-10-31T05:00:43Z" ], + "Date": [ "Thu, 31 Oct 2024 05:00:43 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1369" ], + "Content-Length": [ "1614" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2023-02-17T23:55:24.634Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:55:05Z\",\"lastTimestamp\":\"2023-02-17T23:55:05Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:55:13Z\",\"lastTimestamp\":\"2023-02-17T23:55:13Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:55:24Z\",\"lastTimestamp\":\"2023-02-17T23:55:24Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"},\"priority\":\"Regular\"},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgq5m6g\",\"name\":\"test-cgq5m6g\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\",\"tags\":{\"key\":\"value\"}}", + "Content": "{\"properties\":{\"sku\":\"Standard\",\"isCreatedFromStandbyPool\":false,\"provisioningState\":\"Succeeded\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{}},\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2024-10-31T04:54:30.507Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:54:19Z\",\"lastTimestamp\":\"2024-10-31T04:54:19Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:54:21Z\",\"lastTimestamp\":\"2024-10-31T04:54:21Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:54:30Z\",\"lastTimestamp\":\"2024-10-31T04:54:30Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"},\"priority\":\"Regular\"},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cgfl4g3\",\"name\":\"test-cgfl4g3\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\",\"tags\":{\"key\":\"value\"}}", "isContentBase64": false } } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/test/Get-AzContainerGroupSpotPriority.Recording.json b/src/ContainerInstance/ContainerInstance.Autorest/test/Get-AzContainerGroupSpotPriority.Recording.json index 20b60627a447..f38b2493e38d 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/test/Get-AzContainerGroupSpotPriority.Recording.json +++ b/src/ContainerInstance/ContainerInstance.Autorest/test/Get-AzContainerGroupSpotPriority.Recording.json @@ -1,17 +1,17 @@ { - "Get-AzContainerGroupSpotPriority+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgytxbr?api-version=2022-10-01-preview+1": { + "Get-AzContainerGroupSpotPriority+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cguyxhp?api-version=2024-05-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgytxbr?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cguyxhp?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "56" ], - "x-ms-client-request-id": [ "457898fe-6132-49b2-893a-e2676fc725d8" ], + "x-ms-client-request-id": [ "38fbcbb3-a68a-4942-90eb-5b0ee656ee94" ], "CommandName": [ "Get-AzContainerGroup" ], "FullCommandName": [ "Get-AzContainerGroup_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -22,28 +22,30 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-request-id": [ "eastus:f9e4913b-73c6-49cc-bab1-22332d159134" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11961" ], - "x-ms-correlation-request-id": [ "8c7d8df6-fe1b-4d4b-955d-516bac1cd933" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T000354Z:8c7d8df6-fe1b-4d4b-955d-516bac1cd933" ], + "x-ms-request-id": [ "eastus:e7c857ff-5222-4c2d-8d39-72abf7f5d492" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "c1f2a9e5-c0fa-483b-af33-470a871d5c53" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T050052Z:c1f2a9e5-c0fa-483b-af33-470a871d5c53" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:03:54 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 313D26C7972F4238BD84A71FAED69790 Ref B: MAA201060514031 Ref C: 2024-10-31T05:00:52Z" ], + "Date": [ "Thu, 31 Oct 2024 05:00:52 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1343" ], + "Content-Length": [ "1587" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2023-02-17T23:55:56.769Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:55:41Z\",\"lastTimestamp\":\"2023-02-17T23:55:41Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:55:42Z\",\"lastTimestamp\":\"2023-02-17T23:55:42Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:55:56Z\",\"lastTimestamp\":\"2023-02-17T23:55:56Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"},\"priority\":\"Spot\"},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgytxbr\",\"name\":\"test-cgytxbr\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"}", + "Content": "{\"properties\":{\"sku\":\"Standard\",\"isCreatedFromStandbyPool\":false,\"provisioningState\":\"Succeeded\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{}},\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2024-10-31T04:55:09.34Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:54:55Z\",\"lastTimestamp\":\"2024-10-31T04:54:55Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:54:57Z\",\"lastTimestamp\":\"2024-10-31T04:54:57Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:55:09Z\",\"lastTimestamp\":\"2024-10-31T04:55:09Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"},\"priority\":\"Spot\"},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cguyxhp\",\"name\":\"test-cguyxhp\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"}", "isContentBase64": false } }, - "Get-AzContainerGroupSpotPriority+[NoContext]+GetViaIdentity+$PATCH+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgytxbr?api-version=2022-10-01-preview+1": { + "Get-AzContainerGroupSpotPriority+[NoContext]+GetViaIdentity+$PATCH+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cguyxhp?api-version=2024-05-01-preview+1": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgytxbr?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cguyxhp?api-version=2024-05-01-preview", "Content": "{\n \"tags\": {\n \"key\": \"value\"\n }\n}", "isContentBase64": false, "Headers": { @@ -58,37 +60,39 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-request-id": [ "eastus:2ece229a-25a6-4de8-9bc5-eea599da39ac" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1184" ], - "x-ms-correlation-request-id": [ "e9fb64fc-fcb4-4710-a7c1-fb65dc75b756" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T000354Z:e9fb64fc-fcb4-4710-a7c1-fb65dc75b756" ], + "x-ms-request-id": [ "eastus:c1a47485-1187-4b79-af8d-b8a878ca1278" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], + "x-ms-correlation-request-id": [ "7f8c1560-5420-458b-9da3-e6ffc6cba19f" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T050056Z:7f8c1560-5420-458b-9da3-e6ffc6cba19f" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:03:54 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 7D5FE7849A314A2C99A01A695378FDCC Ref B: MAA201060514031 Ref C: 2024-10-31T05:00:52Z" ], + "Date": [ "Thu, 31 Oct 2024 05:00:56 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1366" ], + "Content-Length": [ "1610" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2023-02-17T23:55:56.769Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:55:41Z\",\"lastTimestamp\":\"2023-02-17T23:55:41Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:55:42Z\",\"lastTimestamp\":\"2023-02-17T23:55:42Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:55:56Z\",\"lastTimestamp\":\"2023-02-17T23:55:56Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"},\"priority\":\"Spot\"},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgytxbr\",\"name\":\"test-cgytxbr\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\",\"tags\":{\"key\":\"value\"}}", + "Content": "{\"properties\":{\"sku\":\"Standard\",\"isCreatedFromStandbyPool\":false,\"provisioningState\":\"Succeeded\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{}},\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2024-10-31T04:55:09.34Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:54:55Z\",\"lastTimestamp\":\"2024-10-31T04:54:55Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:54:57Z\",\"lastTimestamp\":\"2024-10-31T04:54:57Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:55:09Z\",\"lastTimestamp\":\"2024-10-31T04:55:09Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"},\"priority\":\"Spot\"},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cguyxhp\",\"name\":\"test-cguyxhp\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\",\"tags\":{\"key\":\"value\"}}", "isContentBase64": false } }, - "Get-AzContainerGroupSpotPriority+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgytxbr?api-version=2022-10-01-preview+2": { + "Get-AzContainerGroupSpotPriority+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cguyxhp?api-version=2024-05-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgytxbr?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cguyxhp?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "58" ], - "x-ms-client-request-id": [ "b169212c-4f15-4e0d-93c3-279df28abc44" ], + "x-ms-client-request-id": [ "dc5e322d-9fb6-40fb-95b0-66dcf374880a" ], "CommandName": [ "Get-AzContainerGroup" ], "FullCommandName": [ "Get-AzContainerGroup_GetViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -99,21 +103,23 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-request-id": [ "eastus:b1815cae-d8be-418b-94fa-c94f95df451f" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11960" ], - "x-ms-correlation-request-id": [ "895c34f8-ddfe-4ffb-a057-9770a4d06fc5" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T000355Z:895c34f8-ddfe-4ffb-a057-9770a4d06fc5" ], + "x-ms-request-id": [ "eastus:769eb601-f616-43a8-bf87-91fee49eb7e8" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "cea867e3-74c9-44b0-b140-3044c0a54698" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T050057Z:cea867e3-74c9-44b0-b140-3044c0a54698" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:03:55 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 04B68192092D4A9FB45CDBAB0E140E40 Ref B: MAA201060514031 Ref C: 2024-10-31T05:00:56Z" ], + "Date": [ "Thu, 31 Oct 2024 05:00:56 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1366" ], + "Content-Length": [ "1610" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2023-02-17T23:55:56.769Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:55:41Z\",\"lastTimestamp\":\"2023-02-17T23:55:41Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:55:42Z\",\"lastTimestamp\":\"2023-02-17T23:55:42Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:55:56Z\",\"lastTimestamp\":\"2023-02-17T23:55:56Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"},\"priority\":\"Spot\"},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgytxbr\",\"name\":\"test-cgytxbr\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\",\"tags\":{\"key\":\"value\"}}", + "Content": "{\"properties\":{\"sku\":\"Standard\",\"isCreatedFromStandbyPool\":false,\"provisioningState\":\"Succeeded\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{}},\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2024-10-31T04:55:09.34Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:54:55Z\",\"lastTimestamp\":\"2024-10-31T04:54:55Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:54:57Z\",\"lastTimestamp\":\"2024-10-31T04:54:57Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:55:09Z\",\"lastTimestamp\":\"2024-10-31T04:55:09Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"},\"priority\":\"Spot\"},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cguyxhp\",\"name\":\"test-cguyxhp\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\",\"tags\":{\"key\":\"value\"}}", "isContentBase64": false } } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/test/Get-AzContainerInstanceCachedImage.Recording.json b/src/ContainerInstance/ContainerInstance.Autorest/test/Get-AzContainerInstanceCachedImage.Recording.json index 6fdece519071..dbf6e4b4f0a6 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/test/Get-AzContainerInstanceCachedImage.Recording.json +++ b/src/ContainerInstance/ContainerInstance.Autorest/test/Get-AzContainerInstanceCachedImage.Recording.json @@ -1,17 +1,17 @@ { - "Get-AzContainerInstanceCachedImage+[NoContext]+List+$GET+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/providers/Microsoft.ContainerInstance/locations/eastus/cachedImages?api-version=2022-10-01-preview+1": { + "Get-AzContainerInstanceCachedImage+[NoContext]+List+$GET+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/providers/Microsoft.ContainerInstance/locations/eastus/cachedImages?api-version=2024-05-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/providers/Microsoft.ContainerInstance/locations/eastus/cachedImages?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/providers/Microsoft.ContainerInstance/locations/eastus/cachedImages?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "59" ], - "x-ms-client-request-id": [ "8c47ed68-73bd-4e81-bb1a-8281984d8935" ], + "x-ms-client-request-id": [ "62fdcb26-3adf-4415-81fd-c438499876b3" ], "CommandName": [ "Get-AzContainerInstanceCachedImage" ], "FullCommandName": [ "Get-AzContainerInstanceCachedImage_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -22,14 +22,16 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-request-id": [ "eastus:02da9e66-4b5b-4ea0-b5cf-1dae1bc34b73" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11959" ], - "x-ms-correlation-request-id": [ "cd2626b3-34d4-4edc-ab3a-ae5eea631278" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T000408Z:cd2626b3-34d4-4edc-ab3a-ae5eea631278" ], + "x-ms-request-id": [ "eastus:9d448e52-6121-4742-815a-7b93b3e7d21f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "565b5c20-1369-43d7-a388-c554937e238e" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T050109Z:565b5c20-1369-43d7-a388-c554937e238e" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:04:08 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 377B07A628024525B3E6995428E8B674 Ref B: MAA201060514031 Ref C: 2024-10-31T05:01:08Z" ], + "Date": [ "Thu, 31 Oct 2024 05:01:08 GMT" ] }, "ContentHeaders": { "Content-Length": [ "5880" ], diff --git a/src/ContainerInstance/ContainerInstance.Autorest/test/Get-AzContainerInstanceCapability.Recording.json b/src/ContainerInstance/ContainerInstance.Autorest/test/Get-AzContainerInstanceCapability.Recording.json index 5120381dd19b..9c31847dcc6f 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/test/Get-AzContainerInstanceCapability.Recording.json +++ b/src/ContainerInstance/ContainerInstance.Autorest/test/Get-AzContainerInstanceCapability.Recording.json @@ -1,17 +1,17 @@ { - "Get-AzContainerInstanceCapability+[NoContext]+List+$GET+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/providers/Microsoft.ContainerInstance/locations/eastus/capabilities?api-version=2022-10-01-preview+1": { + "Get-AzContainerInstanceCapability+[NoContext]+List+$GET+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/providers/Microsoft.ContainerInstance/locations/eastus/capabilities?api-version=2024-05-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/providers/Microsoft.ContainerInstance/locations/eastus/capabilities?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/providers/Microsoft.ContainerInstance/locations/eastus/capabilities?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "60" ], - "x-ms-client-request-id": [ "e6d179a0-6020-4c09-a283-fd023ddb5de2" ], + "x-ms-client-request-id": [ "6c6fe830-6936-46e1-b099-b88a06f98738" ], "CommandName": [ "Get-AzContainerInstanceCapability" ], "FullCommandName": [ "Get-AzContainerInstanceCapability_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -22,21 +22,23 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-request-id": [ "eastus:668eb484-1865-4e79-b72c-95c57bca9437" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11958" ], - "x-ms-correlation-request-id": [ "0f6413e4-1b15-4da6-91dd-1f7f20a95c0e" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T000417Z:0f6413e4-1b15-4da6-91dd-1f7f20a95c0e" ], + "x-ms-request-id": [ "eastus:e4a28708-f034-4770-ba07-d959021e01c5" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "24580b4e-cf42-4d79-8262-fc57b39caa8d" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T050122Z:24580b4e-cf42-4d79-8262-fc57b39caa8d" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:04:17 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: B1D4D9890B1A4965985F1067038819E6 Ref B: MAA201060514031 Ref C: 2024-10-31T05:01:21Z" ], + "Date": [ "Thu, 31 Oct 2024 05:01:21 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "916" ], + "Content-Length": [ "563" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"resourceType\":\"containerGroups\",\"osType\":\"NotSpecified\",\"location\":\"eastus\",\"ipAddressType\":\"Public\",\"gpu\":\"None\",\"capabilities\":{\"maxMemoryInGB\":16.0,\"maxCpu\":4.0,\"maxGpuCount\":0}},{\"resourceType\":\"containerGroups\",\"osType\":\"NotSpecified\",\"location\":\"eastus\",\"ipAddressType\":\"Private\",\"gpu\":\"None\",\"capabilities\":{\"maxMemoryInGB\":16.0,\"maxCpu\":4.0,\"maxGpuCount\":0}},{\"resourceType\":\"containerGroups\",\"osType\":\"Linux\",\"location\":\"eastus\",\"ipAddressType\":\"Public\",\"gpu\":\"K80\",\"capabilities\":{\"maxMemoryInGB\":224.0,\"maxCpu\":24.0,\"maxGpuCount\":4}},{\"resourceType\":\"containerGroups\",\"osType\":\"Linux\",\"location\":\"eastus\",\"ipAddressType\":\"Public\",\"gpu\":\"P100\",\"capabilities\":{\"maxMemoryInGB\":448.0,\"maxCpu\":24.0,\"maxGpuCount\":4}},{\"resourceType\":\"containerGroups\",\"osType\":\"Linux\",\"location\":\"eastus\",\"ipAddressType\":\"Public\",\"gpu\":\"V100\",\"capabilities\":{\"maxMemoryInGB\":448.0,\"maxCpu\":24.0,\"maxGpuCount\":4}}]}", + "Content": "{\"value\":[{\"resourceType\":\"containerGroups\",\"osType\":\"NotSpecified\",\"location\":\"eastus\",\"ipAddressType\":\"Public\",\"gpu\":\"None\",\"capabilities\":{\"maxMemoryInGB\":256.0,\"maxCpu\":32.0,\"maxGpuCount\":0}},{\"resourceType\":\"containerGroups\",\"osType\":\"NotSpecified\",\"location\":\"eastus\",\"ipAddressType\":\"Private\",\"gpu\":\"None\",\"capabilities\":{\"maxMemoryInGB\":256.0,\"maxCpu\":32.0,\"maxGpuCount\":0}},{\"resourceType\":\"containerGroups\",\"osType\":\"Linux\",\"location\":\"eastus\",\"ipAddressType\":\"Public\",\"gpu\":\"V100\",\"capabilities\":{\"maxMemoryInGB\":448.0,\"maxCpu\":24.0,\"maxGpuCount\":4}}]}", "isContentBase64": false } } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/test/Get-AzContainerInstanceContainerGroupProfile.Recording.json b/src/ContainerInstance/ContainerInstance.Autorest/test/Get-AzContainerInstanceContainerGroupProfile.Recording.json new file mode 100644 index 000000000000..67fbc039302c --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/test/Get-AzContainerInstanceContainerGroupProfile.Recording.json @@ -0,0 +1,126 @@ +{ + "Get-AzContainerInstanceContainerGroupProfile+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroupProfiles/bez-test-cgp?api-version=2024-05-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroupProfiles/bez-test-cgp?api-version=2024-05-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "61" ], + "x-ms-client-request-id": [ "9cd742a3-d11c-4fe3-9ae7-19c7b28549ed" ], + "CommandName": [ "Get-AzContainerInstanceContainerGroupProfile" ], + "FullCommandName": [ "Get-AzContainerInstanceContainerGroupProfile_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "eastus:d9cb28bd-7537-41cc-859b-1c64f84ae506" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "0fadc26f-0284-4fad-808d-39a88e7a27fe" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T050146Z:0fadc26f-0284-4fad-808d-39a88e7a27fe" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 6F74C879A8334DA48BDEE27EF2383DC8 Ref B: MAA201060514031 Ref C: 2024-10-31T05:01:46Z" ], + "Date": [ "Thu, 31 Oct 2024 05:01:46 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "476" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"containers\":[{\"name\":\"bez-test-ci\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"osType\":\"Linux\",\"revision\":1},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroupProfiles/bez-test-cgp\",\"name\":\"bez-test-cgp\",\"type\":\"Microsoft.ContainerInstance/containerGroupProfiles\",\"location\":\"eastus\"}", + "isContentBase64": false + } + }, + "Get-AzContainerInstanceContainerGroupProfile+[NoContext]+List1+$GET+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroupProfiles?api-version=2024-05-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroupProfiles?api-version=2024-05-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "62" ], + "x-ms-client-request-id": [ "9b981082-5e3a-44ce-aee8-912e04d0bb35" ], + "CommandName": [ "Get-AzContainerInstanceContainerGroupProfile" ], + "FullCommandName": [ "Get-AzContainerInstanceContainerGroupProfile_List1" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "eastus:7342987b-75a3-4d6a-b825-ae4aee6262d7" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "5c8e71be-df6a-4e97-b2e1-0791befd147e" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T050147Z:5c8e71be-df6a-4e97-b2e1-0791befd147e" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: B4749E9BBD87438B8F47272DA4CECCBE Ref B: MAA201060514031 Ref C: 2024-10-31T05:01:46Z" ], + "Date": [ "Thu, 31 Oct 2024 05:01:47 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "3586" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "[{\"properties\":{\"containers\":[{\"name\":\"bez-test-ci\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"osType\":\"Linux\",\"revision\":1},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroupProfiles/bez-test-cgp\",\"name\":\"bez-test-cgp\",\"type\":\"Microsoft.ContainerInstance/containerGroupProfiles\",\"location\":\"eastus\"},{\"properties\":{\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"osType\":\"Linux\",\"revision\":1},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroupProfiles/bez-test-cgp-remove1\",\"name\":\"bez-test-cgp-remove1\",\"type\":\"Microsoft.ContainerInstance/containerGroupProfiles\",\"location\":\"eastus\"},{\"properties\":{\"containers\":[{\"name\":\"2\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"osType\":\"Linux\",\"revision\":1},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroupProfiles/bez-test-cgp-remove2\",\"name\":\"bez-test-cgp-remove2\",\"type\":\"Microsoft.ContainerInstance/containerGroupProfiles\",\"location\":\"eastus\"},{\"properties\":{\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"osType\":\"Linux\",\"priority\":\"Spot\",\"revision\":1},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroupProfiles/test-cgponypi-remove1\",\"name\":\"test-cgponypi-remove1\",\"type\":\"Microsoft.ContainerInstance/containerGroupProfiles\",\"location\":\"eastus\"},{\"properties\":{\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"osType\":\"Linux\",\"priority\":\"Spot\",\"revision\":1},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroupProfiles/test-cgponypi-remove2\",\"name\":\"test-cgponypi-remove2\",\"type\":\"Microsoft.ContainerInstance/containerGroupProfiles\",\"location\":\"eastus\"},{\"properties\":{\"sku\":\"Confidential\",\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"osType\":\"Linux\",\"revision\":1},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroupProfiles/test-confidential-containergroupprofileiycrg-remove1\",\"name\":\"test-confidential-containergroupprofileiycrg-remove1\",\"type\":\"Microsoft.ContainerInstance/containerGroupProfiles\",\"location\":\"eastus\"},{\"properties\":{\"sku\":\"Confidential\",\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"osType\":\"Linux\",\"revision\":1},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroupProfiles/test-confidential-containergroupprofileiycrg-remove2\",\"name\":\"test-confidential-containergroupprofileiycrg-remove2\",\"type\":\"Microsoft.ContainerInstance/containerGroupProfiles\",\"location\":\"eastus\"}]", + "isContentBase64": false + } + }, + "Get-AzContainerInstanceContainerGroupProfile+[NoContext]+GetViaIdentity+$PATCH+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroupProfiles/bez-test-cgp?api-version=2024-05-01-preview+1": { + "Request": { + "Method": "PATCH", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroupProfiles/bez-test-cgp?api-version=2024-05-01-preview", + "Content": "{\n \"tags\": {\n \"key\": \"value\"\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "38" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "eastus:bfb77c47-aac7-4bc9-a78e-798cf7823be2" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], + "x-ms-correlation-request-id": [ "720a8b21-089a-4c66-9041-b276927059cf" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T050150Z:720a8b21-089a-4c66-9041-b276927059cf" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: E638010F03A347DB9B69956C9402494B Ref B: MAA201060514031 Ref C: 2024-10-31T05:01:48Z" ], + "Date": [ "Thu, 31 Oct 2024 05:01:50 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "200" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"containers\":[{\"name\":\"bez-test-ci\",\"properties\":{\"image\":\"mcr.microsoft.com\/azuredocs\/aci-helloworld:latest\",\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1}}}}],\"osType\":\"Linux\",\"revision\":1},\"id\":\"\/subscriptions\/da28f5e5-aa45-46fe-90c8-053ca49ab4b5\/resourceGroups\/test-rg9iwau\/providers\/Microsoft.ContainerInstance\/containerGroupProfiles\/bez-test-cgp\",\"name\":\"bez-test-cgp\",\"type\":\"Microsoft.ContainerInstance\/containerGroupProfiles\",\"location\":\"eastus\"}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/test/Get-AzContainerInstanceContainerGroupProfile.Tests.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/test/Get-AzContainerInstanceContainerGroupProfile.Tests.ps1 new file mode 100644 index 000000000000..0580f43984e8 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/test/Get-AzContainerInstanceContainerGroupProfile.Tests.ps1 @@ -0,0 +1,28 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Get-AzContainerInstanceContainerGroupProfile')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzContainerInstanceContainerGroupProfile.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Get-AzContainerInstanceContainerGroupProfile' { + + It 'List' -skip { + { + Get-AzContainerInstanceContainerGroupProfile + } | Should -Not -Throw + } + + It 'Get' { + Get-AzContainerInstanceContainerGroupProfile -Name $env.containerGroupProfileName -ResourceGroupName $env.resourceGroupName + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/test/Get-AzContainerInstanceContainerGroupProfileRevision.Tests.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/test/Get-AzContainerInstanceContainerGroupProfileRevision.Tests.ps1 new file mode 100644 index 000000000000..b799751ba761 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/test/Get-AzContainerInstanceContainerGroupProfileRevision.Tests.ps1 @@ -0,0 +1,21 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Get-AzContainerInstanceContainerGroupProfileRevision')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzContainerInstanceContainerGroupProfileRevision.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Get-AzContainerInstanceContainerGroupProfileRevision' { + It 'List' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/ContainerInstance/ContainerInstance.Autorest/test/Get-AzContainerInstanceLog.Recording.json b/src/ContainerInstance/ContainerInstance.Autorest/test/Get-AzContainerInstanceLog.Recording.json index f7d20b7dd7ec..6fc72f6e1a22 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/test/Get-AzContainerInstanceLog.Recording.json +++ b/src/ContainerInstance/ContainerInstance.Autorest/test/Get-AzContainerInstanceLog.Recording.json @@ -1,17 +1,17 @@ { - "Get-AzContainerInstanceLog+[NoContext]+List+$GET+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg/containers/bez-test-ci/logs?api-version=2022-10-01-preview+1": { + "Get-AzContainerInstanceLog+[NoContext]+List+$GET+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg/containers/bez-test-ci/logs?api-version=2024-05-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg/containers/bez-test-ci/logs?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg/containers/bez-test-ci/logs?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "61" ], - "x-ms-client-request-id": [ "713b8109-8b46-49c8-887e-742a9dd8310b" ], + "x-ms-unique-id": [ "64" ], + "x-ms-client-request-id": [ "179e8206-30ca-4a8e-b709-9452302d0ba5" ], "CommandName": [ "Get-AzContainerInstanceLog" ], "FullCommandName": [ "Get-AzContainerInstanceLog_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -22,37 +22,39 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-request-id": [ "eastus:ff60a634-e931-41ed-afcc-7b52eee6b345" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11957" ], - "x-ms-correlation-request-id": [ "5cab64d0-80fe-45f0-bcc1-70633ba4038e" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T000438Z:5cab64d0-80fe-45f0-bcc1-70633ba4038e" ], + "x-ms-request-id": [ "eastus:10995279-583d-4958-8d20-5119f2df4632" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "e8ca7694-2baf-479c-9039-56c8df2017b1" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T050216Z:e8ca7694-2baf-479c-9039-56c8df2017b1" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:04:38 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: CC2208248B1C468EB6AB87AC4F64C22A Ref B: MAA201060514031 Ref C: 2024-10-31T05:02:16Z" ], + "Date": [ "Thu, 31 Oct 2024 05:02:16 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1178" ], + "Content-Length": [ "36" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"content\":\"/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration\\n/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/\\n/docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh\\n10-listen-on-ipv6-by-default.sh: info: Getting the checksum of /etc/nginx/conf.d/default.conf\\n10-listen-on-ipv6-by-default.sh: info: Enabled listen on IPv6 in /etc/nginx/conf.d/default.conf\\n/docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh\\n/docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh\\n/docker-entrypoint.sh: Configuration complete; ready for start up\\n2023/02/17 23:53:49 [notice] 14#14: using the \\\"epoll\\\" event method\\n2023/02/17 23:53:49 [notice] 14#14: nginx/1.23.3\\n2023/02/17 23:53:49 [notice] 14#14: built by gcc 10.2.1 20210110 (Debian 10.2.1-6) \\n2023/02/17 23:53:49 [notice] 14#14: OS: Linux 5.10.102.2-microsoft-standard\\n2023/02/17 23:53:49 [notice] 14#14: getrlimit(RLIMIT_NOFILE): 1024:1048576\\n2023/02/17 23:53:49 [notice] 14#14: start worker processes\\n2023/02/17 23:53:49 [notice] 14#14: start worker process 46\\n\"}", + "Content": "{\"content\":\"listening on port 80\\n\"}", "isContentBase64": false } }, - "Get-AzContainerInstanceLog+[NoContext]+Get the tail 2 lines of log of a container instance+$GET+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg/containers/bez-test-ci/logs?api-version=2022-10-01-preview\u0026tail=2+1": { + "Get-AzContainerInstanceLog+[NoContext]+Get the tail 2 lines of log of a container instance+$GET+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg/containers/bez-test-ci/logs?api-version=2024-05-01-preview\u0026tail=2+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg/containers/bez-test-ci/logs?api-version=2022-10-01-preview\u0026tail=2", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg/containers/bez-test-ci/logs?api-version=2024-05-01-preview\u0026tail=2", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "62" ], - "x-ms-client-request-id": [ "1dc78a2e-d243-4424-a885-0ab716d3350b" ], + "x-ms-unique-id": [ "65" ], + "x-ms-client-request-id": [ "35cc772d-1295-416b-b9f9-37fc4fe02b12" ], "CommandName": [ "Get-AzContainerInstanceLog" ], "FullCommandName": [ "Get-AzContainerInstanceLog_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -63,21 +65,23 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-request-id": [ "eastus:21efe767-9837-4fc7-bbb7-7485f351f775" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11956" ], - "x-ms-correlation-request-id": [ "99b595c2-f045-459c-aea6-5e4dfee554c6" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T000439Z:99b595c2-f045-459c-aea6-5e4dfee554c6" ], + "x-ms-request-id": [ "eastus:3b6ce9c0-979f-470a-96fd-88f84c0062a4" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "27c86cb2-857f-4d80-b3d1-6b52c132e0e1" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T050217Z:27c86cb2-857f-4d80-b3d1-6b52c132e0e1" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:04:38 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 3DE9294E3D1645B0B68184463FC82324 Ref B: MAA201060514031 Ref C: 2024-10-31T05:02:17Z" ], + "Date": [ "Thu, 31 Oct 2024 05:02:17 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "135" ], + "Content-Length": [ "36" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"content\":\"2023/02/17 23:53:49 [notice] 14#14: start worker processes\\n2023/02/17 23:53:49 [notice] 14#14: start worker process 46\\n\"}", + "Content": "{\"content\":\"listening on port 80\\n\"}", "isContentBase64": false } } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/test/Get-AzContainerInstanceUsage.Recording.json b/src/ContainerInstance/ContainerInstance.Autorest/test/Get-AzContainerInstanceUsage.Recording.json index 81425d1efca8..0e89c6edb570 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/test/Get-AzContainerInstanceUsage.Recording.json +++ b/src/ContainerInstance/ContainerInstance.Autorest/test/Get-AzContainerInstanceUsage.Recording.json @@ -1,17 +1,17 @@ { - "Get-AzContainerInstanceUsage+[NoContext]+List+$GET+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/providers/Microsoft.ContainerInstance/locations/eastus/usages?api-version=2022-10-01-preview+1": { + "Get-AzContainerInstanceUsage+[NoContext]+List+$GET+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/providers/Microsoft.ContainerInstance/locations/eastus/usages?api-version=2024-05-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/providers/Microsoft.ContainerInstance/locations/eastus/usages?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/providers/Microsoft.ContainerInstance/locations/eastus/usages?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "63" ], - "x-ms-client-request-id": [ "4b3e1261-8ee0-4cf3-ba49-c25a4908b438" ], + "x-ms-unique-id": [ "66" ], + "x-ms-client-request-id": [ "c2776b99-bff4-4de4-a418-1adf959ee784" ], "CommandName": [ "Get-AzContainerInstanceUsage" ], "FullCommandName": [ "Get-AzContainerInstanceUsage_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -22,21 +22,23 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-request-id": [ "eastus:79d64aea-f572-48fb-b2d9-c50cc8258d76" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11955" ], - "x-ms-correlation-request-id": [ "daee3459-8cf0-4064-b2b9-2bd5b467d63c" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T000450Z:daee3459-8cf0-4064-b2b9-2bd5b467d63c" ], + "x-ms-request-id": [ "eastus:29e37b3a-e7d0-4e77-9f8d-f2a0784ec383" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "4be4a652-8ce2-4dbe-bb96-041799f5b618" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T050230Z:4be4a652-8ce2-4dbe-bb96-041799f5b618" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:04:50 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 9E11B373E13D428CAB4670AF5A76F086 Ref B: MAA201060514031 Ref C: 2024-10-31T05:02:30Z" ], + "Date": [ "Thu, 31 Oct 2024 05:02:30 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2628" ], + "Content-Length": [ "2639" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/providers/Microsoft.ContainerInstance/locations/eastus/usages/ContainerGroups\",\"unit\":\"Count\",\"currentValue\":18,\"limit\":100,\"name\":{\"value\":\"ContainerGroups\",\"localizedValue\":\"Container Groups\"}},{\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/providers/Microsoft.ContainerInstance/locations/eastus/usages/standardCores\",\"unit\":\"Count\",\"currentValue\":12,\"limit\":100,\"name\":{\"value\":\"StandardCores\",\"localizedValue\":\"Standard Cores\"}},{\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/providers/Microsoft.ContainerInstance/locations/eastus/usages/standardSpotCores\",\"unit\":\"Count\",\"currentValue\":6,\"limit\":100,\"name\":{\"value\":\"StandardSpotCores\",\"localizedValue\":\"Standard Spot Cores\"}},{\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/providers/Microsoft.ContainerInstance/locations/eastus/usages/standardK80Cores\",\"unit\":\"Count\",\"currentValue\":0,\"limit\":48,\"name\":{\"value\":\"StandardK80Cores\",\"localizedValue\":\"Standard K80 Cores\"}},{\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/providers/Microsoft.ContainerInstance/locations/eastus/usages/standardP100Cores\",\"unit\":\"Count\",\"currentValue\":0,\"limit\":0,\"name\":{\"value\":\"StandardP100Cores\",\"localizedValue\":\"Standard P100 Cores\"}},{\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/providers/Microsoft.ContainerInstance/locations/eastus/usages/standardV100Cores\",\"unit\":\"Count\",\"currentValue\":0,\"limit\":0,\"name\":{\"value\":\"StandardV100Cores\",\"localizedValue\":\"Standard V100 Cores\"}},{\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/providers/Microsoft.ContainerInstance/locations/eastus/usages/DedicatedContainerGroups\",\"unit\":\"Count\",\"currentValue\":0,\"limit\":0,\"name\":{\"value\":\"DedicatedContainerGroups\",\"localizedValue\":\"Dedicated Container Groups\"}},{\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/providers/Microsoft.ContainerInstance/locations/eastus/usages/dedicatedCores\",\"unit\":\"Count\",\"currentValue\":0,\"limit\":3000,\"name\":{\"value\":\"DedicatedCores\",\"localizedValue\":\"Dedicated Cores\"}},{\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/providers/Microsoft.ContainerInstance/locations/eastus/usages/ConfidentialContainerGroups\",\"unit\":\"Count\",\"currentValue\":5,\"limit\":100,\"name\":{\"value\":\"ConfidentialContainerGroups\",\"localizedValue\":\"Dedicated Container Groups\"}},{\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/providers/Microsoft.ContainerInstance/locations/eastus/usages/confidentialCores\",\"unit\":\"Count\",\"currentValue\":5,\"limit\":100,\"name\":{\"value\":\"ConfidentialCores\",\"localizedValue\":\"Dedicated Cores\"}}]}", + "Content": "{\"value\":[{\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/providers/Microsoft.ContainerInstance/locations/eastus/usages/ContainerGroups\",\"unit\":\"Count\",\"currentValue\":90,\"limit\":1000,\"name\":{\"value\":\"ContainerGroups\",\"localizedValue\":\"Container Groups\"}},{\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/providers/Microsoft.ContainerInstance/locations/eastus/usages/standardCores\",\"unit\":\"Count\",\"currentValue\":95,\"limit\":4000,\"name\":{\"value\":\"StandardCores\",\"localizedValue\":\"Standard Cores\"}},{\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/providers/Microsoft.ContainerInstance/locations/eastus/usages/standardSpotCores\",\"unit\":\"Count\",\"currentValue\":3,\"limit\":100,\"name\":{\"value\":\"StandardSpotCores\",\"localizedValue\":\"Standard Spot Cores\"}},{\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/providers/Microsoft.ContainerInstance/locations/eastus/usages/standardK80Cores\",\"unit\":\"Count\",\"currentValue\":0,\"limit\":100,\"name\":{\"value\":\"StandardK80Cores\",\"localizedValue\":\"Standard K80 Cores\"}},{\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/providers/Microsoft.ContainerInstance/locations/eastus/usages/standardP100Cores\",\"unit\":\"Count\",\"currentValue\":0,\"limit\":100,\"name\":{\"value\":\"StandardP100Cores\",\"localizedValue\":\"Standard P100 Cores\"}},{\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/providers/Microsoft.ContainerInstance/locations/eastus/usages/standardV100Cores\",\"unit\":\"Count\",\"currentValue\":3,\"limit\":100,\"name\":{\"value\":\"StandardV100Cores\",\"localizedValue\":\"Standard V100 Cores\"}},{\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/providers/Microsoft.ContainerInstance/locations/eastus/usages/DedicatedContainerGroups\",\"unit\":\"Count\",\"currentValue\":0,\"limit\":0,\"name\":{\"value\":\"DedicatedContainerGroups\",\"localizedValue\":\"Dedicated Container Groups\"}},{\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/providers/Microsoft.ContainerInstance/locations/eastus/usages/dedicatedCores\",\"unit\":\"Count\",\"currentValue\":0,\"limit\":4000,\"name\":{\"value\":\"DedicatedCores\",\"localizedValue\":\"Dedicated Cores\"}},{\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/providers/Microsoft.ContainerInstance/locations/eastus/usages/ConfidentialContainerGroups\",\"unit\":\"Count\",\"currentValue\":11,\"limit\":1000,\"name\":{\"value\":\"ConfidentialContainerGroups\",\"localizedValue\":\"Dedicated Container Groups\"}},{\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/providers/Microsoft.ContainerInstance/locations/eastus/usages/confidentialCores\",\"unit\":\"Count\",\"currentValue\":16,\"limit\":4000,\"name\":{\"value\":\"ConfidentialCores\",\"localizedValue\":\"Dedicated Cores\"}}]}", "isContentBase64": false } } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/test/New-AzContainerGroup.Recording.json b/src/ContainerInstance/ContainerInstance.Autorest/test/New-AzContainerGroup.Recording.json index 56cde3f7e6c4..059b43762ef6 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/test/New-AzContainerGroup.Recording.json +++ b/src/ContainerInstance/ContainerInstance.Autorest/test/New-AzContainerGroup.Recording.json @@ -1,15 +1,15 @@ { - "New-AzContainerGroup+[NoContext]+Creates a container group using latest nginx image and requests a public IP address with opening ports+$PUT+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgmtwa6?api-version=2022-10-01-preview+1": { + "New-AzContainerGroup+[NoContext]+Creates a container group using latest nginx image and requests a public IP address with opening ports+$PUT+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cgi50ep?api-version=2024-05-01-preview+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgmtwa6?api-version=2022-10-01-preview", - "Content": "{\n \"location\": \"eastus\",\n \"properties\": {\n \"ipAddress\": {\n \"ports\": [\n {\n \"protocol\": \"TCP\",\n \"port\": 8000\n },\n {\n \"protocol\": \"TCP\",\n \"port\": 8001\n }\n ],\n \"type\": \"Public\"\n },\n \"containers\": [\n {\n \"properties\": {\n \"resources\": {\n \"requests\": {\n \"memoryInGB\": 1.5,\n \"cpu\": 1\n }\n },\n \"image\": \"nginx\",\n \"ports\": [\n {\n \"protocol\": \"TCP\",\n \"port\": 8000\n },\n {\n \"protocol\": \"TCP\",\n \"port\": 8001\n }\n ]\n },\n \"name\": \"bez-test-ci\"\n }\n ],\n \"restartPolicy\": \"Never\",\n \"osType\": \"Linux\"\n }\n}", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cgi50ep?api-version=2024-05-01-preview", + "Content": "{\n \"location\": \"eastus\",\n \"properties\": {\n \"ipAddress\": {\n \"ports\": [\n {\n \"protocol\": \"TCP\",\n \"port\": 8000\n },\n {\n \"protocol\": \"TCP\",\n \"port\": 8001\n }\n ],\n \"type\": \"Public\"\n },\n \"containers\": [\n {\n \"properties\": {\n \"resources\": {\n \"requests\": {\n \"memoryInGB\": 1.5,\n \"cpu\": 1\n }\n },\n \"image\": \"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\n \"ports\": [\n {\n \"protocol\": \"TCP\",\n \"port\": 8000\n },\n {\n \"protocol\": \"TCP\",\n \"port\": 8001\n }\n ]\n },\n \"name\": \"bez-test-ci\"\n }\n ],\n \"restartPolicy\": \"Never\",\n \"osType\": \"Linux\"\n }\n}", "isContentBase64": false, "Headers": { }, "ContentHeaders": { "Content-Type": [ "application/json" ], - "Content-Length": [ "801" ] + "Content-Length": [ "845" ] } }, "Response": { @@ -17,40 +17,43 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/providers/Microsoft.ContainerInstance/locations/eastus/operations/e2071ffe-8a98-4b80-8ebf-babd91f467a9?api-version=2018-06-01" ], - "x-ms-ratelimit-remaining-subscription-resource-requests-pt5m": [ "97" ], - "x-ms-ratelimit-remaining-subscription-resource-requests-pt1h": [ "294" ], - "x-ms-request-id": [ "eastus:e2071ffe-8a98-4b80-8ebf-babd91f467a9" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1183" ], - "x-ms-correlation-request-id": [ "067f3d40-f2f0-402c-b9e8-48a0b856922b" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T000516Z:067f3d40-f2f0-402c-b9e8-48a0b856922b" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/providers/Microsoft.ContainerInstance/locations/eastus/operations/8c334f7c-793b-4317-8151-a110587ebcf0?api-version=2018-06-01\u0026t=638659477812188473\u0026c=MIIHhzCCBm-gAwIBAgITHgVsohlR2527oAb3YwAABWyiGTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTIyMTIzNzU1WhcNMjUwMzIxMTIzNzU1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMhrLEJmsmtpzYzyjkwosX72drFxelF_0kAmuW7jzqQUwb3Vbkmt3AMdawBA7iPG-j-_iaEVRdn5iaEuJE6hSge15_CbeDkRt-qHgospNLcjh6GjynbLyFCQH_IkKY4Mc0yIlKxilQSCf2V6ah2w7S1CyC5zwZroBYavu5w0ZL02jRKMTNVzB03DnGhQGJ7gJbtKJ9AbjVcFwFTpT0Z0Yo-sLpwoVvADWng0JznFSekROEXCF_U3gHMssCctipkbrivaRFNKL3OjHjvuPxD8gsBo2BR_swq3Eyj-68_1B2-zYVD0d811pP8URR-43YYAMXO2Us1Uw6dn-b351XnW8JECAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMi5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNi5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDIuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAyLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA2LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMi5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNi5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDIuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3J0MB0GA1UdDgQWBBTLk-Eh1Xfk5Jotz1gl5hr4G-tKhTAOBgNVHQ8BAf8EBAMCBaAwggEmBgNVHR8EggEdMIIBGTCCARWgggERoIIBDYY_aHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JsMIGdBgNVHSAEgZUwgZIwDAYKKwYBBAGCN3sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAG22HO9nSE7AYf9OZGmPXw_SpE0CIxcQiahWc3LG3zRYLxmiKsYYlN9_r_6fPeEmIs7P7xm7g_xAAHLymI5BQDzGsW5GzAzYVOwolJBj3EcX1bxxIqeEgLvHNmYOr4D5MZFv14TGMHziu0TzPAbbVe9-DmMbrqs1mszrnuUiHTsmKE2oNmv4gjZMYSJAdsUzkjxQEa8t1t7FUEvbDkWkYSdqK0-OoTDVLsRVwRNk9XJ04coDgWql1-iv6bYNXyhC0L_-bdTOs_Gnzu-tFEA2we7Zkew_fhDuJwGTDnhaqvhush0SPJuFmoYBvmEzEJsc_Bjay2DrOHiLTopNoBJVrt8\u0026s=exxX5pWPCx7_-n-MKVLYa0e2GxPDKwZJsZH3K6Mf8xwSWAe4BRF7J6h6GvEkegLs1MqIpdzQe3Dwh-4EFjNWmUNRG0hemISDPOz8X4Ocu1rQ0MBAYBeKDWoWzx-Iwdo15q9bl3LyOT-Hx4jJewjXf2GBfFb5UhfFosINxpzBhk2jHkuyFa_iY8WSM9gUdDXM3yaUiDQ2wO8I9cCzgMaIRaKGgZDCoqnWnooQ_hwNiy0eGbt7u854QqyvFbzuq2L-UH_x_LfqJ0cpxZWIOEgn8m_Pjm9hU7OK8zEwDeSH5nkTfGPNaiVo4_54_bzAjNhMkzkyhj7L2mxzxw-zsYGC6g\u0026h=vq6exbvfFPOBSQ-fkyjRNMqybiWlzoXKkTu0KiCAKj0" ], + "x-ms-ratelimit-remaining-subscription-resource-requests-pt5m": [ "1499" ], + "x-ms-ratelimit-remaining-subscription-resource-requests-pt1h": [ "14999" ], + "x-ms-request-id": [ "eastus:8c334f7c-793b-4317-8151-a110587ebcf0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], + "x-ms-correlation-request-id": [ "b9845cfc-1dc6-4de1-8af7-793ee023e849" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T050301Z:b9845cfc-1dc6-4de1-8af7-793ee023e849" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:05:15 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 343D1139525D478FA55C5221F35E1B6E Ref B: MAA201060514031 Ref C: 2024-10-31T05:02:57Z" ], + "Date": [ "Thu, 31 Oct 2024 05:03:00 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "743" ], + "Content-Length": [ "925" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Pending\",\"containers\":[{\"name\":\"bez-test-ci\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"protocol\":\"TCP\",\"port\":8000},{\"protocol\":\"TCP\",\"port\":8001}],\"environmentVariables\":[],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"restartPolicy\":\"Never\",\"ipAddress\":{\"ports\":[{\"protocol\":\"TCP\",\"port\":8000},{\"protocol\":\"TCP\",\"port\":8001}],\"type\":\"Public\"},\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Pending\"}},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgmtwa6\",\"name\":\"test-cgmtwa6\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"}", + "Content": "{\"properties\":{\"sku\":\"Standard\",\"isCreatedFromStandbyPool\":false,\"provisioningState\":\"Pending\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"bez-test-ci\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[{\"protocol\":\"TCP\",\"port\":8000},{\"protocol\":\"TCP\",\"port\":8001}],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{}},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"restartPolicy\":\"Never\",\"ipAddress\":{\"ports\":[{\"protocol\":\"TCP\",\"port\":8000},{\"protocol\":\"TCP\",\"port\":8001}],\"type\":\"Public\"},\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Pending\"}},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cgi50ep\",\"name\":\"test-cgi50ep\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"}", "isContentBase64": false } }, - "New-AzContainerGroup+[NoContext]+Creates a container group using latest nginx image and requests a public IP address with opening ports+$GET+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/providers/Microsoft.ContainerInstance/locations/eastus/operations/e2071ffe-8a98-4b80-8ebf-babd91f467a9?api-version=2018-06-01+2": { + "New-AzContainerGroup+[NoContext]+Creates a container group using latest nginx image and requests a public IP address with opening ports+$GET+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/providers/Microsoft.ContainerInstance/locations/eastus/operations/8c334f7c-793b-4317-8151-a110587ebcf0?api-version=2018-06-01\u0026t=638659477812188473\u0026c=MIIHhzCCBm-gAwIBAgITHgVsohlR2527oAb3YwAABWyiGTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTIyMTIzNzU1WhcNMjUwMzIxMTIzNzU1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMhrLEJmsmtpzYzyjkwosX72drFxelF_0kAmuW7jzqQUwb3Vbkmt3AMdawBA7iPG-j-_iaEVRdn5iaEuJE6hSge15_CbeDkRt-qHgospNLcjh6GjynbLyFCQH_IkKY4Mc0yIlKxilQSCf2V6ah2w7S1CyC5zwZroBYavu5w0ZL02jRKMTNVzB03DnGhQGJ7gJbtKJ9AbjVcFwFTpT0Z0Yo-sLpwoVvADWng0JznFSekROEXCF_U3gHMssCctipkbrivaRFNKL3OjHjvuPxD8gsBo2BR_swq3Eyj-68_1B2-zYVD0d811pP8URR-43YYAMXO2Us1Uw6dn-b351XnW8JECAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMi5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNi5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDIuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAyLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA2LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMi5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNi5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDIuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3J0MB0GA1UdDgQWBBTLk-Eh1Xfk5Jotz1gl5hr4G-tKhTAOBgNVHQ8BAf8EBAMCBaAwggEmBgNVHR8EggEdMIIBGTCCARWgggERoIIBDYY_aHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JsMIGdBgNVHSAEgZUwgZIwDAYKKwYBBAGCN3sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAG22HO9nSE7AYf9OZGmPXw_SpE0CIxcQiahWc3LG3zRYLxmiKsYYlN9_r_6fPeEmIs7P7xm7g_xAAHLymI5BQDzGsW5GzAzYVOwolJBj3EcX1bxxIqeEgLvHNmYOr4D5MZFv14TGMHziu0TzPAbbVe9-DmMbrqs1mszrnuUiHTsmKE2oNmv4gjZMYSJAdsUzkjxQEa8t1t7FUEvbDkWkYSdqK0-OoTDVLsRVwRNk9XJ04coDgWql1-iv6bYNXyhC0L_-bdTOs_Gnzu-tFEA2we7Zkew_fhDuJwGTDnhaqvhush0SPJuFmoYBvmEzEJsc_Bjay2DrOHiLTopNoBJVrt8\u0026s=exxX5pWPCx7_-n-MKVLYa0e2GxPDKwZJsZH3K6Mf8xwSWAe4BRF7J6h6GvEkegLs1MqIpdzQe3Dwh-4EFjNWmUNRG0hemISDPOz8X4Ocu1rQ0MBAYBeKDWoWzx-Iwdo15q9bl3LyOT-Hx4jJewjXf2GBfFb5UhfFosINxpzBhk2jHkuyFa_iY8WSM9gUdDXM3yaUiDQ2wO8I9cCzgMaIRaKGgZDCoqnWnooQ_hwNiy0eGbt7u854QqyvFbzuq2L-UH_x_LfqJ0cpxZWIOEgn8m_Pjm9hU7OK8zEwDeSH5nkTfGPNaiVo4_54_bzAjNhMkzkyhj7L2mxzxw-zsYGC6g\u0026h=vq6exbvfFPOBSQ-fkyjRNMqybiWlzoXKkTu0KiCAKj0+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/providers/Microsoft.ContainerInstance/locations/eastus/operations/e2071ffe-8a98-4b80-8ebf-babd91f467a9?api-version=2018-06-01", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/providers/Microsoft.ContainerInstance/locations/eastus/operations/8c334f7c-793b-4317-8151-a110587ebcf0?api-version=2018-06-01\u0026t=638659477812188473\u0026c=MIIHhzCCBm-gAwIBAgITHgVsohlR2527oAb3YwAABWyiGTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTIyMTIzNzU1WhcNMjUwMzIxMTIzNzU1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMhrLEJmsmtpzYzyjkwosX72drFxelF_0kAmuW7jzqQUwb3Vbkmt3AMdawBA7iPG-j-_iaEVRdn5iaEuJE6hSge15_CbeDkRt-qHgospNLcjh6GjynbLyFCQH_IkKY4Mc0yIlKxilQSCf2V6ah2w7S1CyC5zwZroBYavu5w0ZL02jRKMTNVzB03DnGhQGJ7gJbtKJ9AbjVcFwFTpT0Z0Yo-sLpwoVvADWng0JznFSekROEXCF_U3gHMssCctipkbrivaRFNKL3OjHjvuPxD8gsBo2BR_swq3Eyj-68_1B2-zYVD0d811pP8URR-43YYAMXO2Us1Uw6dn-b351XnW8JECAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMi5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNi5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDIuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAyLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA2LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMi5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNi5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDIuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3J0MB0GA1UdDgQWBBTLk-Eh1Xfk5Jotz1gl5hr4G-tKhTAOBgNVHQ8BAf8EBAMCBaAwggEmBgNVHR8EggEdMIIBGTCCARWgggERoIIBDYY_aHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JsMIGdBgNVHSAEgZUwgZIwDAYKKwYBBAGCN3sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAG22HO9nSE7AYf9OZGmPXw_SpE0CIxcQiahWc3LG3zRYLxmiKsYYlN9_r_6fPeEmIs7P7xm7g_xAAHLymI5BQDzGsW5GzAzYVOwolJBj3EcX1bxxIqeEgLvHNmYOr4D5MZFv14TGMHziu0TzPAbbVe9-DmMbrqs1mszrnuUiHTsmKE2oNmv4gjZMYSJAdsUzkjxQEa8t1t7FUEvbDkWkYSdqK0-OoTDVLsRVwRNk9XJ04coDgWql1-iv6bYNXyhC0L_-bdTOs_Gnzu-tFEA2we7Zkew_fhDuJwGTDnhaqvhush0SPJuFmoYBvmEzEJsc_Bjay2DrOHiLTopNoBJVrt8\u0026s=exxX5pWPCx7_-n-MKVLYa0e2GxPDKwZJsZH3K6Mf8xwSWAe4BRF7J6h6GvEkegLs1MqIpdzQe3Dwh-4EFjNWmUNRG0hemISDPOz8X4Ocu1rQ0MBAYBeKDWoWzx-Iwdo15q9bl3LyOT-Hx4jJewjXf2GBfFb5UhfFosINxpzBhk2jHkuyFa_iY8WSM9gUdDXM3yaUiDQ2wO8I9cCzgMaIRaKGgZDCoqnWnooQ_hwNiy0eGbt7u854QqyvFbzuq2L-UH_x_LfqJ0cpxZWIOEgn8m_Pjm9hU7OK8zEwDeSH5nkTfGPNaiVo4_54_bzAjNhMkzkyhj7L2mxzxw-zsYGC6g\u0026h=vq6exbvfFPOBSQ-fkyjRNMqybiWlzoXKkTu0KiCAKj0", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "65" ], - "x-ms-client-request-id": [ "abbbbb1d-0dd5-4300-a314-debed254aed0" ], + "x-ms-unique-id": [ "68" ], + "x-ms-client-request-id": [ "c136bf23-649c-48af-851d-053833cffbc3" ], "CommandName": [ "Az.ContainerInstance.internal\\New-AzContainerGroup" ], "FullCommandName": [ "New-AzContainerGroup_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ] }, "ContentHeaders": { } @@ -60,38 +63,40 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-request-id": [ "eastus:52170058-1561-4b54-921d-2b170fe75b51" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11954" ], - "x-ms-correlation-request-id": [ "09457f03-7c34-4cb2-b117-f8f7e149cb54" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T000546Z:09457f03-7c34-4cb2-b117-f8f7e149cb54" ], + "x-ms-request-id": [ "eastus:7a6c6647-d622-468e-863b-77810871655b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "286dddba-c4e9-4db5-924b-ad667138b4c9" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T050331Z:286dddba-c4e9-4db5-924b-ad667138b4c9" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:05:45 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 70B801B74AB349CE9551B786217BCB6A Ref B: MAA201060514031 Ref C: 2024-10-31T05:03:31Z" ], + "Date": [ "Thu, 31 Oct 2024 05:03:31 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "874" ], + "Content-Length": [ "948" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgmtwa6\",\"status\":\"Succeeded\",\"startTime\":\"2023-02-18T00:05:16.1728064Z\",\"properties\":{\"events\":[{\"count\":1,\"firstTimestamp\":\"2023-02-18T00:05:21Z\",\"lastTimestamp\":\"2023-02-18T00:05:21Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-18T00:05:26Z\",\"lastTimestamp\":\"2023-02-18T00:05:26Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-18T00:05:35Z\",\"lastTimestamp\":\"2023-02-18T00:05:35Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]}}", + "Content": "{\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cgi50ep\",\"status\":\"Succeeded\",\"startTime\":\"2024-10-31T05:03:00.8444892Z\",\"properties\":{\"events\":[{\"count\":1,\"firstTimestamp\":\"2024-10-31T05:03:04Z\",\"lastTimestamp\":\"2024-10-31T05:03:04Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T05:03:09Z\",\"lastTimestamp\":\"2024-10-31T05:03:09Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T05:03:18Z\",\"lastTimestamp\":\"2024-10-31T05:03:18Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]}}", "isContentBase64": false } }, - "New-AzContainerGroup+[NoContext]+Creates a container group using latest nginx image and requests a public IP address with opening ports+$GET+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgmtwa6?api-version=2022-10-01-preview+3": { + "New-AzContainerGroup+[NoContext]+Creates a container group using latest nginx image and requests a public IP address with opening ports+$GET+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cgi50ep?api-version=2024-05-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgmtwa6?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cgi50ep?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "66" ], - "x-ms-client-request-id": [ "abbbbb1d-0dd5-4300-a314-debed254aed0" ], + "x-ms-unique-id": [ "69" ], + "x-ms-client-request-id": [ "c136bf23-649c-48af-851d-053833cffbc3" ], "CommandName": [ "Az.ContainerInstance.internal\\New-AzContainerGroup" ], "FullCommandName": [ "New-AzContainerGroup_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ] }, "ContentHeaders": { } @@ -101,21 +106,23 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-request-id": [ "eastus:8225aa24-5321-4619-ae19-60313be9f3b9" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11953" ], - "x-ms-correlation-request-id": [ "70357d18-d569-4551-a285-f73bf7735082" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T000547Z:70357d18-d569-4551-a285-f73bf7735082" ], + "x-ms-request-id": [ "eastus:f9235eb6-fb91-4ce7-a10d-0212f32b9ab8" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "5c63a752-7da5-4042-bdeb-d6a29b8a59ef" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T050332Z:5c63a752-7da5-4042-bdeb-d6a29b8a59ef" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:05:46 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 0908E4CF1884432082175EB74A84E8D1 Ref B: MAA201060514031 Ref C: 2024-10-31T05:03:31Z" ], + "Date": [ "Thu, 31 Oct 2024 05:03:31 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1531" ], + "Content-Length": [ "1788" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"bez-test-ci\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"protocol\":\"TCP\",\"port\":8000},{\"protocol\":\"TCP\",\"port\":8001}],\"environmentVariables\":[],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2023-02-18T00:05:35.4Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2023-02-18T00:05:21Z\",\"lastTimestamp\":\"2023-02-18T00:05:21Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-18T00:05:26Z\",\"lastTimestamp\":\"2023-02-18T00:05:26Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-18T00:05:35Z\",\"lastTimestamp\":\"2023-02-18T00:05:35Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"restartPolicy\":\"Never\",\"ipAddress\":{\"ports\":[{\"protocol\":\"TCP\",\"port\":8000},{\"protocol\":\"TCP\",\"port\":8001}],\"ip\":\"20.242.188.155\",\"type\":\"Public\"},\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"}},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgmtwa6\",\"name\":\"test-cgmtwa6\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"}", + "Content": "{\"properties\":{\"sku\":\"Standard\",\"isCreatedFromStandbyPool\":false,\"provisioningState\":\"Succeeded\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"bez-test-ci\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[{\"protocol\":\"TCP\",\"port\":8000},{\"protocol\":\"TCP\",\"port\":8001}],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{}},\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2024-10-31T05:03:18.464Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2024-10-31T05:03:04Z\",\"lastTimestamp\":\"2024-10-31T05:03:04Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T05:03:09Z\",\"lastTimestamp\":\"2024-10-31T05:03:09Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T05:03:18Z\",\"lastTimestamp\":\"2024-10-31T05:03:18Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"restartPolicy\":\"Never\",\"ipAddress\":{\"ports\":[{\"protocol\":\"TCP\",\"port\":8000},{\"protocol\":\"TCP\",\"port\":8001}],\"ip\":\"4.236.207.246\",\"type\":\"Public\"},\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"}},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cgi50ep\",\"name\":\"test-cgi50ep\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"}", "isContentBase64": false } } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/test/New-AzContainerGroupConfidentialSku.Recording.json b/src/ContainerInstance/ContainerInstance.Autorest/test/New-AzContainerGroupConfidentialSku.Recording.json index 92e9f6f8ef06..24bc3e6608fe 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/test/New-AzContainerGroupConfidentialSku.Recording.json +++ b/src/ContainerInstance/ContainerInstance.Autorest/test/New-AzContainerGroupConfidentialSku.Recording.json @@ -1,15 +1,15 @@ { - "New-AzContainerGroupConfidentialSku+[NoContext]+Creates a container group with Confidential Sku using latest nginx image+$PUT+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup?api-version=2022-10-01-preview+1": { + "New-AzContainerGroupConfidentialSku+[NoContext]+Creates a container group with Confidential Sku using latest nginx image+$PUT+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup?api-version=2024-05-01-preview+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup?api-version=2022-10-01-preview", - "Content": "{\n \"location\": \"eastus\",\n \"properties\": {\n \"containers\": [\n {\n \"properties\": {\n \"resources\": {\n \"requests\": {\n \"memoryInGB\": 1.5,\n \"cpu\": 1\n }\n },\n \"image\": \"nginx\",\n \"ports\": [\n {\n \"port\": 80\n }\n ]\n },\n \"name\": \"bez-test-ci\"\n }\n ],\n \"osType\": \"Linux\",\n \"sku\": \"confidential\"\n }\n}", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup?api-version=2024-05-01-preview", + "Content": "{\n \"location\": \"eastus\",\n \"properties\": {\n \"containers\": [\n {\n \"properties\": {\n \"resources\": {\n \"requests\": {\n \"memoryInGB\": 1.5,\n \"cpu\": 1\n }\n },\n \"image\": \"mcr.microsoft.com/azuredocs/aci-helloworld:latest\"\n },\n \"name\": \"bez-test-ci\"\n }\n ],\n \"osType\": \"Linux\",\n \"sku\": \"confidential\"\n }\n}", "isContentBase64": false, "Headers": { }, "ContentHeaders": { "Content-Type": [ "application/json" ], - "Content-Length": [ "454" ] + "Content-Length": [ "411" ] } }, "Response": { @@ -17,122 +17,43 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/providers/Microsoft.ContainerInstance/locations/eastus/operations/35a4eabe-e8d0-44e3-af7e-3b04cb68050a?api-version=2018-06-01" ], - "x-ms-ratelimit-remaining-subscription-resource-requests-pt5m": [ "96" ], - "x-ms-ratelimit-remaining-subscription-resource-requests-pt1h": [ "293" ], - "x-ms-request-id": [ "eastus:35a4eabe-e8d0-44e3-af7e-3b04cb68050a" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1182" ], - "x-ms-correlation-request-id": [ "a3c96812-a74e-487a-ab3c-4c09baab67a1" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T000559Z:a3c96812-a74e-487a-ab3c-4c09baab67a1" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/providers/Microsoft.ContainerInstance/locations/eastus/operations/7637d2bd-3215-4e37-adaa-1454ba453932?api-version=2018-06-01\u0026t=638659478248009483\u0026c=MIIHhzCCBm-gAwIBAgITHgVsohlR2527oAb3YwAABWyiGTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTIyMTIzNzU1WhcNMjUwMzIxMTIzNzU1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMhrLEJmsmtpzYzyjkwosX72drFxelF_0kAmuW7jzqQUwb3Vbkmt3AMdawBA7iPG-j-_iaEVRdn5iaEuJE6hSge15_CbeDkRt-qHgospNLcjh6GjynbLyFCQH_IkKY4Mc0yIlKxilQSCf2V6ah2w7S1CyC5zwZroBYavu5w0ZL02jRKMTNVzB03DnGhQGJ7gJbtKJ9AbjVcFwFTpT0Z0Yo-sLpwoVvADWng0JznFSekROEXCF_U3gHMssCctipkbrivaRFNKL3OjHjvuPxD8gsBo2BR_swq3Eyj-68_1B2-zYVD0d811pP8URR-43YYAMXO2Us1Uw6dn-b351XnW8JECAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMi5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNi5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDIuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAyLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA2LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMi5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNi5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDIuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3J0MB0GA1UdDgQWBBTLk-Eh1Xfk5Jotz1gl5hr4G-tKhTAOBgNVHQ8BAf8EBAMCBaAwggEmBgNVHR8EggEdMIIBGTCCARWgggERoIIBDYY_aHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JsMIGdBgNVHSAEgZUwgZIwDAYKKwYBBAGCN3sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAG22HO9nSE7AYf9OZGmPXw_SpE0CIxcQiahWc3LG3zRYLxmiKsYYlN9_r_6fPeEmIs7P7xm7g_xAAHLymI5BQDzGsW5GzAzYVOwolJBj3EcX1bxxIqeEgLvHNmYOr4D5MZFv14TGMHziu0TzPAbbVe9-DmMbrqs1mszrnuUiHTsmKE2oNmv4gjZMYSJAdsUzkjxQEa8t1t7FUEvbDkWkYSdqK0-OoTDVLsRVwRNk9XJ04coDgWql1-iv6bYNXyhC0L_-bdTOs_Gnzu-tFEA2we7Zkew_fhDuJwGTDnhaqvhush0SPJuFmoYBvmEzEJsc_Bjay2DrOHiLTopNoBJVrt8\u0026s=XCJ-9IzJuR9V4RbWf2NcnkjZn-ZMir8R7w6yiDnScStgMdQid-1Zi1KmvExHGLrYIvvl8nYzyZ5nhu8Aw5Aazb2YHW3wSczde2K73IAnLBSxxIOEgA1GhRkPcSUtcsKP65SXsSrOIj2LYy7PgEl7_W33X538I6AwPknxFKV3wpKemE7M484HB-h1_Ir94PIiqLGRHoxxhLWFHEWvHQyd_SP81tNNZtmwuaCIgu_r1xwuAcZhMXgbCwmJJwEl7MLvzzBQQtsA5Jp9c62NdUPUkWuc5Z_7bwDwtgQRgzoK4JODDBPJQDxFxTqHoUhraMXMGDsMcYIHGmjr1fftTk-clg\u0026h=I1zz-wUfWJpnlB1sksgmr3PxVskB06uNCyCQFqCVwpI" ], + "x-ms-ratelimit-remaining-subscription-resource-requests-pt5m": [ "1498" ], + "x-ms-ratelimit-remaining-subscription-resource-requests-pt1h": [ "14998" ], + "x-ms-request-id": [ "eastus:7637d2bd-3215-4e37-adaa-1454ba453932" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], + "x-ms-correlation-request-id": [ "945e84d4-34bb-487c-afeb-bb4e51421580" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T050344Z:945e84d4-34bb-487c-afeb-bb4e51421580" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:05:59 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 11C0A5534F7B40EB87478D7219C4D3CA Ref B: MAA201060514031 Ref C: 2024-10-31T05:03:40Z" ], + "Date": [ "Thu, 31 Oct 2024 05:03:44 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1712" ], + "Content-Length": [ "1883" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"sku\":\"Confidential\",\"confidentialComputeProperties\":{\"ccePolicy\":\"cGFja2FnZSBwb2xpY3kKCmFwaV9zdm4gOj0gIjAuMTAuMCIKCm1vdW50X2RldmljZSA6PSB7ImFsbG93ZWQiOiB0cnVlfQptb3VudF9vdmVybGF5IDo9IHsiYWxsb3dlZCI6IHRydWV9CmNyZWF0ZV9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbCwgImFsbG93X3N0ZGlvX2FjY2VzcyI6IHRydWV9CnVubW91bnRfZGV2aWNlIDo9IHsiYWxsb3dlZCI6IHRydWV9IAp1bm1vdW50X292ZXJsYXkgOj0geyJhbGxvd2VkIjogdHJ1ZX0KZXhlY19pbl9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbH0KZXhlY19leHRlcm5hbCA6PSB7ImFsbG93ZWQiOiB0cnVlLCAiZW52X2xpc3QiOiBudWxsLCAiYWxsb3dfc3RkaW9fYWNjZXNzIjogdHJ1ZX0Kc2h1dGRvd25fY29udGFpbmVyIDo9IHsiYWxsb3dlZCI6IHRydWV9CnNpZ25hbF9jb250YWluZXJfcHJvY2VzcyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV9tb3VudCA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CmdldF9wcm9wZXJ0aWVzIDo9IHsiYWxsb3dlZCI6IHRydWV9CmR1bXBfc3RhY2tzIDo9IHsiYWxsb3dlZCI6IHRydWV9CnJ1bnRpbWVfbG9nZ2luZyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpsb2FkX2ZyYWdtZW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CnNjcmF0Y2hfbW91bnQgOj0geyJhbGxvd2VkIjogdHJ1ZX0Kc2NyYXRjaF91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9Cg==\"},\"provisioningState\":\"Creating\",\"containers\":[{\"name\":\"bez-test-ci\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Pending\"}},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup\",\"name\":\"test-confidential-containergroup\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\",\"tags\":{\"key\":\"value\"}}", + "Content": "{\"properties\":{\"sku\":\"Confidential\",\"confidentialComputeProperties\":{\"ccePolicy\":\"cGFja2FnZSBwb2xpY3kKCmFwaV9zdm4gOj0gIjAuMTAuMCIKCm1vdW50X2RldmljZSA6PSB7ImFsbG93ZWQiOiB0cnVlfQptb3VudF9vdmVybGF5IDo9IHsiYWxsb3dlZCI6IHRydWV9CmNyZWF0ZV9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbCwgImFsbG93X3N0ZGlvX2FjY2VzcyI6IHRydWV9CnVubW91bnRfZGV2aWNlIDo9IHsiYWxsb3dlZCI6IHRydWV9IAp1bm1vdW50X292ZXJsYXkgOj0geyJhbGxvd2VkIjogdHJ1ZX0KZXhlY19pbl9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbH0KZXhlY19leHRlcm5hbCA6PSB7ImFsbG93ZWQiOiB0cnVlLCAiZW52X2xpc3QiOiBudWxsLCAiYWxsb3dfc3RkaW9fYWNjZXNzIjogdHJ1ZX0Kc2h1dGRvd25fY29udGFpbmVyIDo9IHsiYWxsb3dlZCI6IHRydWV9CnNpZ25hbF9jb250YWluZXJfcHJvY2VzcyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV9tb3VudCA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CmdldF9wcm9wZXJ0aWVzIDo9IHsiYWxsb3dlZCI6IHRydWV9CmR1bXBfc3RhY2tzIDo9IHsiYWxsb3dlZCI6IHRydWV9CnJ1bnRpbWVfbG9nZ2luZyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpsb2FkX2ZyYWdtZW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CnNjcmF0Y2hfbW91bnQgOj0geyJhbGxvd2VkIjogdHJ1ZX0Kc2NyYXRjaF91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9Cg==\"},\"isCreatedFromStandbyPool\":false,\"provisioningState\":\"Creating\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"bez-test-ci\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{}},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Pending\"}},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup\",\"name\":\"test-confidential-containergroup\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\",\"tags\":{\"key\":\"value\"}}", "isContentBase64": false } }, - "New-AzContainerGroupConfidentialSku+[NoContext]+Creates a container group with Confidential Sku using latest nginx image+$GET+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/providers/Microsoft.ContainerInstance/locations/eastus/operations/35a4eabe-e8d0-44e3-af7e-3b04cb68050a?api-version=2018-06-01+2": { + "New-AzContainerGroupConfidentialSku+[NoContext]+Creates a container group with Confidential Sku using latest nginx image+$GET+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/providers/Microsoft.ContainerInstance/locations/eastus/operations/7637d2bd-3215-4e37-adaa-1454ba453932?api-version=2018-06-01\u0026t=638659478248009483\u0026c=MIIHhzCCBm-gAwIBAgITHgVsohlR2527oAb3YwAABWyiGTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTIyMTIzNzU1WhcNMjUwMzIxMTIzNzU1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMhrLEJmsmtpzYzyjkwosX72drFxelF_0kAmuW7jzqQUwb3Vbkmt3AMdawBA7iPG-j-_iaEVRdn5iaEuJE6hSge15_CbeDkRt-qHgospNLcjh6GjynbLyFCQH_IkKY4Mc0yIlKxilQSCf2V6ah2w7S1CyC5zwZroBYavu5w0ZL02jRKMTNVzB03DnGhQGJ7gJbtKJ9AbjVcFwFTpT0Z0Yo-sLpwoVvADWng0JznFSekROEXCF_U3gHMssCctipkbrivaRFNKL3OjHjvuPxD8gsBo2BR_swq3Eyj-68_1B2-zYVD0d811pP8URR-43YYAMXO2Us1Uw6dn-b351XnW8JECAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMi5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNi5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDIuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAyLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA2LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMi5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNi5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDIuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3J0MB0GA1UdDgQWBBTLk-Eh1Xfk5Jotz1gl5hr4G-tKhTAOBgNVHQ8BAf8EBAMCBaAwggEmBgNVHR8EggEdMIIBGTCCARWgggERoIIBDYY_aHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JsMIGdBgNVHSAEgZUwgZIwDAYKKwYBBAGCN3sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAG22HO9nSE7AYf9OZGmPXw_SpE0CIxcQiahWc3LG3zRYLxmiKsYYlN9_r_6fPeEmIs7P7xm7g_xAAHLymI5BQDzGsW5GzAzYVOwolJBj3EcX1bxxIqeEgLvHNmYOr4D5MZFv14TGMHziu0TzPAbbVe9-DmMbrqs1mszrnuUiHTsmKE2oNmv4gjZMYSJAdsUzkjxQEa8t1t7FUEvbDkWkYSdqK0-OoTDVLsRVwRNk9XJ04coDgWql1-iv6bYNXyhC0L_-bdTOs_Gnzu-tFEA2we7Zkew_fhDuJwGTDnhaqvhush0SPJuFmoYBvmEzEJsc_Bjay2DrOHiLTopNoBJVrt8\u0026s=XCJ-9IzJuR9V4RbWf2NcnkjZn-ZMir8R7w6yiDnScStgMdQid-1Zi1KmvExHGLrYIvvl8nYzyZ5nhu8Aw5Aazb2YHW3wSczde2K73IAnLBSxxIOEgA1GhRkPcSUtcsKP65SXsSrOIj2LYy7PgEl7_W33X538I6AwPknxFKV3wpKemE7M484HB-h1_Ir94PIiqLGRHoxxhLWFHEWvHQyd_SP81tNNZtmwuaCIgu_r1xwuAcZhMXgbCwmJJwEl7MLvzzBQQtsA5Jp9c62NdUPUkWuc5Z_7bwDwtgQRgzoK4JODDBPJQDxFxTqHoUhraMXMGDsMcYIHGmjr1fftTk-clg\u0026h=I1zz-wUfWJpnlB1sksgmr3PxVskB06uNCyCQFqCVwpI+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/providers/Microsoft.ContainerInstance/locations/eastus/operations/35a4eabe-e8d0-44e3-af7e-3b04cb68050a?api-version=2018-06-01", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/providers/Microsoft.ContainerInstance/locations/eastus/operations/7637d2bd-3215-4e37-adaa-1454ba453932?api-version=2018-06-01\u0026t=638659478248009483\u0026c=MIIHhzCCBm-gAwIBAgITHgVsohlR2527oAb3YwAABWyiGTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTIyMTIzNzU1WhcNMjUwMzIxMTIzNzU1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMhrLEJmsmtpzYzyjkwosX72drFxelF_0kAmuW7jzqQUwb3Vbkmt3AMdawBA7iPG-j-_iaEVRdn5iaEuJE6hSge15_CbeDkRt-qHgospNLcjh6GjynbLyFCQH_IkKY4Mc0yIlKxilQSCf2V6ah2w7S1CyC5zwZroBYavu5w0ZL02jRKMTNVzB03DnGhQGJ7gJbtKJ9AbjVcFwFTpT0Z0Yo-sLpwoVvADWng0JznFSekROEXCF_U3gHMssCctipkbrivaRFNKL3OjHjvuPxD8gsBo2BR_swq3Eyj-68_1B2-zYVD0d811pP8URR-43YYAMXO2Us1Uw6dn-b351XnW8JECAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMi5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNi5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDIuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAyLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA2LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMi5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNi5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDIuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3J0MB0GA1UdDgQWBBTLk-Eh1Xfk5Jotz1gl5hr4G-tKhTAOBgNVHQ8BAf8EBAMCBaAwggEmBgNVHR8EggEdMIIBGTCCARWgggERoIIBDYY_aHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JsMIGdBgNVHSAEgZUwgZIwDAYKKwYBBAGCN3sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAG22HO9nSE7AYf9OZGmPXw_SpE0CIxcQiahWc3LG3zRYLxmiKsYYlN9_r_6fPeEmIs7P7xm7g_xAAHLymI5BQDzGsW5GzAzYVOwolJBj3EcX1bxxIqeEgLvHNmYOr4D5MZFv14TGMHziu0TzPAbbVe9-DmMbrqs1mszrnuUiHTsmKE2oNmv4gjZMYSJAdsUzkjxQEa8t1t7FUEvbDkWkYSdqK0-OoTDVLsRVwRNk9XJ04coDgWql1-iv6bYNXyhC0L_-bdTOs_Gnzu-tFEA2we7Zkew_fhDuJwGTDnhaqvhush0SPJuFmoYBvmEzEJsc_Bjay2DrOHiLTopNoBJVrt8\u0026s=XCJ-9IzJuR9V4RbWf2NcnkjZn-ZMir8R7w6yiDnScStgMdQid-1Zi1KmvExHGLrYIvvl8nYzyZ5nhu8Aw5Aazb2YHW3wSczde2K73IAnLBSxxIOEgA1GhRkPcSUtcsKP65SXsSrOIj2LYy7PgEl7_W33X538I6AwPknxFKV3wpKemE7M484HB-h1_Ir94PIiqLGRHoxxhLWFHEWvHQyd_SP81tNNZtmwuaCIgu_r1xwuAcZhMXgbCwmJJwEl7MLvzzBQQtsA5Jp9c62NdUPUkWuc5Z_7bwDwtgQRgzoK4JODDBPJQDxFxTqHoUhraMXMGDsMcYIHGmjr1fftTk-clg\u0026h=I1zz-wUfWJpnlB1sksgmr3PxVskB06uNCyCQFqCVwpI", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "68" ], - "x-ms-client-request-id": [ "6a91688e-841c-490f-8c85-88ef1a51e481" ], - "CommandName": [ "Az.ContainerInstance.internal\\New-AzContainerGroup" ], - "FullCommandName": [ "New-AzContainerGroup_CreateExpanded" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-request-id": [ "eastus:4cbeb1b8-3b17-49f9-88a6-a05486c19420" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11952" ], - "x-ms-correlation-request-id": [ "1975ce57-34f1-4f74-a452-2f967ccaf86e" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T000629Z:1975ce57-34f1-4f74-a452-2f967ccaf86e" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:06:29 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "265" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup\",\"status\":\"Creating\",\"startTime\":\"2023-02-18T00:05:59.1609954Z\",\"properties\":{\"events\":[]}}", - "isContentBase64": false - } - }, - "New-AzContainerGroupConfidentialSku+[NoContext]+Creates a container group with Confidential Sku using latest nginx image+$GET+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/providers/Microsoft.ContainerInstance/locations/eastus/operations/35a4eabe-e8d0-44e3-af7e-3b04cb68050a?api-version=2018-06-01+3": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/providers/Microsoft.ContainerInstance/locations/eastus/operations/35a4eabe-e8d0-44e3-af7e-3b04cb68050a?api-version=2018-06-01", - "Content": null, - "isContentBase64": false, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "69" ], - "x-ms-client-request-id": [ "6a91688e-841c-490f-8c85-88ef1a51e481" ], - "CommandName": [ "Az.ContainerInstance.internal\\New-AzContainerGroup" ], - "FullCommandName": [ "New-AzContainerGroup_CreateExpanded" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-request-id": [ "eastus:1912edeb-73ba-4edb-96b7-48f21ed5f96f" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11951" ], - "x-ms-correlation-request-id": [ "4782a2ab-e257-4ec6-9f5f-53ffa147d716" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T000700Z:4782a2ab-e257-4ec6-9f5f-53ffa147d716" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:06:59 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "265" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup\",\"status\":\"Creating\",\"startTime\":\"2023-02-18T00:05:59.1609954Z\",\"properties\":{\"events\":[]}}", - "isContentBase64": false - } - }, - "New-AzContainerGroupConfidentialSku+[NoContext]+Creates a container group with Confidential Sku using latest nginx image+$GET+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/providers/Microsoft.ContainerInstance/locations/eastus/operations/35a4eabe-e8d0-44e3-af7e-3b04cb68050a?api-version=2018-06-01+4": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/providers/Microsoft.ContainerInstance/locations/eastus/operations/35a4eabe-e8d0-44e3-af7e-3b04cb68050a?api-version=2018-06-01", - "Content": null, - "isContentBase64": false, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "70" ], - "x-ms-client-request-id": [ "6a91688e-841c-490f-8c85-88ef1a51e481" ], + "x-ms-unique-id": [ "71" ], + "x-ms-client-request-id": [ "48772569-3951-4ea2-a1d5-f1c1f9deeab0" ], "CommandName": [ "Az.ContainerInstance.internal\\New-AzContainerGroup" ], "FullCommandName": [ "New-AzContainerGroup_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ] }, "ContentHeaders": { } @@ -142,38 +63,40 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-request-id": [ "eastus:ae0c5e29-0c2b-4ed0-adcd-de5b3a4c97bf" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11950" ], - "x-ms-correlation-request-id": [ "dd31e7cd-8d36-4fc1-9ed0-f074f260d50c" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T000730Z:dd31e7cd-8d36-4fc1-9ed0-f074f260d50c" ], + "x-ms-request-id": [ "eastus:5b543d10-8257-4730-986b-6cca90f67c8f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "ee30df58-7aa8-4605-ac11-2c8a72c775fe" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T050415Z:ee30df58-7aa8-4605-ac11-2c8a72c775fe" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:07:29 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 453409134E614F0E810D8657E25C9DC0 Ref B: MAA201060514031 Ref C: 2024-10-31T05:04:14Z" ], + "Date": [ "Thu, 31 Oct 2024 05:04:14 GMT" ] }, "ContentHeaders": { "Content-Length": [ "265" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup\",\"status\":\"Creating\",\"startTime\":\"2023-02-18T00:05:59.1609954Z\",\"properties\":{\"events\":[]}}", + "Content": "{\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup\",\"status\":\"Creating\",\"startTime\":\"2024-10-31T05:03:42.9618037Z\",\"properties\":{\"events\":[]}}", "isContentBase64": false } }, - "New-AzContainerGroupConfidentialSku+[NoContext]+Creates a container group with Confidential Sku using latest nginx image+$GET+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/providers/Microsoft.ContainerInstance/locations/eastus/operations/35a4eabe-e8d0-44e3-af7e-3b04cb68050a?api-version=2018-06-01+5": { + "New-AzContainerGroupConfidentialSku+[NoContext]+Creates a container group with Confidential Sku using latest nginx image+$GET+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/providers/Microsoft.ContainerInstance/locations/eastus/operations/7637d2bd-3215-4e37-adaa-1454ba453932?api-version=2018-06-01\u0026t=638659478248009483\u0026c=MIIHhzCCBm-gAwIBAgITHgVsohlR2527oAb3YwAABWyiGTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTIyMTIzNzU1WhcNMjUwMzIxMTIzNzU1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMhrLEJmsmtpzYzyjkwosX72drFxelF_0kAmuW7jzqQUwb3Vbkmt3AMdawBA7iPG-j-_iaEVRdn5iaEuJE6hSge15_CbeDkRt-qHgospNLcjh6GjynbLyFCQH_IkKY4Mc0yIlKxilQSCf2V6ah2w7S1CyC5zwZroBYavu5w0ZL02jRKMTNVzB03DnGhQGJ7gJbtKJ9AbjVcFwFTpT0Z0Yo-sLpwoVvADWng0JznFSekROEXCF_U3gHMssCctipkbrivaRFNKL3OjHjvuPxD8gsBo2BR_swq3Eyj-68_1B2-zYVD0d811pP8URR-43YYAMXO2Us1Uw6dn-b351XnW8JECAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMi5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNi5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDIuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAyLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA2LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMi5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNi5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDIuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3J0MB0GA1UdDgQWBBTLk-Eh1Xfk5Jotz1gl5hr4G-tKhTAOBgNVHQ8BAf8EBAMCBaAwggEmBgNVHR8EggEdMIIBGTCCARWgggERoIIBDYY_aHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JsMIGdBgNVHSAEgZUwgZIwDAYKKwYBBAGCN3sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAG22HO9nSE7AYf9OZGmPXw_SpE0CIxcQiahWc3LG3zRYLxmiKsYYlN9_r_6fPeEmIs7P7xm7g_xAAHLymI5BQDzGsW5GzAzYVOwolJBj3EcX1bxxIqeEgLvHNmYOr4D5MZFv14TGMHziu0TzPAbbVe9-DmMbrqs1mszrnuUiHTsmKE2oNmv4gjZMYSJAdsUzkjxQEa8t1t7FUEvbDkWkYSdqK0-OoTDVLsRVwRNk9XJ04coDgWql1-iv6bYNXyhC0L_-bdTOs_Gnzu-tFEA2we7Zkew_fhDuJwGTDnhaqvhush0SPJuFmoYBvmEzEJsc_Bjay2DrOHiLTopNoBJVrt8\u0026s=XCJ-9IzJuR9V4RbWf2NcnkjZn-ZMir8R7w6yiDnScStgMdQid-1Zi1KmvExHGLrYIvvl8nYzyZ5nhu8Aw5Aazb2YHW3wSczde2K73IAnLBSxxIOEgA1GhRkPcSUtcsKP65SXsSrOIj2LYy7PgEl7_W33X538I6AwPknxFKV3wpKemE7M484HB-h1_Ir94PIiqLGRHoxxhLWFHEWvHQyd_SP81tNNZtmwuaCIgu_r1xwuAcZhMXgbCwmJJwEl7MLvzzBQQtsA5Jp9c62NdUPUkWuc5Z_7bwDwtgQRgzoK4JODDBPJQDxFxTqHoUhraMXMGDsMcYIHGmjr1fftTk-clg\u0026h=I1zz-wUfWJpnlB1sksgmr3PxVskB06uNCyCQFqCVwpI+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/providers/Microsoft.ContainerInstance/locations/eastus/operations/35a4eabe-e8d0-44e3-af7e-3b04cb68050a?api-version=2018-06-01", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/providers/Microsoft.ContainerInstance/locations/eastus/operations/7637d2bd-3215-4e37-adaa-1454ba453932?api-version=2018-06-01\u0026t=638659478248009483\u0026c=MIIHhzCCBm-gAwIBAgITHgVsohlR2527oAb3YwAABWyiGTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTIyMTIzNzU1WhcNMjUwMzIxMTIzNzU1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMhrLEJmsmtpzYzyjkwosX72drFxelF_0kAmuW7jzqQUwb3Vbkmt3AMdawBA7iPG-j-_iaEVRdn5iaEuJE6hSge15_CbeDkRt-qHgospNLcjh6GjynbLyFCQH_IkKY4Mc0yIlKxilQSCf2V6ah2w7S1CyC5zwZroBYavu5w0ZL02jRKMTNVzB03DnGhQGJ7gJbtKJ9AbjVcFwFTpT0Z0Yo-sLpwoVvADWng0JznFSekROEXCF_U3gHMssCctipkbrivaRFNKL3OjHjvuPxD8gsBo2BR_swq3Eyj-68_1B2-zYVD0d811pP8URR-43YYAMXO2Us1Uw6dn-b351XnW8JECAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMi5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNi5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDIuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAyLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA2LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMi5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNi5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDIuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3J0MB0GA1UdDgQWBBTLk-Eh1Xfk5Jotz1gl5hr4G-tKhTAOBgNVHQ8BAf8EBAMCBaAwggEmBgNVHR8EggEdMIIBGTCCARWgggERoIIBDYY_aHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JsMIGdBgNVHSAEgZUwgZIwDAYKKwYBBAGCN3sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAG22HO9nSE7AYf9OZGmPXw_SpE0CIxcQiahWc3LG3zRYLxmiKsYYlN9_r_6fPeEmIs7P7xm7g_xAAHLymI5BQDzGsW5GzAzYVOwolJBj3EcX1bxxIqeEgLvHNmYOr4D5MZFv14TGMHziu0TzPAbbVe9-DmMbrqs1mszrnuUiHTsmKE2oNmv4gjZMYSJAdsUzkjxQEa8t1t7FUEvbDkWkYSdqK0-OoTDVLsRVwRNk9XJ04coDgWql1-iv6bYNXyhC0L_-bdTOs_Gnzu-tFEA2we7Zkew_fhDuJwGTDnhaqvhush0SPJuFmoYBvmEzEJsc_Bjay2DrOHiLTopNoBJVrt8\u0026s=XCJ-9IzJuR9V4RbWf2NcnkjZn-ZMir8R7w6yiDnScStgMdQid-1Zi1KmvExHGLrYIvvl8nYzyZ5nhu8Aw5Aazb2YHW3wSczde2K73IAnLBSxxIOEgA1GhRkPcSUtcsKP65SXsSrOIj2LYy7PgEl7_W33X538I6AwPknxFKV3wpKemE7M484HB-h1_Ir94PIiqLGRHoxxhLWFHEWvHQyd_SP81tNNZtmwuaCIgu_r1xwuAcZhMXgbCwmJJwEl7MLvzzBQQtsA5Jp9c62NdUPUkWuc5Z_7bwDwtgQRgzoK4JODDBPJQDxFxTqHoUhraMXMGDsMcYIHGmjr1fftTk-clg\u0026h=I1zz-wUfWJpnlB1sksgmr3PxVskB06uNCyCQFqCVwpI", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "71" ], - "x-ms-client-request-id": [ "6a91688e-841c-490f-8c85-88ef1a51e481" ], + "x-ms-unique-id": [ "72" ], + "x-ms-client-request-id": [ "48772569-3951-4ea2-a1d5-f1c1f9deeab0" ], "CommandName": [ "Az.ContainerInstance.internal\\New-AzContainerGroup" ], "FullCommandName": [ "New-AzContainerGroup_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ] }, "ContentHeaders": { } @@ -183,38 +106,40 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-request-id": [ "eastus:68b868a7-3b7b-4ee6-81bd-e18681947761" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11949" ], - "x-ms-correlation-request-id": [ "005c0154-0332-4d2b-b947-f9d544f4e11a" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T000801Z:005c0154-0332-4d2b-b947-f9d544f4e11a" ], + "x-ms-request-id": [ "eastus:1bfa1799-9425-4d72-aa14-4d1fdfa6456f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "51ec1285-d223-4e92-871b-56b90dd7118a" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T050445Z:51ec1285-d223-4e92-871b-56b90dd7118a" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:08:00 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: CF01958BDD10483B837A652642C22C91 Ref B: MAA201060514031 Ref C: 2024-10-31T05:04:45Z" ], + "Date": [ "Thu, 31 Oct 2024 05:04:44 GMT" ] }, "ContentHeaders": { "Content-Length": [ "265" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup\",\"status\":\"Creating\",\"startTime\":\"2023-02-18T00:05:59.1609954Z\",\"properties\":{\"events\":[]}}", + "Content": "{\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup\",\"status\":\"Creating\",\"startTime\":\"2024-10-31T05:03:42.9618037Z\",\"properties\":{\"events\":[]}}", "isContentBase64": false } }, - "New-AzContainerGroupConfidentialSku+[NoContext]+Creates a container group with Confidential Sku using latest nginx image+$GET+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/providers/Microsoft.ContainerInstance/locations/eastus/operations/35a4eabe-e8d0-44e3-af7e-3b04cb68050a?api-version=2018-06-01+6": { + "New-AzContainerGroupConfidentialSku+[NoContext]+Creates a container group with Confidential Sku using latest nginx image+$GET+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/providers/Microsoft.ContainerInstance/locations/eastus/operations/7637d2bd-3215-4e37-adaa-1454ba453932?api-version=2018-06-01\u0026t=638659478248009483\u0026c=MIIHhzCCBm-gAwIBAgITHgVsohlR2527oAb3YwAABWyiGTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTIyMTIzNzU1WhcNMjUwMzIxMTIzNzU1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMhrLEJmsmtpzYzyjkwosX72drFxelF_0kAmuW7jzqQUwb3Vbkmt3AMdawBA7iPG-j-_iaEVRdn5iaEuJE6hSge15_CbeDkRt-qHgospNLcjh6GjynbLyFCQH_IkKY4Mc0yIlKxilQSCf2V6ah2w7S1CyC5zwZroBYavu5w0ZL02jRKMTNVzB03DnGhQGJ7gJbtKJ9AbjVcFwFTpT0Z0Yo-sLpwoVvADWng0JznFSekROEXCF_U3gHMssCctipkbrivaRFNKL3OjHjvuPxD8gsBo2BR_swq3Eyj-68_1B2-zYVD0d811pP8URR-43YYAMXO2Us1Uw6dn-b351XnW8JECAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMi5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNi5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDIuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAyLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA2LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMi5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNi5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDIuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3J0MB0GA1UdDgQWBBTLk-Eh1Xfk5Jotz1gl5hr4G-tKhTAOBgNVHQ8BAf8EBAMCBaAwggEmBgNVHR8EggEdMIIBGTCCARWgggERoIIBDYY_aHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JsMIGdBgNVHSAEgZUwgZIwDAYKKwYBBAGCN3sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAG22HO9nSE7AYf9OZGmPXw_SpE0CIxcQiahWc3LG3zRYLxmiKsYYlN9_r_6fPeEmIs7P7xm7g_xAAHLymI5BQDzGsW5GzAzYVOwolJBj3EcX1bxxIqeEgLvHNmYOr4D5MZFv14TGMHziu0TzPAbbVe9-DmMbrqs1mszrnuUiHTsmKE2oNmv4gjZMYSJAdsUzkjxQEa8t1t7FUEvbDkWkYSdqK0-OoTDVLsRVwRNk9XJ04coDgWql1-iv6bYNXyhC0L_-bdTOs_Gnzu-tFEA2we7Zkew_fhDuJwGTDnhaqvhush0SPJuFmoYBvmEzEJsc_Bjay2DrOHiLTopNoBJVrt8\u0026s=XCJ-9IzJuR9V4RbWf2NcnkjZn-ZMir8R7w6yiDnScStgMdQid-1Zi1KmvExHGLrYIvvl8nYzyZ5nhu8Aw5Aazb2YHW3wSczde2K73IAnLBSxxIOEgA1GhRkPcSUtcsKP65SXsSrOIj2LYy7PgEl7_W33X538I6AwPknxFKV3wpKemE7M484HB-h1_Ir94PIiqLGRHoxxhLWFHEWvHQyd_SP81tNNZtmwuaCIgu_r1xwuAcZhMXgbCwmJJwEl7MLvzzBQQtsA5Jp9c62NdUPUkWuc5Z_7bwDwtgQRgzoK4JODDBPJQDxFxTqHoUhraMXMGDsMcYIHGmjr1fftTk-clg\u0026h=I1zz-wUfWJpnlB1sksgmr3PxVskB06uNCyCQFqCVwpI+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/providers/Microsoft.ContainerInstance/locations/eastus/operations/35a4eabe-e8d0-44e3-af7e-3b04cb68050a?api-version=2018-06-01", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/providers/Microsoft.ContainerInstance/locations/eastus/operations/7637d2bd-3215-4e37-adaa-1454ba453932?api-version=2018-06-01\u0026t=638659478248009483\u0026c=MIIHhzCCBm-gAwIBAgITHgVsohlR2527oAb3YwAABWyiGTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTIyMTIzNzU1WhcNMjUwMzIxMTIzNzU1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMhrLEJmsmtpzYzyjkwosX72drFxelF_0kAmuW7jzqQUwb3Vbkmt3AMdawBA7iPG-j-_iaEVRdn5iaEuJE6hSge15_CbeDkRt-qHgospNLcjh6GjynbLyFCQH_IkKY4Mc0yIlKxilQSCf2V6ah2w7S1CyC5zwZroBYavu5w0ZL02jRKMTNVzB03DnGhQGJ7gJbtKJ9AbjVcFwFTpT0Z0Yo-sLpwoVvADWng0JznFSekROEXCF_U3gHMssCctipkbrivaRFNKL3OjHjvuPxD8gsBo2BR_swq3Eyj-68_1B2-zYVD0d811pP8URR-43YYAMXO2Us1Uw6dn-b351XnW8JECAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMi5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNi5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDIuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAyLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA2LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMi5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNi5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDIuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3J0MB0GA1UdDgQWBBTLk-Eh1Xfk5Jotz1gl5hr4G-tKhTAOBgNVHQ8BAf8EBAMCBaAwggEmBgNVHR8EggEdMIIBGTCCARWgggERoIIBDYY_aHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JsMIGdBgNVHSAEgZUwgZIwDAYKKwYBBAGCN3sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAG22HO9nSE7AYf9OZGmPXw_SpE0CIxcQiahWc3LG3zRYLxmiKsYYlN9_r_6fPeEmIs7P7xm7g_xAAHLymI5BQDzGsW5GzAzYVOwolJBj3EcX1bxxIqeEgLvHNmYOr4D5MZFv14TGMHziu0TzPAbbVe9-DmMbrqs1mszrnuUiHTsmKE2oNmv4gjZMYSJAdsUzkjxQEa8t1t7FUEvbDkWkYSdqK0-OoTDVLsRVwRNk9XJ04coDgWql1-iv6bYNXyhC0L_-bdTOs_Gnzu-tFEA2we7Zkew_fhDuJwGTDnhaqvhush0SPJuFmoYBvmEzEJsc_Bjay2DrOHiLTopNoBJVrt8\u0026s=XCJ-9IzJuR9V4RbWf2NcnkjZn-ZMir8R7w6yiDnScStgMdQid-1Zi1KmvExHGLrYIvvl8nYzyZ5nhu8Aw5Aazb2YHW3wSczde2K73IAnLBSxxIOEgA1GhRkPcSUtcsKP65SXsSrOIj2LYy7PgEl7_W33X538I6AwPknxFKV3wpKemE7M484HB-h1_Ir94PIiqLGRHoxxhLWFHEWvHQyd_SP81tNNZtmwuaCIgu_r1xwuAcZhMXgbCwmJJwEl7MLvzzBQQtsA5Jp9c62NdUPUkWuc5Z_7bwDwtgQRgzoK4JODDBPJQDxFxTqHoUhraMXMGDsMcYIHGmjr1fftTk-clg\u0026h=I1zz-wUfWJpnlB1sksgmr3PxVskB06uNCyCQFqCVwpI", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "72" ], - "x-ms-client-request-id": [ "6a91688e-841c-490f-8c85-88ef1a51e481" ], + "x-ms-unique-id": [ "73" ], + "x-ms-client-request-id": [ "48772569-3951-4ea2-a1d5-f1c1f9deeab0" ], "CommandName": [ "Az.ContainerInstance.internal\\New-AzContainerGroup" ], "FullCommandName": [ "New-AzContainerGroup_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ] }, "ContentHeaders": { } @@ -224,38 +149,40 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-request-id": [ "eastus:0ff5796c-d2f1-4aa3-b691-cac68c987237" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11948" ], - "x-ms-correlation-request-id": [ "5d1d36af-5245-4693-a949-65208497b08c" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T000831Z:5d1d36af-5245-4693-a949-65208497b08c" ], + "x-ms-request-id": [ "eastus:1e606c6d-82d4-402e-bd12-5de5ab6a9af5" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "052412cf-9a8b-4e27-b5f8-36764ab052cb" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T050515Z:052412cf-9a8b-4e27-b5f8-36764ab052cb" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:08:31 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 435BF4C33657424A9C4BE783563B1935 Ref B: MAA201060514031 Ref C: 2024-10-31T05:05:15Z" ], + "Date": [ "Thu, 31 Oct 2024 05:05:15 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "894" ], + "Content-Length": [ "968" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup\",\"status\":\"Succeeded\",\"startTime\":\"2023-02-18T00:05:59.1609954Z\",\"properties\":{\"events\":[{\"count\":1,\"firstTimestamp\":\"2023-02-18T00:07:01Z\",\"lastTimestamp\":\"2023-02-18T00:07:01Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-18T00:07:06Z\",\"lastTimestamp\":\"2023-02-18T00:07:06Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-18T00:07:52Z\",\"lastTimestamp\":\"2023-02-18T00:07:52Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]}}", + "Content": "{\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup\",\"status\":\"Succeeded\",\"startTime\":\"2024-10-31T05:03:42.9618037Z\",\"properties\":{\"events\":[{\"count\":1,\"firstTimestamp\":\"2024-10-31T05:04:11Z\",\"lastTimestamp\":\"2024-10-31T05:04:11Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T05:04:12Z\",\"lastTimestamp\":\"2024-10-31T05:04:12Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T05:04:30Z\",\"lastTimestamp\":\"2024-10-31T05:04:30Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]}}", "isContentBase64": false } }, - "New-AzContainerGroupConfidentialSku+[NoContext]+Creates a container group with Confidential Sku using latest nginx image+$GET+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup?api-version=2022-10-01-preview+7": { + "New-AzContainerGroupConfidentialSku+[NoContext]+Creates a container group with Confidential Sku using latest nginx image+$GET+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup?api-version=2024-05-01-preview+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "73" ], - "x-ms-client-request-id": [ "6a91688e-841c-490f-8c85-88ef1a51e481" ], + "x-ms-unique-id": [ "74" ], + "x-ms-client-request-id": [ "48772569-3951-4ea2-a1d5-f1c1f9deeab0" ], "CommandName": [ "Az.ContainerInstance.internal\\New-AzContainerGroup" ], "FullCommandName": [ "New-AzContainerGroup_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ] }, "ContentHeaders": { } @@ -265,21 +192,23 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-request-id": [ "eastus:76537b7e-7b60-4896-828e-3a60a63330c6" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11947" ], - "x-ms-correlation-request-id": [ "04aa0313-886e-4d79-9e95-90ddc8d65a1e" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T000832Z:04aa0313-886e-4d79-9e95-90ddc8d65a1e" ], + "x-ms-request-id": [ "eastus:cd67ffab-6077-43b0-b6e7-0393f669e88c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "07c307fa-9e61-452f-8983-484c751045cd" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T050516Z:07c307fa-9e61-452f-8983-484c751045cd" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:08:31 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 7325773E920C4BB1873C173D74E8DDD7 Ref B: MAA201060514031 Ref C: 2024-10-31T05:05:16Z" ], + "Date": [ "Thu, 31 Oct 2024 05:05:15 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2479" ], + "Content-Length": [ "2724" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"sku\":\"Confidential\",\"confidentialComputeProperties\":{\"ccePolicy\":\"cGFja2FnZSBwb2xpY3kKCmFwaV9zdm4gOj0gIjAuMTAuMCIKCm1vdW50X2RldmljZSA6PSB7ImFsbG93ZWQiOiB0cnVlfQptb3VudF9vdmVybGF5IDo9IHsiYWxsb3dlZCI6IHRydWV9CmNyZWF0ZV9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbCwgImFsbG93X3N0ZGlvX2FjY2VzcyI6IHRydWV9CnVubW91bnRfZGV2aWNlIDo9IHsiYWxsb3dlZCI6IHRydWV9IAp1bm1vdW50X292ZXJsYXkgOj0geyJhbGxvd2VkIjogdHJ1ZX0KZXhlY19pbl9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbH0KZXhlY19leHRlcm5hbCA6PSB7ImFsbG93ZWQiOiB0cnVlLCAiZW52X2xpc3QiOiBudWxsLCAiYWxsb3dfc3RkaW9fYWNjZXNzIjogdHJ1ZX0Kc2h1dGRvd25fY29udGFpbmVyIDo9IHsiYWxsb3dlZCI6IHRydWV9CnNpZ25hbF9jb250YWluZXJfcHJvY2VzcyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV9tb3VudCA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CmdldF9wcm9wZXJ0aWVzIDo9IHsiYWxsb3dlZCI6IHRydWV9CmR1bXBfc3RhY2tzIDo9IHsiYWxsb3dlZCI6IHRydWV9CnJ1bnRpbWVfbG9nZ2luZyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpsb2FkX2ZyYWdtZW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CnNjcmF0Y2hfbW91bnQgOj0geyJhbGxvd2VkIjogdHJ1ZX0Kc2NyYXRjaF91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9Cg==\"},\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"bez-test-ci\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2023-02-18T00:07:52.013Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2023-02-18T00:07:01Z\",\"lastTimestamp\":\"2023-02-18T00:07:01Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-18T00:07:06Z\",\"lastTimestamp\":\"2023-02-18T00:07:06Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-18T00:07:52Z\",\"lastTimestamp\":\"2023-02-18T00:07:52Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"}},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup\",\"name\":\"test-confidential-containergroup\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\",\"tags\":{\"key\":\"value\"}}", + "Content": "{\"properties\":{\"sku\":\"Confidential\",\"confidentialComputeProperties\":{\"ccePolicy\":\"cGFja2FnZSBwb2xpY3kKCmFwaV9zdm4gOj0gIjAuMTAuMCIKCm1vdW50X2RldmljZSA6PSB7ImFsbG93ZWQiOiB0cnVlfQptb3VudF9vdmVybGF5IDo9IHsiYWxsb3dlZCI6IHRydWV9CmNyZWF0ZV9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbCwgImFsbG93X3N0ZGlvX2FjY2VzcyI6IHRydWV9CnVubW91bnRfZGV2aWNlIDo9IHsiYWxsb3dlZCI6IHRydWV9IAp1bm1vdW50X292ZXJsYXkgOj0geyJhbGxvd2VkIjogdHJ1ZX0KZXhlY19pbl9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbH0KZXhlY19leHRlcm5hbCA6PSB7ImFsbG93ZWQiOiB0cnVlLCAiZW52X2xpc3QiOiBudWxsLCAiYWxsb3dfc3RkaW9fYWNjZXNzIjogdHJ1ZX0Kc2h1dGRvd25fY29udGFpbmVyIDo9IHsiYWxsb3dlZCI6IHRydWV9CnNpZ25hbF9jb250YWluZXJfcHJvY2VzcyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV9tb3VudCA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CmdldF9wcm9wZXJ0aWVzIDo9IHsiYWxsb3dlZCI6IHRydWV9CmR1bXBfc3RhY2tzIDo9IHsiYWxsb3dlZCI6IHRydWV9CnJ1bnRpbWVfbG9nZ2luZyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpsb2FkX2ZyYWdtZW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CnNjcmF0Y2hfbW91bnQgOj0geyJhbGxvd2VkIjogdHJ1ZX0Kc2NyYXRjaF91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9Cg==\"},\"isCreatedFromStandbyPool\":false,\"provisioningState\":\"Succeeded\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"bez-test-ci\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{}},\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2024-10-31T05:04:30.701Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2024-10-31T05:04:11Z\",\"lastTimestamp\":\"2024-10-31T05:04:11Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T05:04:12Z\",\"lastTimestamp\":\"2024-10-31T05:04:12Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T05:04:30Z\",\"lastTimestamp\":\"2024-10-31T05:04:30Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"}},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup\",\"name\":\"test-confidential-containergroup\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\",\"tags\":{\"key\":\"value\"}}", "isContentBase64": false } } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/test/New-AzContainerGroupRegularPriority.Recording.json b/src/ContainerInstance/ContainerInstance.Autorest/test/New-AzContainerGroupRegularPriority.Recording.json index f0d1296cce03..74f36dd9e3d7 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/test/New-AzContainerGroupRegularPriority.Recording.json +++ b/src/ContainerInstance/ContainerInstance.Autorest/test/New-AzContainerGroupRegularPriority.Recording.json @@ -1,15 +1,15 @@ { - "New-AzContainerGroupRegularPriority+[NoContext]+Creates a container group with Regular Priority using latest nginx image+$PUT+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-regular-priority-cgaxmcz?api-version=2022-10-01-preview+1": { + "New-AzContainerGroupRegularPriority+[NoContext]+Creates a container group with Regular Priority using latest nginx image+$PUT+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-regular-priority-cgfp71w?api-version=2024-05-01-preview+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-regular-priority-cgaxmcz?api-version=2022-10-01-preview", - "Content": "{\n \"location\": \"eastus\",\n \"properties\": {\n \"containers\": [\n {\n \"properties\": {\n \"resources\": {\n \"requests\": {\n \"memoryInGB\": 1.5,\n \"cpu\": 1\n }\n },\n \"image\": \"nginx\",\n \"ports\": [\n {\n \"port\": 80\n }\n ]\n },\n \"name\": \"bez-test-ci\"\n }\n ],\n \"restartPolicy\": \"Never\",\n \"osType\": \"Linux\",\n \"priority\": \"Regular\"\n }\n}", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-regular-priority-cgfp71w?api-version=2024-05-01-preview", + "Content": "{\n \"location\": \"eastus\",\n \"properties\": {\n \"containers\": [\n {\n \"properties\": {\n \"resources\": {\n \"requests\": {\n \"memoryInGB\": 1.5,\n \"cpu\": 1\n }\n },\n \"image\": \"mcr.microsoft.com/azuredocs/aci-helloworld:latest\"\n },\n \"name\": \"bez-test-ci\"\n }\n ],\n \"restartPolicy\": \"Never\",\n \"osType\": \"Linux\",\n \"priority\": \"Regular\"\n }\n}", "isContentBase64": false, "Headers": { }, "ContentHeaders": { "Content-Type": [ "application/json" ], - "Content-Length": [ "484" ] + "Content-Length": [ "441" ] } }, "Response": { @@ -17,40 +17,43 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/providers/Microsoft.ContainerInstance/locations/eastus/operations/453d1b2a-e3f5-4959-b300-81a484301cdc?api-version=2018-06-01" ], - "x-ms-ratelimit-remaining-subscription-resource-requests-pt5m": [ "99" ], - "x-ms-ratelimit-remaining-subscription-resource-requests-pt1h": [ "299" ], - "x-ms-request-id": [ "eastus:453d1b2a-e3f5-4959-b300-81a484301cdc" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1181" ], - "x-ms-correlation-request-id": [ "a4d3e59d-a7be-4731-9466-95a4980d99b0" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T000911Z:a4d3e59d-a7be-4731-9466-95a4980d99b0" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/providers/Microsoft.ContainerInstance/locations/eastus/operations/251caf98-d7fb-4a4b-abd4-db6f2c30bf4a?api-version=2018-06-01\u0026t=638659479440815339\u0026c=MIIHhzCCBm-gAwIBAgITHgVsohlR2527oAb3YwAABWyiGTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTIyMTIzNzU1WhcNMjUwMzIxMTIzNzU1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMhrLEJmsmtpzYzyjkwosX72drFxelF_0kAmuW7jzqQUwb3Vbkmt3AMdawBA7iPG-j-_iaEVRdn5iaEuJE6hSge15_CbeDkRt-qHgospNLcjh6GjynbLyFCQH_IkKY4Mc0yIlKxilQSCf2V6ah2w7S1CyC5zwZroBYavu5w0ZL02jRKMTNVzB03DnGhQGJ7gJbtKJ9AbjVcFwFTpT0Z0Yo-sLpwoVvADWng0JznFSekROEXCF_U3gHMssCctipkbrivaRFNKL3OjHjvuPxD8gsBo2BR_swq3Eyj-68_1B2-zYVD0d811pP8URR-43YYAMXO2Us1Uw6dn-b351XnW8JECAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMi5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNi5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDIuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAyLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA2LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMi5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNi5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDIuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3J0MB0GA1UdDgQWBBTLk-Eh1Xfk5Jotz1gl5hr4G-tKhTAOBgNVHQ8BAf8EBAMCBaAwggEmBgNVHR8EggEdMIIBGTCCARWgggERoIIBDYY_aHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JsMIGdBgNVHSAEgZUwgZIwDAYKKwYBBAGCN3sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAG22HO9nSE7AYf9OZGmPXw_SpE0CIxcQiahWc3LG3zRYLxmiKsYYlN9_r_6fPeEmIs7P7xm7g_xAAHLymI5BQDzGsW5GzAzYVOwolJBj3EcX1bxxIqeEgLvHNmYOr4D5MZFv14TGMHziu0TzPAbbVe9-DmMbrqs1mszrnuUiHTsmKE2oNmv4gjZMYSJAdsUzkjxQEa8t1t7FUEvbDkWkYSdqK0-OoTDVLsRVwRNk9XJ04coDgWql1-iv6bYNXyhC0L_-bdTOs_Gnzu-tFEA2we7Zkew_fhDuJwGTDnhaqvhush0SPJuFmoYBvmEzEJsc_Bjay2DrOHiLTopNoBJVrt8\u0026s=VgIRGaX31LYOD9JJGRxcQ95gvDYrthF-zrmUDpw91kpPeUdU6mxiorT4UWgwmJss5Dac1w_8uUSUUjgQp-Z_0F5hN5ADRmTiY5JSaLpt079Libbojp4yPTy3KxQsJaOMTWXY1hvKfG3oNzkvg2MoPWCudEUyQ1h113PkQ4b-F-YJ5MKKsoQn7xFDqwOHSWX6MWxoHuywnevo66-UQZKUKQ5n9re_VBRaFm-BkhwZ1XaYuhugcvgrS36cN3wlT0kyIpf7Sv4owNPqDbYeHxNnORdQkqkL_ORRiLss5DgJFH-8ThBJQgxvB24rgCJpa2fjugVESuaDZAPlulFe8MZA_Q\u0026h=Zt114ONoI1YPxNJWVDfv9ACmPoqNJp7ci2S3YP7VAwA" ], + "x-ms-ratelimit-remaining-subscription-resource-requests-pt5m": [ "1499" ], + "x-ms-ratelimit-remaining-subscription-resource-requests-pt1h": [ "14998" ], + "x-ms-request-id": [ "eastus:251caf98-d7fb-4a4b-abd4-db6f2c30bf4a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], + "x-ms-correlation-request-id": [ "1c30e647-b308-4dca-9014-b18808d8bec2" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T050544Z:1c30e647-b308-4dca-9014-b18808d8bec2" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:09:11 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: CF6019A4284C466DB00E75F7EA37C789 Ref B: MAA201060514031 Ref C: 2024-10-31T05:05:40Z" ], + "Date": [ "Thu, 31 Oct 2024 05:05:43 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "646" ], + "Content-Length": [ "817" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Pending\",\"containers\":[{\"name\":\"bez-test-ci\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"restartPolicy\":\"Never\",\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Pending\"},\"priority\":\"Regular\"},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-regular-priority-cgaxmcz\",\"name\":\"test-regular-priority-cgaxmcz\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"}", + "Content": "{\"properties\":{\"sku\":\"Standard\",\"isCreatedFromStandbyPool\":false,\"provisioningState\":\"Pending\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"bez-test-ci\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{}},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"restartPolicy\":\"Never\",\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Pending\"},\"priority\":\"Regular\"},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-regular-priority-cgfp71w\",\"name\":\"test-regular-priority-cgfp71w\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"}", "isContentBase64": false } }, - "New-AzContainerGroupRegularPriority+[NoContext]+Creates a container group with Regular Priority using latest nginx image+$GET+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/providers/Microsoft.ContainerInstance/locations/eastus/operations/453d1b2a-e3f5-4959-b300-81a484301cdc?api-version=2018-06-01+2": { + "New-AzContainerGroupRegularPriority+[NoContext]+Creates a container group with Regular Priority using latest nginx image+$GET+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/providers/Microsoft.ContainerInstance/locations/eastus/operations/251caf98-d7fb-4a4b-abd4-db6f2c30bf4a?api-version=2018-06-01\u0026t=638659479440815339\u0026c=MIIHhzCCBm-gAwIBAgITHgVsohlR2527oAb3YwAABWyiGTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTIyMTIzNzU1WhcNMjUwMzIxMTIzNzU1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMhrLEJmsmtpzYzyjkwosX72drFxelF_0kAmuW7jzqQUwb3Vbkmt3AMdawBA7iPG-j-_iaEVRdn5iaEuJE6hSge15_CbeDkRt-qHgospNLcjh6GjynbLyFCQH_IkKY4Mc0yIlKxilQSCf2V6ah2w7S1CyC5zwZroBYavu5w0ZL02jRKMTNVzB03DnGhQGJ7gJbtKJ9AbjVcFwFTpT0Z0Yo-sLpwoVvADWng0JznFSekROEXCF_U3gHMssCctipkbrivaRFNKL3OjHjvuPxD8gsBo2BR_swq3Eyj-68_1B2-zYVD0d811pP8URR-43YYAMXO2Us1Uw6dn-b351XnW8JECAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMi5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNi5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDIuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAyLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA2LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMi5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNi5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDIuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3J0MB0GA1UdDgQWBBTLk-Eh1Xfk5Jotz1gl5hr4G-tKhTAOBgNVHQ8BAf8EBAMCBaAwggEmBgNVHR8EggEdMIIBGTCCARWgggERoIIBDYY_aHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JsMIGdBgNVHSAEgZUwgZIwDAYKKwYBBAGCN3sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAG22HO9nSE7AYf9OZGmPXw_SpE0CIxcQiahWc3LG3zRYLxmiKsYYlN9_r_6fPeEmIs7P7xm7g_xAAHLymI5BQDzGsW5GzAzYVOwolJBj3EcX1bxxIqeEgLvHNmYOr4D5MZFv14TGMHziu0TzPAbbVe9-DmMbrqs1mszrnuUiHTsmKE2oNmv4gjZMYSJAdsUzkjxQEa8t1t7FUEvbDkWkYSdqK0-OoTDVLsRVwRNk9XJ04coDgWql1-iv6bYNXyhC0L_-bdTOs_Gnzu-tFEA2we7Zkew_fhDuJwGTDnhaqvhush0SPJuFmoYBvmEzEJsc_Bjay2DrOHiLTopNoBJVrt8\u0026s=VgIRGaX31LYOD9JJGRxcQ95gvDYrthF-zrmUDpw91kpPeUdU6mxiorT4UWgwmJss5Dac1w_8uUSUUjgQp-Z_0F5hN5ADRmTiY5JSaLpt079Libbojp4yPTy3KxQsJaOMTWXY1hvKfG3oNzkvg2MoPWCudEUyQ1h113PkQ4b-F-YJ5MKKsoQn7xFDqwOHSWX6MWxoHuywnevo66-UQZKUKQ5n9re_VBRaFm-BkhwZ1XaYuhugcvgrS36cN3wlT0kyIpf7Sv4owNPqDbYeHxNnORdQkqkL_ORRiLss5DgJFH-8ThBJQgxvB24rgCJpa2fjugVESuaDZAPlulFe8MZA_Q\u0026h=Zt114ONoI1YPxNJWVDfv9ACmPoqNJp7ci2S3YP7VAwA+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/providers/Microsoft.ContainerInstance/locations/eastus/operations/453d1b2a-e3f5-4959-b300-81a484301cdc?api-version=2018-06-01", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/providers/Microsoft.ContainerInstance/locations/eastus/operations/251caf98-d7fb-4a4b-abd4-db6f2c30bf4a?api-version=2018-06-01\u0026t=638659479440815339\u0026c=MIIHhzCCBm-gAwIBAgITHgVsohlR2527oAb3YwAABWyiGTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTIyMTIzNzU1WhcNMjUwMzIxMTIzNzU1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMhrLEJmsmtpzYzyjkwosX72drFxelF_0kAmuW7jzqQUwb3Vbkmt3AMdawBA7iPG-j-_iaEVRdn5iaEuJE6hSge15_CbeDkRt-qHgospNLcjh6GjynbLyFCQH_IkKY4Mc0yIlKxilQSCf2V6ah2w7S1CyC5zwZroBYavu5w0ZL02jRKMTNVzB03DnGhQGJ7gJbtKJ9AbjVcFwFTpT0Z0Yo-sLpwoVvADWng0JznFSekROEXCF_U3gHMssCctipkbrivaRFNKL3OjHjvuPxD8gsBo2BR_swq3Eyj-68_1B2-zYVD0d811pP8URR-43YYAMXO2Us1Uw6dn-b351XnW8JECAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMi5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNi5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDIuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAyLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA2LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMi5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNi5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDIuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3J0MB0GA1UdDgQWBBTLk-Eh1Xfk5Jotz1gl5hr4G-tKhTAOBgNVHQ8BAf8EBAMCBaAwggEmBgNVHR8EggEdMIIBGTCCARWgggERoIIBDYY_aHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JsMIGdBgNVHSAEgZUwgZIwDAYKKwYBBAGCN3sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAG22HO9nSE7AYf9OZGmPXw_SpE0CIxcQiahWc3LG3zRYLxmiKsYYlN9_r_6fPeEmIs7P7xm7g_xAAHLymI5BQDzGsW5GzAzYVOwolJBj3EcX1bxxIqeEgLvHNmYOr4D5MZFv14TGMHziu0TzPAbbVe9-DmMbrqs1mszrnuUiHTsmKE2oNmv4gjZMYSJAdsUzkjxQEa8t1t7FUEvbDkWkYSdqK0-OoTDVLsRVwRNk9XJ04coDgWql1-iv6bYNXyhC0L_-bdTOs_Gnzu-tFEA2we7Zkew_fhDuJwGTDnhaqvhush0SPJuFmoYBvmEzEJsc_Bjay2DrOHiLTopNoBJVrt8\u0026s=VgIRGaX31LYOD9JJGRxcQ95gvDYrthF-zrmUDpw91kpPeUdU6mxiorT4UWgwmJss5Dac1w_8uUSUUjgQp-Z_0F5hN5ADRmTiY5JSaLpt079Libbojp4yPTy3KxQsJaOMTWXY1hvKfG3oNzkvg2MoPWCudEUyQ1h113PkQ4b-F-YJ5MKKsoQn7xFDqwOHSWX6MWxoHuywnevo66-UQZKUKQ5n9re_VBRaFm-BkhwZ1XaYuhugcvgrS36cN3wlT0kyIpf7Sv4owNPqDbYeHxNnORdQkqkL_ORRiLss5DgJFH-8ThBJQgxvB24rgCJpa2fjugVESuaDZAPlulFe8MZA_Q\u0026h=Zt114ONoI1YPxNJWVDfv9ACmPoqNJp7ci2S3YP7VAwA", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "75" ], - "x-ms-client-request-id": [ "8030fa27-0b3e-4361-8816-4ae88db3a3c6" ], + "x-ms-unique-id": [ "76" ], + "x-ms-client-request-id": [ "69c42390-590c-4d42-a1a5-2093781b019a" ], "CommandName": [ "Az.ContainerInstance.internal\\New-AzContainerGroup" ], "FullCommandName": [ "New-AzContainerGroup_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ] }, "ContentHeaders": { } @@ -60,38 +63,40 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-request-id": [ "eastus:1bec8d86-458d-4f4e-956c-9573b257b1a1" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11946" ], - "x-ms-correlation-request-id": [ "b74b25e2-3354-45a0-ab31-16a7613a762a" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T000941Z:b74b25e2-3354-45a0-ab31-16a7613a762a" ], + "x-ms-request-id": [ "eastus:446d74d5-97ba-430d-ae2f-f34f8692f3ed" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "b5ace113-707a-43d1-8bea-28ca1a20a823" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T050614Z:b5ace113-707a-43d1-8bea-28ca1a20a823" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:09:41 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: A4972856B66542508E93FB3673BC3095 Ref B: MAA201060514031 Ref C: 2024-10-31T05:06:14Z" ], + "Date": [ "Thu, 31 Oct 2024 05:06:13 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "737" ], + "Content-Length": [ "965" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-regular-priority-cgaxmcz\",\"status\":\"Succeeded\",\"startTime\":\"2023-02-18T00:09:11.1678233Z\",\"properties\":{\"events\":[{\"count\":1,\"firstTimestamp\":\"2023-02-18T00:09:15Z\",\"lastTimestamp\":\"2023-02-18T00:09:15Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-18T00:09:19Z\",\"lastTimestamp\":\"2023-02-18T00:09:19Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"}]}}", + "Content": "{\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-regular-priority-cgfp71w\",\"status\":\"Succeeded\",\"startTime\":\"2024-10-31T05:05:43.7087071Z\",\"properties\":{\"events\":[{\"count\":1,\"firstTimestamp\":\"2024-10-31T05:05:48Z\",\"lastTimestamp\":\"2024-10-31T05:05:48Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T05:05:51Z\",\"lastTimestamp\":\"2024-10-31T05:05:51Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T05:05:59Z\",\"lastTimestamp\":\"2024-10-31T05:05:59Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]}}", "isContentBase64": false } }, - "New-AzContainerGroupRegularPriority+[NoContext]+Creates a container group with Regular Priority using latest nginx image+$GET+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-regular-priority-cgaxmcz?api-version=2022-10-01-preview+3": { + "New-AzContainerGroupRegularPriority+[NoContext]+Creates a container group with Regular Priority using latest nginx image+$GET+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-regular-priority-cgfp71w?api-version=2024-05-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-regular-priority-cgaxmcz?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-regular-priority-cgfp71w?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "76" ], - "x-ms-client-request-id": [ "8030fa27-0b3e-4361-8816-4ae88db3a3c6" ], + "x-ms-unique-id": [ "77" ], + "x-ms-client-request-id": [ "69c42390-590c-4d42-a1a5-2093781b019a" ], "CommandName": [ "Az.ContainerInstance.internal\\New-AzContainerGroup" ], "FullCommandName": [ "New-AzContainerGroup_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ] }, "ContentHeaders": { } @@ -101,21 +106,23 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-request-id": [ "eastus:0e1e3267-47b2-421c-a56e-0f7cd5817e2f" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11945" ], - "x-ms-correlation-request-id": [ "e0b7be2c-1c0b-436b-8d94-3e31e07127b1" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T000942Z:e0b7be2c-1c0b-436b-8d94-3e31e07127b1" ], + "x-ms-request-id": [ "eastus:93fc0b74-30af-4ceb-8ca6-84d624f37cb8" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "1e9beaae-bbea-4e42-b145-684a25cf9dce" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T050615Z:1e9beaae-bbea-4e42-b145-684a25cf9dce" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:09:41 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 3B00B9AA7BD24D0A8939EE60BA4D6731 Ref B: MAA201060514031 Ref C: 2024-10-31T05:06:14Z" ], + "Date": [ "Thu, 31 Oct 2024 05:06:14 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1414" ], + "Content-Length": [ "1659" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"bez-test-ci\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2023-02-18T00:09:28.852Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2023-02-18T00:09:15Z\",\"lastTimestamp\":\"2023-02-18T00:09:15Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-18T00:09:19Z\",\"lastTimestamp\":\"2023-02-18T00:09:19Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-18T00:09:28Z\",\"lastTimestamp\":\"2023-02-18T00:09:28Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"restartPolicy\":\"Never\",\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"},\"priority\":\"Regular\"},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-regular-priority-cgaxmcz\",\"name\":\"test-regular-priority-cgaxmcz\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"}", + "Content": "{\"properties\":{\"sku\":\"Standard\",\"isCreatedFromStandbyPool\":false,\"provisioningState\":\"Succeeded\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"bez-test-ci\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{}},\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2024-10-31T05:05:59.093Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2024-10-31T05:05:48Z\",\"lastTimestamp\":\"2024-10-31T05:05:48Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T05:05:51Z\",\"lastTimestamp\":\"2024-10-31T05:05:51Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T05:05:59Z\",\"lastTimestamp\":\"2024-10-31T05:05:59Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"restartPolicy\":\"Never\",\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"},\"priority\":\"Regular\"},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-regular-priority-cgfp71w\",\"name\":\"test-regular-priority-cgfp71w\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"}", "isContentBase64": false } } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/test/New-AzContainerGroupReuseFromStandbyPool.Recording.json b/src/ContainerInstance/ContainerInstance.Autorest/test/New-AzContainerGroupReuseFromStandbyPool.Recording.json new file mode 100644 index 000000000000..f313670e6824 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/test/New-AzContainerGroupReuseFromStandbyPool.Recording.json @@ -0,0 +1,129 @@ +{ + "New-AzContainerGroupReuseFromStandbyPool+[NoContext]+Reuses a container group from a standby pool+$PUT+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/pool-reused-containergroup?api-version=2024-05-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/pool-reused-containergroup?api-version=2024-05-01-preview", + "Content": "{\n \"location\": \"eastus\",\n \"properties\": {\n \"containerGroupProfile\": {\n \"id\": \"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/azcliresources/providers/Microsoft.ContainerInstance/containerGroupProfiles/testcg\",\n \"revision\": 1\n },\n \"standbyPoolProfile\": {\n \"id\": \"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/azcliresources/providers/Microsoft.StandbyPool/standbyContainerGroupPools/testpool\"\n },\n \"containers\": [\n {\n \"properties\": {\n \"configMap\": {\n \"keyValuePairs\": {\n \"key1\": \"value1\"\n }\n }\n },\n \"name\": \"testcg\"\n }\n ]\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "686" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/providers/Microsoft.ContainerInstance/locations/eastus/operations/36cf2e1c-cbf1-4a25-bf0c-032ddb97bf5d?api-version=2018-06-01\u0026t=638664368561950513\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQlkyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMElORlJBJTIwQ0ElMjAwMSg0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JZMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CWTJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSU5GUkElMjBDQSUyMDAxKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQlkyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMElORlJBJTIwQ0ElMjAwMSg0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JZMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3J0MB0GA1UdDgQWBBRk_38CqdKjPVylWUR4uuqhbFGeHTAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JsMIGdBgNVHSAEgZUwgZIwDAYKKwYBBAGCN3sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=77wu50ZpxXGdkZen_xpPRGHyzEDQBqYLbW-wEUvM5GsUpAPH_aqe8dw2y-FfgEg4MX424-WlvAZwF0ZWZP7Fn0cmZTMYsWhoXj6N2aGbD1e_LWjUaT_zapGESssb2xwmrTolsa_1SPjyLCTY3K0K_IUfII05ECKtpHSacYaskqF8bpIQIgm56ei3pCR4cPWKvbdCLf4E80kSgFvNiXSYK-jvHnliAb89FE07VY1gaM-Dy0Ryb1NB1mlSoSh30yHFymommwY_MoWF3Rm2dQ6WZDDvmmpClTG13s9qEoRgm1L0Q9taiIjEzv6v5W1KAbQNDW7PpXki8cfJiE8L5LU0yQ\u0026h=WY6Fi274DLW6-iK3ATXkd9XeLMXeWgiXKy-YV1cIuwU" ], + "x-ms-ratelimit-remaining-subscription-resource-requests-pt5m": [ "1499" ], + "x-ms-ratelimit-remaining-subscription-resource-requests-pt1h": [ "14999" ], + "x-ms-request-id": [ "eastus:36cf2e1c-cbf1-4a25-bf0c-032ddb97bf5d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], + "x-ms-correlation-request-id": [ "7f480f4e-69ff-4a23-abdd-87d34d838e43" ], + "x-ms-routing-request-id": [ "WESTUS2:20241105T205416Z:7f480f4e-69ff-4a23-abdd-87d34d838e43" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 3ABDAB73FCAB4C5F9289B7146B24C97D Ref B: CO6AA3150219011 Ref C: 2024-11-05T20:54:12Z" ], + "Date": [ "Tue, 05 Nov 2024 20:54:15 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1932" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"sku\":\"Standard\",\"isCreatedFromStandbyPool\":true,\"provisioningState\":\"Succeeded\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"testcg\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[{\"protocol\":\"TCP\",\"port\":80}],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{\"key1\":\"value1\"}},\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2024-11-05T20:30:17.473Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2024-11-05T20:30:17Z\",\"lastTimestamp\":\"2024-11-05T20:30:17Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-11-05T20:30:07Z\",\"lastTimestamp\":\"2024-11-05T20:30:07Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-11-05T20:30:00Z\",\"lastTimestamp\":\"2024-11-05T20:30:00Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.0,\"cpu\":1.0}}}}],\"initContainers\":[],\"ipAddress\":{\"ports\":[{\"protocol\":\"TCP\",\"port\":80}],\"ip\":\"20.241.155.210\",\"type\":\"Public\"},\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"},\"containerGroupProfile\":{\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/azcliresources/providers/Microsoft.ContainerInstance/containerGroupProfiles/testcg\",\"revision\":1}},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/pool-reused-containergroup\",\"name\":\"pool-reused-containergroup\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"}", + "isContentBase64": false + } + }, + "New-AzContainerGroupReuseFromStandbyPool+[NoContext]+Reuses a container group from a standby pool+$GET+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/providers/Microsoft.ContainerInstance/locations/eastus/operations/36cf2e1c-cbf1-4a25-bf0c-032ddb97bf5d?api-version=2018-06-01\u0026t=638664368561950513\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQlkyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMElORlJBJTIwQ0ElMjAwMSg0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JZMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CWTJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSU5GUkElMjBDQSUyMDAxKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQlkyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMElORlJBJTIwQ0ElMjAwMSg0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JZMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3J0MB0GA1UdDgQWBBRk_38CqdKjPVylWUR4uuqhbFGeHTAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JsMIGdBgNVHSAEgZUwgZIwDAYKKwYBBAGCN3sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=77wu50ZpxXGdkZen_xpPRGHyzEDQBqYLbW-wEUvM5GsUpAPH_aqe8dw2y-FfgEg4MX424-WlvAZwF0ZWZP7Fn0cmZTMYsWhoXj6N2aGbD1e_LWjUaT_zapGESssb2xwmrTolsa_1SPjyLCTY3K0K_IUfII05ECKtpHSacYaskqF8bpIQIgm56ei3pCR4cPWKvbdCLf4E80kSgFvNiXSYK-jvHnliAb89FE07VY1gaM-Dy0Ryb1NB1mlSoSh30yHFymommwY_MoWF3Rm2dQ6WZDDvmmpClTG13s9qEoRgm1L0Q9taiIjEzv6v5W1KAbQNDW7PpXki8cfJiE8L5LU0yQ\u0026h=WY6Fi274DLW6-iK3ATXkd9XeLMXeWgiXKy-YV1cIuwU+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/providers/Microsoft.ContainerInstance/locations/eastus/operations/36cf2e1c-cbf1-4a25-bf0c-032ddb97bf5d?api-version=2018-06-01\u0026t=638664368561950513\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQlkyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMElORlJBJTIwQ0ElMjAwMSg0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JZMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CWTJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSU5GUkElMjBDQSUyMDAxKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQlkyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMElORlJBJTIwQ0ElMjAwMSg0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JZMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3J0MB0GA1UdDgQWBBRk_38CqdKjPVylWUR4uuqhbFGeHTAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JsMIGdBgNVHSAEgZUwgZIwDAYKKwYBBAGCN3sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=77wu50ZpxXGdkZen_xpPRGHyzEDQBqYLbW-wEUvM5GsUpAPH_aqe8dw2y-FfgEg4MX424-WlvAZwF0ZWZP7Fn0cmZTMYsWhoXj6N2aGbD1e_LWjUaT_zapGESssb2xwmrTolsa_1SPjyLCTY3K0K_IUfII05ECKtpHSacYaskqF8bpIQIgm56ei3pCR4cPWKvbdCLf4E80kSgFvNiXSYK-jvHnliAb89FE07VY1gaM-Dy0Ryb1NB1mlSoSh30yHFymommwY_MoWF3Rm2dQ6WZDDvmmpClTG13s9qEoRgm1L0Q9taiIjEzv6v5W1KAbQNDW7PpXki8cfJiE8L5LU0yQ\u0026h=WY6Fi274DLW6-iK3ATXkd9XeLMXeWgiXKy-YV1cIuwU", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "46" ], + "x-ms-client-request-id": [ "690537c0-bbf3-4189-9d9a-9282de084cd2" ], + "CommandName": [ "Az.ContainerInstance.internal\\New-AzContainerGroup" ], + "FullCommandName": [ "New-AzContainerGroup_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "eastus:df3f3725-71f5-413d-9f48-7362e6660021" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "248e232b-2aa8-4359-a18d-6572c79ba0d3" ], + "x-ms-routing-request-id": [ "WESTUS2:20241105T205446Z:248e232b-2aa8-4359-a18d-6572c79ba0d3" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 3A6C242F73654B8D8668A603B5C1125E Ref B: CO6AA3150219011 Ref C: 2024-11-05T20:54:46Z" ], + "Date": [ "Tue, 05 Nov 2024 20:54:45 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "233" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/pool-reused-containergroup\",\"status\":\"Succeeded\",\"startTime\":\"2024-11-05T20:54:16.0463398Z\"}", + "isContentBase64": false + } + }, + "New-AzContainerGroupReuseFromStandbyPool+[NoContext]+Reuses a container group from a standby pool+$GET+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/pool-reused-containergroup?api-version=2024-05-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/pool-reused-containergroup?api-version=2024-05-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "47" ], + "x-ms-client-request-id": [ "690537c0-bbf3-4189-9d9a-9282de084cd2" ], + "CommandName": [ "Az.ContainerInstance.internal\\New-AzContainerGroup" ], + "FullCommandName": [ "New-AzContainerGroup_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "eastus:7487e8fd-ac06-406a-8649-647bb52a9df8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "dfd2b585-5f81-43d8-acde-80327b640d8f" ], + "x-ms-routing-request-id": [ "WESTUS2:20241105T205446Z:dfd2b585-5f81-43d8-acde-80327b640d8f" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 51EAEF9C7DB341529B825F3C5D004DBB Ref B: CO6AA3150219011 Ref C: 2024-11-05T20:54:46Z" ], + "Date": [ "Tue, 05 Nov 2024 20:54:46 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1932" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"sku\":\"Standard\",\"isCreatedFromStandbyPool\":true,\"provisioningState\":\"Succeeded\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"testcg\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[{\"protocol\":\"TCP\",\"port\":80}],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{\"key1\":\"value1\"}},\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2024-11-05T20:30:17.473Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2024-11-05T20:30:00Z\",\"lastTimestamp\":\"2024-11-05T20:30:00Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-11-05T20:30:07Z\",\"lastTimestamp\":\"2024-11-05T20:30:07Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-11-05T20:30:17Z\",\"lastTimestamp\":\"2024-11-05T20:30:17Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.0,\"cpu\":1.0}}}}],\"initContainers\":[],\"ipAddress\":{\"ports\":[{\"protocol\":\"TCP\",\"port\":80}],\"ip\":\"20.241.155.210\",\"type\":\"Public\"},\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"},\"containerGroupProfile\":{\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/azcliresources/providers/Microsoft.ContainerInstance/containerGroupProfiles/testcg\",\"revision\":1}},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/pool-reused-containergroup\",\"name\":\"pool-reused-containergroup\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/test/New-AzContainerGroupReuseFromStandbyPool.Tests.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/test/New-AzContainerGroupReuseFromStandbyPool.Tests.ps1 new file mode 100644 index 000000000000..6b15f94815b5 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/test/New-AzContainerGroupReuseFromStandbyPool.Tests.ps1 @@ -0,0 +1,33 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'New-AzContainerGroupReuseFromStandbyPool.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'New-AzContainerGroupReuseFromStandbyPool' { + It 'Reuses a container group from a standby pool' { + $container = New-AzContainerInstancenoDefaultObject -Name $env.reusedcontainerInstanceName -ConfigMapKeyValuePair @{"key1"="value1"} + $containerGroup = New-AzContainerGroup -ResourceGroupName $env.resourceGroupName -Name $env.reusedContainerGroupName -Container $container -Location $env.location -ContainerGroupProfileId $env.containerGroupProfileId -ContainerGroupProfileRevision $env.containerGroupProfileRevision -StandbyPoolProfileId $env.standbyPoolProfileId + + $containerGroup | Should -Not -Be $null + $containerGroup.Name | Should -Be $env.reusedContainerGroupName + $containerGroup.Location | Should -Be $env.location + + $containerGroup.Container | Should -Not -Be $null + $containerGroup.Container.Count | Should -Be 1 + $containerGroup.Container[0].Name | Should -Be $env.reusedcontainerInstanceName + $containerGroup.Container[0].Image | Should -Be $env.image + $containerGroup.Container[0].RequestCpu | Should -Be 1 + $containerGroup.Container[0].RequestMemoryInGb | Should -Be 1 + + $containerGroup.OSType | Should -Be $env.osType + $containerGroup.IsCreatedFromStandbyPool | Should -Be True + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/test/New-AzContainerGroupSpotPriority.Recording.json b/src/ContainerInstance/ContainerInstance.Autorest/test/New-AzContainerGroupSpotPriority.Recording.json index ecc711622dd5..bdb8cfa7dd2f 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/test/New-AzContainerGroupSpotPriority.Recording.json +++ b/src/ContainerInstance/ContainerInstance.Autorest/test/New-AzContainerGroupSpotPriority.Recording.json @@ -1,15 +1,15 @@ { - "New-AzContainerGroupSpotPriority+[NoContext]+Creates a container group with Spot Priority using latest nginx image+$PUT+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-spot-priority-cgqj924?api-version=2022-10-01-preview+1": { + "New-AzContainerGroupSpotPriority+[NoContext]+Creates a container group with Spot Priority using latest nginx image+$PUT+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-spot-priority-cgw8oq1?api-version=2024-05-01-preview+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-spot-priority-cgqj924?api-version=2022-10-01-preview", - "Content": "{\n \"location\": \"eastus\",\n \"properties\": {\n \"containers\": [\n {\n \"properties\": {\n \"resources\": {\n \"requests\": {\n \"memoryInGB\": 1.5,\n \"cpu\": 1\n }\n },\n \"image\": \"nginx\",\n \"ports\": [\n {\n \"port\": 80\n }\n ]\n },\n \"name\": \"bez-test-ci\"\n }\n ],\n \"restartPolicy\": \"Never\",\n \"osType\": \"Linux\",\n \"priority\": \"Spot\"\n }\n}", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-spot-priority-cgw8oq1?api-version=2024-05-01-preview", + "Content": "{\n \"location\": \"eastus\",\n \"properties\": {\n \"containers\": [\n {\n \"properties\": {\n \"resources\": {\n \"requests\": {\n \"memoryInGB\": 1.5,\n \"cpu\": 1\n }\n },\n \"image\": \"mcr.microsoft.com/azuredocs/aci-helloworld:latest\"\n },\n \"name\": \"bez-test-ci\"\n }\n ],\n \"restartPolicy\": \"Never\",\n \"osType\": \"Linux\",\n \"priority\": \"Spot\"\n }\n}", "isContentBase64": false, "Headers": { }, "ContentHeaders": { "Content-Type": [ "application/json" ], - "Content-Length": [ "481" ] + "Content-Length": [ "438" ] } }, "Response": { @@ -17,40 +17,43 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/providers/Microsoft.ContainerInstance/locations/eastus/operations/da015a87-c848-4464-b94d-4c01bc8b51e5?api-version=2018-06-01" ], - "x-ms-ratelimit-remaining-subscription-resource-requests-pt5m": [ "98" ], - "x-ms-ratelimit-remaining-subscription-resource-requests-pt1h": [ "298" ], - "x-ms-request-id": [ "eastus:da015a87-c848-4464-b94d-4c01bc8b51e5" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1180" ], - "x-ms-correlation-request-id": [ "6372d9c3-2323-4b75-9350-bf0b7b4f40bd" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T001007Z:6372d9c3-2323-4b75-9350-bf0b7b4f40bd" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/providers/Microsoft.ContainerInstance/locations/eastus/operations/17193f96-5855-4548-b00b-370337e38e37?api-version=2018-06-01\u0026t=638659479959336821\u0026c=MIIHhzCCBm-gAwIBAgITHgVsohlR2527oAb3YwAABWyiGTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTIyMTIzNzU1WhcNMjUwMzIxMTIzNzU1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMhrLEJmsmtpzYzyjkwosX72drFxelF_0kAmuW7jzqQUwb3Vbkmt3AMdawBA7iPG-j-_iaEVRdn5iaEuJE6hSge15_CbeDkRt-qHgospNLcjh6GjynbLyFCQH_IkKY4Mc0yIlKxilQSCf2V6ah2w7S1CyC5zwZroBYavu5w0ZL02jRKMTNVzB03DnGhQGJ7gJbtKJ9AbjVcFwFTpT0Z0Yo-sLpwoVvADWng0JznFSekROEXCF_U3gHMssCctipkbrivaRFNKL3OjHjvuPxD8gsBo2BR_swq3Eyj-68_1B2-zYVD0d811pP8URR-43YYAMXO2Us1Uw6dn-b351XnW8JECAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMi5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNi5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDIuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAyLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA2LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMi5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNi5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDIuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3J0MB0GA1UdDgQWBBTLk-Eh1Xfk5Jotz1gl5hr4G-tKhTAOBgNVHQ8BAf8EBAMCBaAwggEmBgNVHR8EggEdMIIBGTCCARWgggERoIIBDYY_aHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JsMIGdBgNVHSAEgZUwgZIwDAYKKwYBBAGCN3sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAG22HO9nSE7AYf9OZGmPXw_SpE0CIxcQiahWc3LG3zRYLxmiKsYYlN9_r_6fPeEmIs7P7xm7g_xAAHLymI5BQDzGsW5GzAzYVOwolJBj3EcX1bxxIqeEgLvHNmYOr4D5MZFv14TGMHziu0TzPAbbVe9-DmMbrqs1mszrnuUiHTsmKE2oNmv4gjZMYSJAdsUzkjxQEa8t1t7FUEvbDkWkYSdqK0-OoTDVLsRVwRNk9XJ04coDgWql1-iv6bYNXyhC0L_-bdTOs_Gnzu-tFEA2we7Zkew_fhDuJwGTDnhaqvhush0SPJuFmoYBvmEzEJsc_Bjay2DrOHiLTopNoBJVrt8\u0026s=swG_-Ru-HrlXYyLSspIZUnPh69SiBIvW6vFL3Noefcu1mGzTr_F3PBBmMKVwkIV6yLonFqpNk1RyYaPm8rvZWXLJcNgZX_Kt_3luVZKcJNCDL62jR5alDJ4iMxhZo9aMNz_MOXpdoZDhFGfvFrAcRbHgCJz9pcdjRYBpkavtSM5wnTlKUDARVXzBYZexWHHPx6OAdATGZ8ZcUsd-WnHNVgiq7_csR0xmsvWjxQCdstoGwA_GCGOB75ANIrNhqijGWRFUQk9xEcWhcbJKhUa3Njvy0vK8YugnFbOTI1o363Rm38bG_ecVWgWE6FMoec4ilOJKONC89tCJrbFbYT1sEQ\u0026h=sFYnyAeyC2ZUFDIXJjsBHKWS89jxIAyef2LRdUVZn3U" ], + "x-ms-ratelimit-remaining-subscription-resource-requests-pt5m": [ "1499" ], + "x-ms-ratelimit-remaining-subscription-resource-requests-pt1h": [ "14999" ], + "x-ms-request-id": [ "eastus:17193f96-5855-4548-b00b-370337e38e37" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], + "x-ms-correlation-request-id": [ "394d2c25-6c5e-47fd-bf33-90c04e462d62" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T050635Z:394d2c25-6c5e-47fd-bf33-90c04e462d62" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:10:07 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 7E8A7A43910E4AB389345B4C9F978632 Ref B: MAA201060514031 Ref C: 2024-10-31T05:06:33Z" ], + "Date": [ "Thu, 31 Oct 2024 05:06:35 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "637" ], + "Content-Length": [ "808" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Pending\",\"containers\":[{\"name\":\"bez-test-ci\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"restartPolicy\":\"Never\",\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Pending\"},\"priority\":\"Spot\"},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-spot-priority-cgqj924\",\"name\":\"test-spot-priority-cgqj924\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"}", + "Content": "{\"properties\":{\"sku\":\"Standard\",\"isCreatedFromStandbyPool\":false,\"provisioningState\":\"Pending\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"bez-test-ci\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{}},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"restartPolicy\":\"Never\",\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Pending\"},\"priority\":\"Spot\"},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-spot-priority-cgw8oq1\",\"name\":\"test-spot-priority-cgw8oq1\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"}", "isContentBase64": false } }, - "New-AzContainerGroupSpotPriority+[NoContext]+Creates a container group with Spot Priority using latest nginx image+$GET+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/providers/Microsoft.ContainerInstance/locations/eastus/operations/da015a87-c848-4464-b94d-4c01bc8b51e5?api-version=2018-06-01+2": { + "New-AzContainerGroupSpotPriority+[NoContext]+Creates a container group with Spot Priority using latest nginx image+$GET+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/providers/Microsoft.ContainerInstance/locations/eastus/operations/17193f96-5855-4548-b00b-370337e38e37?api-version=2018-06-01\u0026t=638659479959336821\u0026c=MIIHhzCCBm-gAwIBAgITHgVsohlR2527oAb3YwAABWyiGTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTIyMTIzNzU1WhcNMjUwMzIxMTIzNzU1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMhrLEJmsmtpzYzyjkwosX72drFxelF_0kAmuW7jzqQUwb3Vbkmt3AMdawBA7iPG-j-_iaEVRdn5iaEuJE6hSge15_CbeDkRt-qHgospNLcjh6GjynbLyFCQH_IkKY4Mc0yIlKxilQSCf2V6ah2w7S1CyC5zwZroBYavu5w0ZL02jRKMTNVzB03DnGhQGJ7gJbtKJ9AbjVcFwFTpT0Z0Yo-sLpwoVvADWng0JznFSekROEXCF_U3gHMssCctipkbrivaRFNKL3OjHjvuPxD8gsBo2BR_swq3Eyj-68_1B2-zYVD0d811pP8URR-43YYAMXO2Us1Uw6dn-b351XnW8JECAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMi5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNi5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDIuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAyLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA2LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMi5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNi5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDIuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3J0MB0GA1UdDgQWBBTLk-Eh1Xfk5Jotz1gl5hr4G-tKhTAOBgNVHQ8BAf8EBAMCBaAwggEmBgNVHR8EggEdMIIBGTCCARWgggERoIIBDYY_aHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JsMIGdBgNVHSAEgZUwgZIwDAYKKwYBBAGCN3sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAG22HO9nSE7AYf9OZGmPXw_SpE0CIxcQiahWc3LG3zRYLxmiKsYYlN9_r_6fPeEmIs7P7xm7g_xAAHLymI5BQDzGsW5GzAzYVOwolJBj3EcX1bxxIqeEgLvHNmYOr4D5MZFv14TGMHziu0TzPAbbVe9-DmMbrqs1mszrnuUiHTsmKE2oNmv4gjZMYSJAdsUzkjxQEa8t1t7FUEvbDkWkYSdqK0-OoTDVLsRVwRNk9XJ04coDgWql1-iv6bYNXyhC0L_-bdTOs_Gnzu-tFEA2we7Zkew_fhDuJwGTDnhaqvhush0SPJuFmoYBvmEzEJsc_Bjay2DrOHiLTopNoBJVrt8\u0026s=swG_-Ru-HrlXYyLSspIZUnPh69SiBIvW6vFL3Noefcu1mGzTr_F3PBBmMKVwkIV6yLonFqpNk1RyYaPm8rvZWXLJcNgZX_Kt_3luVZKcJNCDL62jR5alDJ4iMxhZo9aMNz_MOXpdoZDhFGfvFrAcRbHgCJz9pcdjRYBpkavtSM5wnTlKUDARVXzBYZexWHHPx6OAdATGZ8ZcUsd-WnHNVgiq7_csR0xmsvWjxQCdstoGwA_GCGOB75ANIrNhqijGWRFUQk9xEcWhcbJKhUa3Njvy0vK8YugnFbOTI1o363Rm38bG_ecVWgWE6FMoec4ilOJKONC89tCJrbFbYT1sEQ\u0026h=sFYnyAeyC2ZUFDIXJjsBHKWS89jxIAyef2LRdUVZn3U+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/providers/Microsoft.ContainerInstance/locations/eastus/operations/da015a87-c848-4464-b94d-4c01bc8b51e5?api-version=2018-06-01", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/providers/Microsoft.ContainerInstance/locations/eastus/operations/17193f96-5855-4548-b00b-370337e38e37?api-version=2018-06-01\u0026t=638659479959336821\u0026c=MIIHhzCCBm-gAwIBAgITHgVsohlR2527oAb3YwAABWyiGTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTIyMTIzNzU1WhcNMjUwMzIxMTIzNzU1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMhrLEJmsmtpzYzyjkwosX72drFxelF_0kAmuW7jzqQUwb3Vbkmt3AMdawBA7iPG-j-_iaEVRdn5iaEuJE6hSge15_CbeDkRt-qHgospNLcjh6GjynbLyFCQH_IkKY4Mc0yIlKxilQSCf2V6ah2w7S1CyC5zwZroBYavu5w0ZL02jRKMTNVzB03DnGhQGJ7gJbtKJ9AbjVcFwFTpT0Z0Yo-sLpwoVvADWng0JznFSekROEXCF_U3gHMssCctipkbrivaRFNKL3OjHjvuPxD8gsBo2BR_swq3Eyj-68_1B2-zYVD0d811pP8URR-43YYAMXO2Us1Uw6dn-b351XnW8JECAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMi5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNi5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDIuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAyLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA2LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMi5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNi5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDIuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3J0MB0GA1UdDgQWBBTLk-Eh1Xfk5Jotz1gl5hr4G-tKhTAOBgNVHQ8BAf8EBAMCBaAwggEmBgNVHR8EggEdMIIBGTCCARWgggERoIIBDYY_aHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JsMIGdBgNVHSAEgZUwgZIwDAYKKwYBBAGCN3sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAG22HO9nSE7AYf9OZGmPXw_SpE0CIxcQiahWc3LG3zRYLxmiKsYYlN9_r_6fPeEmIs7P7xm7g_xAAHLymI5BQDzGsW5GzAzYVOwolJBj3EcX1bxxIqeEgLvHNmYOr4D5MZFv14TGMHziu0TzPAbbVe9-DmMbrqs1mszrnuUiHTsmKE2oNmv4gjZMYSJAdsUzkjxQEa8t1t7FUEvbDkWkYSdqK0-OoTDVLsRVwRNk9XJ04coDgWql1-iv6bYNXyhC0L_-bdTOs_Gnzu-tFEA2we7Zkew_fhDuJwGTDnhaqvhush0SPJuFmoYBvmEzEJsc_Bjay2DrOHiLTopNoBJVrt8\u0026s=swG_-Ru-HrlXYyLSspIZUnPh69SiBIvW6vFL3Noefcu1mGzTr_F3PBBmMKVwkIV6yLonFqpNk1RyYaPm8rvZWXLJcNgZX_Kt_3luVZKcJNCDL62jR5alDJ4iMxhZo9aMNz_MOXpdoZDhFGfvFrAcRbHgCJz9pcdjRYBpkavtSM5wnTlKUDARVXzBYZexWHHPx6OAdATGZ8ZcUsd-WnHNVgiq7_csR0xmsvWjxQCdstoGwA_GCGOB75ANIrNhqijGWRFUQk9xEcWhcbJKhUa3Njvy0vK8YugnFbOTI1o363Rm38bG_ecVWgWE6FMoec4ilOJKONC89tCJrbFbYT1sEQ\u0026h=sFYnyAeyC2ZUFDIXJjsBHKWS89jxIAyef2LRdUVZn3U", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "78" ], - "x-ms-client-request-id": [ "e433615b-3956-40ac-b438-33efc5864bb6" ], + "x-ms-unique-id": [ "80" ], + "x-ms-client-request-id": [ "33d0974a-8098-4e1a-91ae-0056493155c4" ], "CommandName": [ "Az.ContainerInstance.internal\\New-AzContainerGroup" ], "FullCommandName": [ "New-AzContainerGroup_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ] }, "ContentHeaders": { } @@ -60,38 +63,40 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-request-id": [ "eastus:17a7736e-35f7-4f8c-9c08-479bc093d0a3" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11944" ], - "x-ms-correlation-request-id": [ "12e1489d-abfa-4b13-988f-6cf3585ff4e5" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T001037Z:12e1489d-abfa-4b13-988f-6cf3585ff4e5" ], + "x-ms-request-id": [ "eastus:768cbae2-e288-4f87-b2cb-6a862c4ca746" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "2dd65324-d028-4ee7-8737-1534a320f24e" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T050706Z:2dd65324-d028-4ee7-8737-1534a320f24e" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:10:37 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 3D909FADCC5A4BAEACE70F7D2DF7D2F7 Ref B: MAA201060514031 Ref C: 2024-10-31T05:07:06Z" ], + "Date": [ "Thu, 31 Oct 2024 05:07:05 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "734" ], + "Content-Length": [ "808" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-spot-priority-cgqj924\",\"status\":\"Succeeded\",\"startTime\":\"2023-02-18T00:10:06.9525231Z\",\"properties\":{\"events\":[{\"count\":1,\"firstTimestamp\":\"2023-02-18T00:10:13Z\",\"lastTimestamp\":\"2023-02-18T00:10:13Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-18T00:10:15Z\",\"lastTimestamp\":\"2023-02-18T00:10:15Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"}]}}", + "Content": "{\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-spot-priority-cgw8oq1\",\"status\":\"Succeeded\",\"startTime\":\"2024-10-31T05:06:35.5731376Z\",\"properties\":{\"events\":[{\"count\":1,\"firstTimestamp\":\"2024-10-31T05:06:40Z\",\"lastTimestamp\":\"2024-10-31T05:06:40Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T05:06:41Z\",\"lastTimestamp\":\"2024-10-31T05:06:41Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"}]}}", "isContentBase64": false } }, - "New-AzContainerGroupSpotPriority+[NoContext]+Creates a container group with Spot Priority using latest nginx image+$GET+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-spot-priority-cgqj924?api-version=2022-10-01-preview+3": { + "New-AzContainerGroupSpotPriority+[NoContext]+Creates a container group with Spot Priority using latest nginx image+$GET+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-spot-priority-cgw8oq1?api-version=2024-05-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-spot-priority-cgqj924?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-spot-priority-cgw8oq1?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "79" ], - "x-ms-client-request-id": [ "e433615b-3956-40ac-b438-33efc5864bb6" ], + "x-ms-unique-id": [ "81" ], + "x-ms-client-request-id": [ "33d0974a-8098-4e1a-91ae-0056493155c4" ], "CommandName": [ "Az.ContainerInstance.internal\\New-AzContainerGroup" ], "FullCommandName": [ "New-AzContainerGroup_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ] }, "ContentHeaders": { } @@ -101,21 +106,23 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-request-id": [ "eastus:054766ff-8e3c-4cc2-935c-62132dec792e" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11943" ], - "x-ms-correlation-request-id": [ "73797d02-10e5-4237-b9f4-29ba5eba7b86" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T001038Z:73797d02-10e5-4237-b9f4-29ba5eba7b86" ], + "x-ms-request-id": [ "eastus:88ae698b-da34-46be-8207-12e43dbbb939" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "147c45a1-2686-4dff-a337-3fc70e54918a" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T050706Z:147c45a1-2686-4dff-a337-3fc70e54918a" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:10:37 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 9E4DAE6431E4489F8AC4F381F6A4AD0D Ref B: MAA201060514031 Ref C: 2024-10-31T05:07:06Z" ], + "Date": [ "Thu, 31 Oct 2024 05:07:06 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1405" ], + "Content-Length": [ "1649" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"bez-test-ci\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2023-02-18T00:10:26.003Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2023-02-18T00:10:13Z\",\"lastTimestamp\":\"2023-02-18T00:10:13Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-18T00:10:15Z\",\"lastTimestamp\":\"2023-02-18T00:10:15Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-18T00:10:26Z\",\"lastTimestamp\":\"2023-02-18T00:10:26Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"restartPolicy\":\"Never\",\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"},\"priority\":\"Spot\"},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-spot-priority-cgqj924\",\"name\":\"test-spot-priority-cgqj924\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"}", + "Content": "{\"properties\":{\"sku\":\"Standard\",\"isCreatedFromStandbyPool\":false,\"provisioningState\":\"Succeeded\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"bez-test-ci\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{}},\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2024-10-31T05:06:53.81Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2024-10-31T05:06:40Z\",\"lastTimestamp\":\"2024-10-31T05:06:40Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T05:06:41Z\",\"lastTimestamp\":\"2024-10-31T05:06:41Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T05:06:53Z\",\"lastTimestamp\":\"2024-10-31T05:06:53Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"restartPolicy\":\"Never\",\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"},\"priority\":\"Spot\"},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-spot-priority-cgw8oq1\",\"name\":\"test-spot-priority-cgw8oq1\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"}", "isContentBase64": false } } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/test/New-AzContainerInstanceContainerGroupProfile.Recording.json b/src/ContainerInstance/ContainerInstance.Autorest/test/New-AzContainerInstanceContainerGroupProfile.Recording.json new file mode 100644 index 000000000000..ecf70f66d3c0 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/test/New-AzContainerInstanceContainerGroupProfile.Recording.json @@ -0,0 +1,154 @@ +{ + "New-AzContainerInstanceContainerGroupProfile+[NoContext]+Creates a container group profile using latest standard hello world image and requests a public IP address with opening ports+$PUT+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroupProfiles/test-cgplnywg?api-version=2024-05-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroupProfiles/test-cgplnywg?api-version=2024-05-01-preview", + "Content": "{\n \"location\": \"eastus\",\n \"properties\": {\n \"ipAddress\": {\n \"type\": \"Public\"\n },\n \"containers\": [\n {\n \"properties\": {\n \"resources\": {\n \"requests\": {\n \"memoryInGB\": 1.5,\n \"cpu\": 1\n }\n },\n \"image\": \"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\n \"ports\": [\n {\n \"protocol\": \"TCP\",\n \"port\": 8000\n },\n {\n \"protocol\": \"TCP\",\n \"port\": 8001\n }\n ]\n },\n \"name\": \"bez-test-ci\"\n }\n ],\n \"restartPolicy\": \"Never\",\n \"osType\": \"Linux\"\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "674" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "eastus:bacbd227-6fb7-4282-bb4f-5fb417acf3d6" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], + "x-ms-correlation-request-id": [ "4cb00f11-c05c-42b9-9c0b-acbfc6e04013" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T050725Z:4cb00f11-c05c-42b9-9c0b-acbfc6e04013" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: B107F0C8069847C0B43A3F306BB858BB Ref B: MAA201060514031 Ref C: 2024-10-31T05:07:22Z" ], + "Date": [ "Thu, 31 Oct 2024 05:07:24 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "604" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"containers\":[{\"name\":\"bez-test-ci\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[{\"protocol\":\"TCP\",\"port\":8000},{\"protocol\":\"TCP\",\"port\":8001}],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"restartPolicy\":\"Never\",\"ipAddress\":{\"type\":\"Public\"},\"osType\":\"Linux\",\"revision\":1},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroupProfiles/test-cgplnywg\",\"name\":\"test-cgplnywg\",\"type\":\"Microsoft.ContainerInstance/containerGroupProfiles\",\"location\":\"eastus\"}", + "isContentBase64": false + } + }, + "New-AzContainerInstanceContainerGroupProfile+[NoContext]+Creates a container group profile and runs a custom script inside the container.+$PUT+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroupProfiles/test-cgpcb1wl?api-version=2024-05-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroupProfiles/test-cgpcb1wl?api-version=2024-05-01-preview", + "Content": "{\n \"location\": \"eastus\",\n \"properties\": {\n \"containers\": [\n {\n \"properties\": {\n \"resources\": {\n \"requests\": {\n \"memoryInGB\": 1.5,\n \"cpu\": 1\n }\n },\n \"image\": \"alpine\",\n \"command\": [ \"echo hello\" ],\n \"environmentVariables\": [\n {\n \"name\": \"env1\",\n \"value\": \"value1\"\n },\n {\n \"name\": \"env2\",\n \"secureValue\": \"value2\"\n }\n ]\n },\n \"name\": \"bez-test-ci\"\n }\n ],\n \"osType\": \"Linux\"\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "616" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "eastus:c5fc9eda-4a21-4382-acb6-ca72304ce4d7" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "798" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "11998" ], + "x-ms-correlation-request-id": [ "bf271fe5-1ba0-4127-8b68-b35d123a4910" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T050726Z:bf271fe5-1ba0-4127-8b68-b35d123a4910" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 431FB79AA9314CC78F0E03099E77A2F4 Ref B: MAA201060514031 Ref C: 2024-10-31T05:07:25Z" ], + "Date": [ "Thu, 31 Oct 2024 05:07:25 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "534" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"containers\":[{\"name\":\"bez-test-ci\",\"properties\":{\"image\":\"alpine\",\"command\":[\"echo hello\"],\"environmentVariables\":[{\"name\":\"env1\",\"value\":\"value1\"},{\"name\":\"env2\"}],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"osType\":\"Linux\",\"revision\":1},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroupProfiles/test-cgpcb1wl\",\"name\":\"test-cgpcb1wl\",\"type\":\"Microsoft.ContainerInstance/containerGroupProfiles\",\"location\":\"eastus\"}", + "isContentBase64": false + } + }, + "New-AzContainerInstanceContainerGroupProfile+[NoContext]+Creates a container group profile with Spot Priority using latest standard hello world image+$PUT+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroupProfiles/test-spot-priority-cgpzmt64?api-version=2024-05-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroupProfiles/test-spot-priority-cgpzmt64?api-version=2024-05-01-preview", + "Content": "{\n \"location\": \"eastus\",\n \"properties\": {\n \"containers\": [\n {\n \"properties\": {\n \"resources\": {\n \"requests\": {\n \"memoryInGB\": 1.5,\n \"cpu\": 1\n }\n },\n \"image\": \"mcr.microsoft.com/azuredocs/aci-helloworld:latest\"\n },\n \"name\": \"bez-test-ci\"\n }\n ],\n \"restartPolicy\": \"Never\",\n \"osType\": \"Linux\",\n \"priority\": \"Spot\"\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "438" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "eastus:b381ff73-83da-4314-b7f5-236a7d720446" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], + "x-ms-correlation-request-id": [ "a061bb1e-550c-42c3-93c5-7f6cbdd6ef4c" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T050729Z:a061bb1e-550c-42c3-93c5-7f6cbdd6ef4c" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 2E61F4EB29AB48E9A2D1F9A4D6CBF501 Ref B: MAA201060514031 Ref C: 2024-10-31T05:07:26Z" ], + "Date": [ "Thu, 31 Oct 2024 05:07:28 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "548" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"containers\":[{\"name\":\"bez-test-ci\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"restartPolicy\":\"Never\",\"osType\":\"Linux\",\"priority\":\"Spot\",\"revision\":1},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroupProfiles/test-spot-priority-cgpzmt64\",\"name\":\"test-spot-priority-cgpzmt64\",\"type\":\"Microsoft.ContainerInstance/containerGroupProfiles\",\"location\":\"eastus\"}", + "isContentBase64": false + } + }, + "New-AzContainerInstanceContainerGroupProfile+[NoContext]+Creates a container group profile with Confidential Sku using latest standard hello world image+$PUT+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroupProfiles/test-confidential-containergroupprofileiycrg?api-version=2024-05-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroupProfiles/test-confidential-containergroupprofileiycrg?api-version=2024-05-01-preview", + "Content": "{\n \"location\": \"eastus\",\n \"properties\": {\n \"confidentialComputeProperties\": {\n \"ccePolicy\": \"eyJhbGxvd19hbGwiOiB0cnVlLCAiY29udGFpbmVycyI6IHsibGVuZ3RoIjogMCwgImVsZW1lbnRzIjogbnVsbH19\"\n },\n \"containers\": [\n {\n \"properties\": {\n \"resources\": {\n \"requests\": {\n \"memoryInGB\": 1.5,\n \"cpu\": 1\n }\n },\n \"image\": \"mcr.microsoft.com/azuredocs/aci-helloworld:latest\"\n },\n \"name\": \"bez-test-ci\"\n }\n ],\n \"osType\": \"Linux\",\n \"sku\": \"confidential\"\n }\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "567" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "eastus:c6d12f62-19db-4e9c-bc4c-118e6e7c70bf" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], + "x-ms-correlation-request-id": [ "55bfd7ba-cd64-4134-9980-3501b812862a" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T050732Z:55bfd7ba-cd64-4134-9980-3501b812862a" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: FBCB0E40F0E84F9A886E3A0D077ADDF6 Ref B: MAA201060514031 Ref C: 2024-10-31T05:07:29Z" ], + "Date": [ "Thu, 31 Oct 2024 05:07:31 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "698" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"sku\":\"Confidential\",\"containers\":[{\"name\":\"bez-test-ci\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"osType\":\"Linux\",\"confidentialComputeProperties\":{\"ccePolicy\":\"eyJhbGxvd19hbGwiOiB0cnVlLCAiY29udGFpbmVycyI6IHsibGVuZ3RoIjogMCwgImVsZW1lbnRzIjogbnVsbH19\"},\"revision\":1},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroupProfiles/test-confidential-containergroupprofileiycrg\",\"name\":\"test-confidential-containergroupprofileiycrg\",\"type\":\"Microsoft.ContainerInstance/containerGroupProfiles\",\"location\":\"eastus\"}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/test/New-AzContainerInstanceContainerGroupProfile.Tests.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/test/New-AzContainerInstanceContainerGroupProfile.Tests.ps1 new file mode 100644 index 000000000000..7f5dc00593a9 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/test/New-AzContainerInstanceContainerGroupProfile.Tests.ps1 @@ -0,0 +1,96 @@ +if(($null -eq $TestName) -or ($TestName -contains 'New-AzContainerInstanceContainerGroupProfile')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzContainerInstanceContainerGroupProfile.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'New-AzContainerInstanceContainerGroupProfile' { + It 'Creates a container group profile using latest standard hello world image and requests a public IP address with opening ports' { + $port1 = New-AzContainerInstancePortObject -Port $env.port1 -Protocol TCP + $port2 = New-AzContainerInstancePortObject -Port $env.port2 -Protocol TCP + $container = New-AzContainerInstanceObject -Name $env.containerInstanceName -Image $env.image -RequestCpu 1 -RequestMemoryInGb 1.5 -Port @($port1, $port2) + $containerGroupProfile = New-AzContainerInstanceContainerGroupProfile -ResourceGroupName $env.resourceGroupName -Name $env.containerGroupProfileName1 -Location $env.location -Container $container -OsType $env.osType -RestartPolicy $env.restartPolicy -IpAddressType Public + + $containerGroupProfile | Should -Not -Be $null + $containerGroupProfile.Name | Should -Be $env.containerGroupProfileName1 + $containerGroupProfile.Location | Should -Be $env.location + + $containerGroupProfile.Container | Should -Not -Be $null + $containerGroupProfile.Container.Count | Should -Be 1 + $containerGroupProfile.Container[0].Name | Should -Be $env.containerInstanceName + $containerGroupProfile.Container[0].Image | Should -Be $env.image + $containerGroupProfile.Container[0].RequestCpu | Should -Be 1 + $containerGroupProfile.Container[0].RequestMemoryInGb | Should -Be 1.5 + + $containerGroupProfile.OSType | Should -Be $env.osType + $containerGroupProfile.RestartPolicy | Should -Be $env.restartPolicy + $containerGroupProfile.IPAddressType | Should -Be "Public" + + $containerGroupProfile.Revision | Should -Be 1 + } + + It 'Creates a container group profile and runs a custom script inside the container.' { + $env1 = New-AzContainerInstanceEnvironmentVariableObject -Name "env1" -Value "value1" + $env2 = New-AzContainerInstanceEnvironmentVariableObject -Name "env2" -SecureValue (ConvertTo-SecureString -String "value2" -AsPlainText -Force) + $container = New-AzContainerInstanceObject -Name $env.containerInstanceName -Image alpine -RequestCpu 1 -RequestMemoryInGb 1.5 -Command "echo hello" -EnvironmentVariable @($env1, $env2) + $containerGroupProfile = New-AzContainerInstanceContainerGroupProfile -ResourceGroupName $env.resourceGroupName -Name $env.containerGroupProfileName2 -Location $env.location -Container $container -OsType Linux + + $containerGroupProfile.Container[0].Command.Count | Should -Be 1 + $containerGroupProfile.Container[0].Command[0] | Should -Be "echo hello" + + $containerGroupProfile.Container[0].EnvironmentVariable.Count | Should -Be 2 + $containerGroupProfile.Container[0].EnvironmentVariable[0].Name | Should -Be "env1" + $containerGroupProfile.Container[0].EnvironmentVariable[0].Value | Should -Be "value1" + $containerGroupProfile.Container[0].EnvironmentVariable[1].Name | Should -Be "env2" + } + + It 'Creates a container group profile with Spot Priority using latest standard hello world image' { + $container = New-AzContainerInstanceObject -Name $env.containerInstanceName -Image $env.image -RequestCpu 1 -RequestMemoryInGb 1.5 + $containerGroupProfile = New-AzContainerInstanceContainerGroupProfile -ResourceGroupName $env.resourceGroupName -Name $env.spotPriorityContainerGroupProfileName -Location $env.location -Container $container -OsType $env.osType -RestartPolicy $env.restartPolicy -Priority $env.spotPriority + + $containerGroupProfile | Should -Not -Be $null + $containerGroupProfile.Name | Should -Be $env.spotPriorityContainerGroupProfileName + $containerGroupProfile.Location | Should -Be $env.location + + $containerGroupProfile.Container | Should -Not -Be $null + $containerGroupProfile.Container.Count | Should -Be 1 + $containerGroupProfile.Container[0].Name | Should -Be $env.containerInstanceName + $containerGroupProfile.Container[0].Image | Should -Be $env.image + $containerGroupProfile.Container[0].RequestCpu | Should -Be 1 + $containerGroupProfile.Container[0].RequestMemoryInGb | Should -Be 1.5 + + $containerGroupProfile.OSType | Should -Be $env.osType + $containerGroupProfile.RestartPolicy | Should -Be $env.restartPolicy + $containerGroupProfile.Priority | Should -Be $env.spotPriority + } + + It 'Creates a container group profile with Confidential Sku using latest standard hello world image' { + $container = New-AzContainerInstanceObject -Name $env.containerInstanceName -Image $env.image -RequestCpu 1 -RequestMemoryInGb 1.5 + $containerGroupProfile = New-AzContainerInstanceContainerGroupProfile -ResourceGroupName $env.resourceGroupName -Name $env.confidentialContainerGroupProfileName -Location $env.location -Container $container -OsType $env.osType -Sku $env.confidentialSku -ConfidentialComputePropertyCcePolicy $env.confidentialComputePropertyCcePolicy + + $containerGroupProfile | Should -Not -Be $null + $containerGroupProfile.Name | Should -Be $env.confidentialContainerGroupProfileName + $containerGroupProfile.Location | Should -Be $env.location + + $containerGroupProfile.Container | Should -Not -Be $null + $containerGroupProfile.Container.Count | Should -Be 1 + $containerGroupProfile.Container[0].Name | Should -Be $env.containerInstanceName + $containerGroupProfile.Container[0].Image | Should -Be $env.image + $containerGroupProfile.Container[0].RequestCpu | Should -Be 1 + $containerGroupProfile.Container[0].RequestMemoryInGb | Should -Be 1.5 + + $containerGroupProfile.OSType | Should -Be $env.osType + $containerGroupProfile.Sku | Should -Be $env.confidentialSku + $containerGroupProfile.ConfidentialComputePropertyCcePolicy | Should -Not -Be $null + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/test/New-AzContainerInstanceNoDefaultObject.Tests.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/test/New-AzContainerInstanceNoDefaultObject.Tests.ps1 new file mode 100644 index 000000000000..f777f75002e4 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/test/New-AzContainerInstanceNoDefaultObject.Tests.ps1 @@ -0,0 +1,21 @@ +if(($null -eq $TestName) -or ($TestName -contains 'New-AzContainerInstanceNoDefaultObject')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzContainerInstanceNoDefaultObject.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'New-AzContainerInstanceNoDefaultObject' { + It '__AllParameterSets' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/ContainerInstance/ContainerInstance.Autorest/test/Remove-AzContainerGroup.Recording.json b/src/ContainerInstance/ContainerInstance.Autorest/test/Remove-AzContainerGroup.Recording.json index 87666768b826..d4e45e2ac3c6 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/test/Remove-AzContainerGroup.Recording.json +++ b/src/ContainerInstance/ContainerInstance.Autorest/test/Remove-AzContainerGroup.Recording.json @@ -1,17 +1,17 @@ { - "Remove-AzContainerGroup+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg-remove1?api-version=2022-10-01-preview+1": { + "Remove-AzContainerGroup+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg-remove1?api-version=2024-05-01-preview+1": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg-remove1?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg-remove1?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "80" ], - "x-ms-client-request-id": [ "f2a864f3-251b-4403-b360-ba5c3998f742" ], + "x-ms-unique-id": [ "86" ], + "x-ms-client-request-id": [ "ee4acafc-aa43-462a-b2b9-8573a02f09c4" ], "CommandName": [ "Remove-AzContainerGroup" ], "FullCommandName": [ "Remove-AzContainerGroup_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -22,39 +22,41 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-ratelimit-remaining-subscription-resource-requests-pt5m": [ "99" ], - "x-ms-ratelimit-remaining-subscription-resource-requests-pt1h": [ "299" ], - "x-ms-request-id": [ "eastus:257d8f57-753e-4dd2-8c7a-11b3b6c9daed" ], - "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], - "x-ms-correlation-request-id": [ "8272ec48-2bee-4840-aeb4-750de0afd3c8" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T001221Z:8272ec48-2bee-4840-aeb4-750de0afd3c8" ], + "x-ms-ratelimit-remaining-subscription-resource-requests-pt5m": [ "1499" ], + "x-ms-ratelimit-remaining-subscription-resource-requests-pt1h": [ "14999" ], + "x-ms-request-id": [ "eastus:5fe89e8a-8735-46eb-8f62-4b6d755838c0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-deletes": [ "11999" ], + "x-ms-correlation-request-id": [ "9cc4dc00-f40a-42d7-965a-adbad6736e19" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T050846Z:9cc4dc00-f40a-42d7-965a-adbad6736e19" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:12:21 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 842127E66AE0428AA4F9801950C50D65 Ref B: MAA201060515045 Ref C: 2024-10-31T05:08:42Z" ], + "Date": [ "Thu, 31 Oct 2024 05:08:45 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1339" ], + "Content-Length": [ "1584" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2023-02-17T23:54:11.727Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:53:59Z\",\"lastTimestamp\":\"2023-02-17T23:53:59Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:54:00Z\",\"lastTimestamp\":\"2023-02-17T23:54:00Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:54:11Z\",\"lastTimestamp\":\"2023-02-17T23:54:11Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"}},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg-remove1\",\"name\":\"bez-test-cg-remove1\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"}", + "Content": "{\"properties\":{\"sku\":\"Standard\",\"isCreatedFromStandbyPool\":false,\"provisioningState\":\"Succeeded\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{}},\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2024-10-31T04:53:25.047Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:53:09Z\",\"lastTimestamp\":\"2024-10-31T04:53:09Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:53:14Z\",\"lastTimestamp\":\"2024-10-31T04:53:14Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:53:25Z\",\"lastTimestamp\":\"2024-10-31T04:53:25Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"}},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg-remove1\",\"name\":\"bez-test-cg-remove1\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"}", "isContentBase64": false } }, - "Remove-AzContainerGroup+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg-remove2?api-version=2022-10-01-preview+1": { + "Remove-AzContainerGroup+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg-remove2?api-version=2024-05-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg-remove2?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg-remove2?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "81" ], - "x-ms-client-request-id": [ "0fb023df-b7d0-44ac-8ff7-ffab1a9135b4" ], + "x-ms-unique-id": [ "87" ], + "x-ms-client-request-id": [ "292ffbd1-9696-40a2-9c9a-d7eb42557f70" ], "CommandName": [ "Get-AzContainerGroup" ], "FullCommandName": [ "Get-AzContainerGroup_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -65,37 +67,39 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-request-id": [ "eastus:3c82e219-2f31-4781-911b-545ecbf035da" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11942" ], - "x-ms-correlation-request-id": [ "7797d401-4a3c-453d-ac7e-1a66e7709eb9" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T001222Z:7797d401-4a3c-453d-ac7e-1a66e7709eb9" ], + "x-ms-request-id": [ "eastus:bb552123-03e4-4ef6-9235-cbe6b3c9d018" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "b9a2da3d-8a0a-4e3f-a0a2-ad4154dcdb5e" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T050846Z:b9a2da3d-8a0a-4e3f-a0a2-ad4154dcdb5e" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:12:21 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 931543992C9D4612BBE0E267F6A2D71A Ref B: MAA201060515045 Ref C: 2024-10-31T05:08:46Z" ], + "Date": [ "Thu, 31 Oct 2024 05:08:46 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1339" ], + "Content-Length": [ "1584" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"2\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2023-02-17T23:54:46.181Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:54:31Z\",\"lastTimestamp\":\"2023-02-17T23:54:31Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:54:38Z\",\"lastTimestamp\":\"2023-02-17T23:54:38Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:54:46Z\",\"lastTimestamp\":\"2023-02-17T23:54:46Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"}},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg-remove2\",\"name\":\"bez-test-cg-remove2\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"}", + "Content": "{\"properties\":{\"sku\":\"Standard\",\"isCreatedFromStandbyPool\":false,\"provisioningState\":\"Succeeded\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"2\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{}},\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2024-10-31T04:53:55.712Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:53:43Z\",\"lastTimestamp\":\"2024-10-31T04:53:43Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:53:47Z\",\"lastTimestamp\":\"2024-10-31T04:53:47Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:53:55Z\",\"lastTimestamp\":\"2024-10-31T04:53:55Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"}},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg-remove2\",\"name\":\"bez-test-cg-remove2\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"}", "isContentBase64": false } }, - "Remove-AzContainerGroup+[NoContext]+DeleteViaIdentity+$DELETE+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg-remove2?api-version=2022-10-01-preview+2": { + "Remove-AzContainerGroup+[NoContext]+DeleteViaIdentity+$DELETE+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg-remove2?api-version=2024-05-01-preview+2": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg-remove2?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg-remove2?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "82" ], - "x-ms-client-request-id": [ "b84b5027-e6be-47bd-a081-5aeec5138e43" ], + "x-ms-unique-id": [ "88" ], + "x-ms-client-request-id": [ "c76f2dec-4db4-4f43-a323-2f92b7c48814" ], "CommandName": [ "Remove-AzContainerGroup" ], "FullCommandName": [ "Remove-AzContainerGroup_DeleteViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -106,23 +110,25 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-ratelimit-remaining-subscription-resource-requests-pt5m": [ "98" ], - "x-ms-ratelimit-remaining-subscription-resource-requests-pt1h": [ "298" ], - "x-ms-request-id": [ "eastus:737b18d0-b030-4303-9943-4dfc77bb800c" ], - "x-ms-ratelimit-remaining-subscription-deletes": [ "14998" ], - "x-ms-correlation-request-id": [ "21f6cd92-4d90-4348-bf14-1204bbc6e1c5" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T001223Z:21f6cd92-4d90-4348-bf14-1204bbc6e1c5" ], + "x-ms-ratelimit-remaining-subscription-resource-requests-pt5m": [ "1498" ], + "x-ms-ratelimit-remaining-subscription-resource-requests-pt1h": [ "14998" ], + "x-ms-request-id": [ "eastus:c47ccdf9-8009-42f9-9ec8-8e81e5a3707a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-deletes": [ "11999" ], + "x-ms-correlation-request-id": [ "5e85a885-cc35-4949-bede-2daa4ea1eab3" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T050850Z:5e85a885-cc35-4949-bede-2daa4ea1eab3" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:12:22 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 3AD13C35B7DE472A961D826BCD8B5321 Ref B: MAA201060515045 Ref C: 2024-10-31T05:08:46Z" ], + "Date": [ "Thu, 31 Oct 2024 05:08:50 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1339" ], + "Content-Length": [ "1584" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"2\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2023-02-17T23:54:46.181Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:54:31Z\",\"lastTimestamp\":\"2023-02-17T23:54:31Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:54:38Z\",\"lastTimestamp\":\"2023-02-17T23:54:38Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:54:46Z\",\"lastTimestamp\":\"2023-02-17T23:54:46Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"}},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg-remove2\",\"name\":\"bez-test-cg-remove2\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"}", + "Content": "{\"properties\":{\"sku\":\"Standard\",\"isCreatedFromStandbyPool\":false,\"provisioningState\":\"Succeeded\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"2\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{}},\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2024-10-31T04:53:55.712Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:53:43Z\",\"lastTimestamp\":\"2024-10-31T04:53:43Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:53:47Z\",\"lastTimestamp\":\"2024-10-31T04:53:47Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:53:55Z\",\"lastTimestamp\":\"2024-10-31T04:53:55Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"}},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg-remove2\",\"name\":\"bez-test-cg-remove2\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"}", "isContentBase64": false } } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/test/Remove-AzContainerGroupConfidentialSku.Recording.json b/src/ContainerInstance/ContainerInstance.Autorest/test/Remove-AzContainerGroupConfidentialSku.Recording.json index bab5fb9b04de..e62263a31495 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/test/Remove-AzContainerGroupConfidentialSku.Recording.json +++ b/src/ContainerInstance/ContainerInstance.Autorest/test/Remove-AzContainerGroupConfidentialSku.Recording.json @@ -1,17 +1,17 @@ { - "Remove-AzContainerGroupConfidentialSku+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup-remove1?api-version=2022-10-01-preview+1": { + "Remove-AzContainerGroupConfidentialSku+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup-remove1?api-version=2024-05-01-preview+1": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup-remove1?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup-remove1?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "83" ], - "x-ms-client-request-id": [ "423aa226-0fde-41d3-a238-2d398f391c8c" ], + "x-ms-unique-id": [ "89" ], + "x-ms-client-request-id": [ "b9a2a782-11e7-4e4b-95e9-34dc298976a3" ], "CommandName": [ "Remove-AzContainerGroup" ], "FullCommandName": [ "Remove-AzContainerGroup_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -22,39 +22,41 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-ratelimit-remaining-subscription-resource-requests-pt5m": [ "97" ], - "x-ms-ratelimit-remaining-subscription-resource-requests-pt1h": [ "297" ], - "x-ms-request-id": [ "eastus:0b7cbf98-6bc7-4771-a988-ad3befe777d8" ], - "x-ms-ratelimit-remaining-subscription-deletes": [ "14997" ], - "x-ms-correlation-request-id": [ "a2400a17-50bf-4284-a362-09f1795f4095" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T001233Z:a2400a17-50bf-4284-a362-09f1795f4095" ], + "x-ms-ratelimit-remaining-subscription-resource-requests-pt5m": [ "1499" ], + "x-ms-ratelimit-remaining-subscription-resource-requests-pt1h": [ "14999" ], + "x-ms-request-id": [ "eastus:ab4c1509-657f-47ea-8abb-b7bcad9358ea" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-deletes": [ "11999" ], + "x-ms-correlation-request-id": [ "aac7400d-ebcf-429e-add6-f689fccddf77" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T050902Z:aac7400d-ebcf-429e-add6-f689fccddf77" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:12:32 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: FE5D1EB4378543399F914ABF29650BCD Ref B: MAA201060515045 Ref C: 2024-10-31T05:08:59Z" ], + "Date": [ "Thu, 31 Oct 2024 05:09:02 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2462" ], + "Content-Length": [ "2706" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"sku\":\"Confidential\",\"confidentialComputeProperties\":{\"ccePolicy\":\"cGFja2FnZSBwb2xpY3kKCmFwaV9zdm4gOj0gIjAuMTAuMCIKCm1vdW50X2RldmljZSA6PSB7ImFsbG93ZWQiOiB0cnVlfQptb3VudF9vdmVybGF5IDo9IHsiYWxsb3dlZCI6IHRydWV9CmNyZWF0ZV9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbCwgImFsbG93X3N0ZGlvX2FjY2VzcyI6IHRydWV9CnVubW91bnRfZGV2aWNlIDo9IHsiYWxsb3dlZCI6IHRydWV9IAp1bm1vdW50X292ZXJsYXkgOj0geyJhbGxvd2VkIjogdHJ1ZX0KZXhlY19pbl9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbH0KZXhlY19leHRlcm5hbCA6PSB7ImFsbG93ZWQiOiB0cnVlLCAiZW52X2xpc3QiOiBudWxsLCAiYWxsb3dfc3RkaW9fYWNjZXNzIjogdHJ1ZX0Kc2h1dGRvd25fY29udGFpbmVyIDo9IHsiYWxsb3dlZCI6IHRydWV9CnNpZ25hbF9jb250YWluZXJfcHJvY2VzcyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV9tb3VudCA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CmdldF9wcm9wZXJ0aWVzIDo9IHsiYWxsb3dlZCI6IHRydWV9CmR1bXBfc3RhY2tzIDo9IHsiYWxsb3dlZCI6IHRydWV9CnJ1bnRpbWVfbG9nZ2luZyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpsb2FkX2ZyYWdtZW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CnNjcmF0Y2hfbW91bnQgOj0geyJhbGxvd2VkIjogdHJ1ZX0Kc2NyYXRjaF91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9Cg==\"},\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2023-02-18T00:01:41.103Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2023-02-18T00:00:58Z\",\"lastTimestamp\":\"2023-02-18T00:00:58Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-18T00:01:03Z\",\"lastTimestamp\":\"2023-02-18T00:01:03Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-18T00:01:41Z\",\"lastTimestamp\":\"2023-02-18T00:01:41Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"}},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup-remove1\",\"name\":\"test-confidential-containergroup-remove1\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"}", + "Content": "{\"properties\":{\"sku\":\"Confidential\",\"confidentialComputeProperties\":{\"ccePolicy\":\"cGFja2FnZSBwb2xpY3kKCmFwaV9zdm4gOj0gIjAuMTAuMCIKCm1vdW50X2RldmljZSA6PSB7ImFsbG93ZWQiOiB0cnVlfQptb3VudF9vdmVybGF5IDo9IHsiYWxsb3dlZCI6IHRydWV9CmNyZWF0ZV9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbCwgImFsbG93X3N0ZGlvX2FjY2VzcyI6IHRydWV9CnVubW91bnRfZGV2aWNlIDo9IHsiYWxsb3dlZCI6IHRydWV9IAp1bm1vdW50X292ZXJsYXkgOj0geyJhbGxvd2VkIjogdHJ1ZX0KZXhlY19pbl9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbH0KZXhlY19leHRlcm5hbCA6PSB7ImFsbG93ZWQiOiB0cnVlLCAiZW52X2xpc3QiOiBudWxsLCAiYWxsb3dfc3RkaW9fYWNjZXNzIjogdHJ1ZX0Kc2h1dGRvd25fY29udGFpbmVyIDo9IHsiYWxsb3dlZCI6IHRydWV9CnNpZ25hbF9jb250YWluZXJfcHJvY2VzcyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV9tb3VudCA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CmdldF9wcm9wZXJ0aWVzIDo9IHsiYWxsb3dlZCI6IHRydWV9CmR1bXBfc3RhY2tzIDo9IHsiYWxsb3dlZCI6IHRydWV9CnJ1bnRpbWVfbG9nZ2luZyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpsb2FkX2ZyYWdtZW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CnNjcmF0Y2hfbW91bnQgOj0geyJhbGxvd2VkIjogdHJ1ZX0Kc2NyYXRjaF91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9Cg==\"},\"isCreatedFromStandbyPool\":false,\"provisioningState\":\"Succeeded\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{}},\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2024-10-31T04:58:40.14Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:58:24Z\",\"lastTimestamp\":\"2024-10-31T04:58:24Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:58:24Z\",\"lastTimestamp\":\"2024-10-31T04:58:24Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:58:40Z\",\"lastTimestamp\":\"2024-10-31T04:58:40Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"}},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup-remove1\",\"name\":\"test-confidential-containergroup-remove1\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"}", "isContentBase64": false } }, - "Remove-AzContainerGroupConfidentialSku+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup-remove2?api-version=2022-10-01-preview+1": { + "Remove-AzContainerGroupConfidentialSku+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup-remove2?api-version=2024-05-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup-remove2?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup-remove2?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "84" ], - "x-ms-client-request-id": [ "a99d6df3-1920-4ec7-b6c0-6bd05da54c2b" ], + "x-ms-unique-id": [ "90" ], + "x-ms-client-request-id": [ "6217bbe1-5a8e-41d6-8d00-be2788662c23" ], "CommandName": [ "Get-AzContainerGroup" ], "FullCommandName": [ "Get-AzContainerGroup_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -65,37 +67,39 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-request-id": [ "eastus:168106a2-ace3-4374-ad45-137e142c5ea5" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11941" ], - "x-ms-correlation-request-id": [ "b419b5da-4dd2-4345-b3f3-10f9d102cf98" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T001233Z:b419b5da-4dd2-4345-b3f3-10f9d102cf98" ], + "x-ms-request-id": [ "eastus:225cceb8-3ca3-42a3-b841-3d601c4913e9" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "ff5593f2-ca4d-43e7-b444-633577b9f30a" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T050903Z:ff5593f2-ca4d-43e7-b444-633577b9f30a" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:12:33 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 2419BD0D3BFA40D398B23E258021BEA7 Ref B: MAA201060515045 Ref C: 2024-10-31T05:09:02Z" ], + "Date": [ "Thu, 31 Oct 2024 05:09:02 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2462" ], + "Content-Length": [ "2706" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"sku\":\"Confidential\",\"confidentialComputeProperties\":{\"ccePolicy\":\"cGFja2FnZSBwb2xpY3kKCmFwaV9zdm4gOj0gIjAuMTAuMCIKCm1vdW50X2RldmljZSA6PSB7ImFsbG93ZWQiOiB0cnVlfQptb3VudF9vdmVybGF5IDo9IHsiYWxsb3dlZCI6IHRydWV9CmNyZWF0ZV9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbCwgImFsbG93X3N0ZGlvX2FjY2VzcyI6IHRydWV9CnVubW91bnRfZGV2aWNlIDo9IHsiYWxsb3dlZCI6IHRydWV9IAp1bm1vdW50X292ZXJsYXkgOj0geyJhbGxvd2VkIjogdHJ1ZX0KZXhlY19pbl9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbH0KZXhlY19leHRlcm5hbCA6PSB7ImFsbG93ZWQiOiB0cnVlLCAiZW52X2xpc3QiOiBudWxsLCAiYWxsb3dfc3RkaW9fYWNjZXNzIjogdHJ1ZX0Kc2h1dGRvd25fY29udGFpbmVyIDo9IHsiYWxsb3dlZCI6IHRydWV9CnNpZ25hbF9jb250YWluZXJfcHJvY2VzcyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV9tb3VudCA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CmdldF9wcm9wZXJ0aWVzIDo9IHsiYWxsb3dlZCI6IHRydWV9CmR1bXBfc3RhY2tzIDo9IHsiYWxsb3dlZCI6IHRydWV9CnJ1bnRpbWVfbG9nZ2luZyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpsb2FkX2ZyYWdtZW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CnNjcmF0Y2hfbW91bnQgOj0geyJhbGxvd2VkIjogdHJ1ZX0Kc2NyYXRjaF91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9Cg==\"},\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2023-02-18T00:02:46.039Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2023-02-18T00:02:01Z\",\"lastTimestamp\":\"2023-02-18T00:02:01Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-18T00:02:01Z\",\"lastTimestamp\":\"2023-02-18T00:02:01Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-18T00:02:46Z\",\"lastTimestamp\":\"2023-02-18T00:02:46Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"}},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup-remove2\",\"name\":\"test-confidential-containergroup-remove2\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"}", + "Content": "{\"properties\":{\"sku\":\"Confidential\",\"confidentialComputeProperties\":{\"ccePolicy\":\"cGFja2FnZSBwb2xpY3kKCmFwaV9zdm4gOj0gIjAuMTAuMCIKCm1vdW50X2RldmljZSA6PSB7ImFsbG93ZWQiOiB0cnVlfQptb3VudF9vdmVybGF5IDo9IHsiYWxsb3dlZCI6IHRydWV9CmNyZWF0ZV9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbCwgImFsbG93X3N0ZGlvX2FjY2VzcyI6IHRydWV9CnVubW91bnRfZGV2aWNlIDo9IHsiYWxsb3dlZCI6IHRydWV9IAp1bm1vdW50X292ZXJsYXkgOj0geyJhbGxvd2VkIjogdHJ1ZX0KZXhlY19pbl9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbH0KZXhlY19leHRlcm5hbCA6PSB7ImFsbG93ZWQiOiB0cnVlLCAiZW52X2xpc3QiOiBudWxsLCAiYWxsb3dfc3RkaW9fYWNjZXNzIjogdHJ1ZX0Kc2h1dGRvd25fY29udGFpbmVyIDo9IHsiYWxsb3dlZCI6IHRydWV9CnNpZ25hbF9jb250YWluZXJfcHJvY2VzcyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV9tb3VudCA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CmdldF9wcm9wZXJ0aWVzIDo9IHsiYWxsb3dlZCI6IHRydWV9CmR1bXBfc3RhY2tzIDo9IHsiYWxsb3dlZCI6IHRydWV9CnJ1bnRpbWVfbG9nZ2luZyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpsb2FkX2ZyYWdtZW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CnNjcmF0Y2hfbW91bnQgOj0geyJhbGxvd2VkIjogdHJ1ZX0Kc2NyYXRjaF91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9Cg==\"},\"isCreatedFromStandbyPool\":false,\"provisioningState\":\"Succeeded\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{}},\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2024-10-31T04:59:13.11Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:58:58Z\",\"lastTimestamp\":\"2024-10-31T04:58:58Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:58:59Z\",\"lastTimestamp\":\"2024-10-31T04:58:59Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:59:13Z\",\"lastTimestamp\":\"2024-10-31T04:59:13Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"}},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup-remove2\",\"name\":\"test-confidential-containergroup-remove2\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"}", "isContentBase64": false } }, - "Remove-AzContainerGroupConfidentialSku+[NoContext]+DeleteViaIdentity+$DELETE+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup-remove2?api-version=2022-10-01-preview+2": { + "Remove-AzContainerGroupConfidentialSku+[NoContext]+DeleteViaIdentity+$DELETE+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup-remove2?api-version=2024-05-01-preview+2": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup-remove2?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup-remove2?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "85" ], - "x-ms-client-request-id": [ "9ef9d908-2d25-40a1-9010-7a371cdedcd8" ], + "x-ms-unique-id": [ "91" ], + "x-ms-client-request-id": [ "fa19dea4-1361-463a-b572-36bc16f3fed6" ], "CommandName": [ "Remove-AzContainerGroup" ], "FullCommandName": [ "Remove-AzContainerGroup_DeleteViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -106,23 +110,25 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-ratelimit-remaining-subscription-resource-requests-pt5m": [ "96" ], - "x-ms-ratelimit-remaining-subscription-resource-requests-pt1h": [ "296" ], - "x-ms-request-id": [ "eastus:17225ef5-633b-4c23-8ab0-cc85fc7baf4b" ], - "x-ms-ratelimit-remaining-subscription-deletes": [ "14996" ], - "x-ms-correlation-request-id": [ "3c9fc570-17bc-4913-86f6-89e8eb45f84e" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T001235Z:3c9fc570-17bc-4913-86f6-89e8eb45f84e" ], + "x-ms-ratelimit-remaining-subscription-resource-requests-pt5m": [ "1499" ], + "x-ms-ratelimit-remaining-subscription-resource-requests-pt1h": [ "14999" ], + "x-ms-request-id": [ "eastus:9f5a98d1-61a3-413e-8b15-6a15534aa69c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-deletes": [ "11999" ], + "x-ms-correlation-request-id": [ "0975947c-4bef-4745-a136-7ff7e1acc449" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T050906Z:0975947c-4bef-4745-a136-7ff7e1acc449" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:12:34 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 5314E3C0C81446278BFEA7F95E485FF9 Ref B: MAA201060515045 Ref C: 2024-10-31T05:09:03Z" ], + "Date": [ "Thu, 31 Oct 2024 05:09:06 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2462" ], + "Content-Length": [ "2706" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"sku\":\"Confidential\",\"confidentialComputeProperties\":{\"ccePolicy\":\"cGFja2FnZSBwb2xpY3kKCmFwaV9zdm4gOj0gIjAuMTAuMCIKCm1vdW50X2RldmljZSA6PSB7ImFsbG93ZWQiOiB0cnVlfQptb3VudF9vdmVybGF5IDo9IHsiYWxsb3dlZCI6IHRydWV9CmNyZWF0ZV9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbCwgImFsbG93X3N0ZGlvX2FjY2VzcyI6IHRydWV9CnVubW91bnRfZGV2aWNlIDo9IHsiYWxsb3dlZCI6IHRydWV9IAp1bm1vdW50X292ZXJsYXkgOj0geyJhbGxvd2VkIjogdHJ1ZX0KZXhlY19pbl9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbH0KZXhlY19leHRlcm5hbCA6PSB7ImFsbG93ZWQiOiB0cnVlLCAiZW52X2xpc3QiOiBudWxsLCAiYWxsb3dfc3RkaW9fYWNjZXNzIjogdHJ1ZX0Kc2h1dGRvd25fY29udGFpbmVyIDo9IHsiYWxsb3dlZCI6IHRydWV9CnNpZ25hbF9jb250YWluZXJfcHJvY2VzcyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV9tb3VudCA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CmdldF9wcm9wZXJ0aWVzIDo9IHsiYWxsb3dlZCI6IHRydWV9CmR1bXBfc3RhY2tzIDo9IHsiYWxsb3dlZCI6IHRydWV9CnJ1bnRpbWVfbG9nZ2luZyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpsb2FkX2ZyYWdtZW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CnNjcmF0Y2hfbW91bnQgOj0geyJhbGxvd2VkIjogdHJ1ZX0Kc2NyYXRjaF91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9Cg==\"},\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2023-02-18T00:02:46.039Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2023-02-18T00:02:01Z\",\"lastTimestamp\":\"2023-02-18T00:02:01Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-18T00:02:01Z\",\"lastTimestamp\":\"2023-02-18T00:02:01Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-18T00:02:46Z\",\"lastTimestamp\":\"2023-02-18T00:02:46Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"}},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup-remove2\",\"name\":\"test-confidential-containergroup-remove2\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"}", + "Content": "{\"properties\":{\"sku\":\"Confidential\",\"confidentialComputeProperties\":{\"ccePolicy\":\"cGFja2FnZSBwb2xpY3kKCmFwaV9zdm4gOj0gIjAuMTAuMCIKCm1vdW50X2RldmljZSA6PSB7ImFsbG93ZWQiOiB0cnVlfQptb3VudF9vdmVybGF5IDo9IHsiYWxsb3dlZCI6IHRydWV9CmNyZWF0ZV9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbCwgImFsbG93X3N0ZGlvX2FjY2VzcyI6IHRydWV9CnVubW91bnRfZGV2aWNlIDo9IHsiYWxsb3dlZCI6IHRydWV9IAp1bm1vdW50X292ZXJsYXkgOj0geyJhbGxvd2VkIjogdHJ1ZX0KZXhlY19pbl9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbH0KZXhlY19leHRlcm5hbCA6PSB7ImFsbG93ZWQiOiB0cnVlLCAiZW52X2xpc3QiOiBudWxsLCAiYWxsb3dfc3RkaW9fYWNjZXNzIjogdHJ1ZX0Kc2h1dGRvd25fY29udGFpbmVyIDo9IHsiYWxsb3dlZCI6IHRydWV9CnNpZ25hbF9jb250YWluZXJfcHJvY2VzcyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV9tb3VudCA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CmdldF9wcm9wZXJ0aWVzIDo9IHsiYWxsb3dlZCI6IHRydWV9CmR1bXBfc3RhY2tzIDo9IHsiYWxsb3dlZCI6IHRydWV9CnJ1bnRpbWVfbG9nZ2luZyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpsb2FkX2ZyYWdtZW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CnNjcmF0Y2hfbW91bnQgOj0geyJhbGxvd2VkIjogdHJ1ZX0Kc2NyYXRjaF91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9Cg==\"},\"isCreatedFromStandbyPool\":false,\"provisioningState\":\"Succeeded\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{}},\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2024-10-31T04:59:13.11Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:58:58Z\",\"lastTimestamp\":\"2024-10-31T04:58:58Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:58:59Z\",\"lastTimestamp\":\"2024-10-31T04:58:59Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:59:13Z\",\"lastTimestamp\":\"2024-10-31T04:59:13Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"}},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup-remove2\",\"name\":\"test-confidential-containergroup-remove2\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"}", "isContentBase64": false } } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/test/Remove-AzContainerGroupRegularPriority.Recording.json b/src/ContainerInstance/ContainerInstance.Autorest/test/Remove-AzContainerGroupRegularPriority.Recording.json index a8b97da17435..bc80de119a4b 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/test/Remove-AzContainerGroupRegularPriority.Recording.json +++ b/src/ContainerInstance/ContainerInstance.Autorest/test/Remove-AzContainerGroupRegularPriority.Recording.json @@ -1,17 +1,17 @@ { - "Remove-AzContainerGroupRegularPriority+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgq5m6g-remove1?api-version=2022-10-01-preview+1": { + "Remove-AzContainerGroupRegularPriority+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cgfl4g3-remove1?api-version=2024-05-01-preview+1": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgq5m6g-remove1?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cgfl4g3-remove1?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "86" ], - "x-ms-client-request-id": [ "570f9651-e474-4fa5-869e-7eb1b798ef43" ], + "x-ms-unique-id": [ "92" ], + "x-ms-client-request-id": [ "2bc34292-d2fa-4e08-b4f6-ea2c3faff08f" ], "CommandName": [ "Remove-AzContainerGroup" ], "FullCommandName": [ "Remove-AzContainerGroup_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -22,39 +22,41 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-ratelimit-remaining-subscription-resource-requests-pt5m": [ "95" ], - "x-ms-ratelimit-remaining-subscription-resource-requests-pt1h": [ "295" ], - "x-ms-request-id": [ "eastus:64b8ccd0-d73a-46be-8f8f-7a09979c4eff" ], - "x-ms-ratelimit-remaining-subscription-deletes": [ "14995" ], - "x-ms-correlation-request-id": [ "47d7883a-4c6d-476d-b7f6-11aea7d3b99c" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T001247Z:47d7883a-4c6d-476d-b7f6-11aea7d3b99c" ], + "x-ms-ratelimit-remaining-subscription-resource-requests-pt5m": [ "1499" ], + "x-ms-ratelimit-remaining-subscription-resource-requests-pt1h": [ "14999" ], + "x-ms-request-id": [ "eastus:aade6623-e3c6-48e2-ac65-9c930d52782e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-deletes": [ "11999" ], + "x-ms-correlation-request-id": [ "7d149ee3-8799-4e67-9917-ebdd5e9264fe" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T050917Z:7d149ee3-8799-4e67-9917-ebdd5e9264fe" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:12:47 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 1B8581AE71174577A19DEB6DBF87663B Ref B: MAA201060515045 Ref C: 2024-10-31T05:09:14Z" ], + "Date": [ "Thu, 31 Oct 2024 05:09:17 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1362" ], + "Content-Length": [ "1607" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2023-02-17T23:56:24.945Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:56:10Z\",\"lastTimestamp\":\"2023-02-17T23:56:10Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:56:16Z\",\"lastTimestamp\":\"2023-02-17T23:56:16Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:56:24Z\",\"lastTimestamp\":\"2023-02-17T23:56:24Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"},\"priority\":\"Regular\"},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgq5m6g-remove1\",\"name\":\"test-cgq5m6g-remove1\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"}", + "Content": "{\"properties\":{\"sku\":\"Standard\",\"isCreatedFromStandbyPool\":false,\"provisioningState\":\"Succeeded\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{}},\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2024-10-31T04:55:44.838Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:55:29Z\",\"lastTimestamp\":\"2024-10-31T04:55:29Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:55:34Z\",\"lastTimestamp\":\"2024-10-31T04:55:34Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:55:44Z\",\"lastTimestamp\":\"2024-10-31T04:55:44Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"},\"priority\":\"Regular\"},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cgfl4g3-remove1\",\"name\":\"test-cgfl4g3-remove1\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"}", "isContentBase64": false } }, - "Remove-AzContainerGroupRegularPriority+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgq5m6g-remove2?api-version=2022-10-01-preview+1": { + "Remove-AzContainerGroupRegularPriority+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cgfl4g3-remove2?api-version=2024-05-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgq5m6g-remove2?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cgfl4g3-remove2?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "87" ], - "x-ms-client-request-id": [ "eeaf6579-014b-4b65-9471-85e16f2b0561" ], + "x-ms-unique-id": [ "93" ], + "x-ms-client-request-id": [ "1825d745-9a6e-476f-bfa5-ed4bc44d01ce" ], "CommandName": [ "Get-AzContainerGroup" ], "FullCommandName": [ "Get-AzContainerGroup_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -65,37 +67,39 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-request-id": [ "eastus:277fe30b-024b-47a2-88b8-30960cebf7b2" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11940" ], - "x-ms-correlation-request-id": [ "298059b7-dc1f-4981-9b39-0a4352c19f27" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T001248Z:298059b7-dc1f-4981-9b39-0a4352c19f27" ], + "x-ms-request-id": [ "eastus:59ebf3dd-484a-4e47-ae4c-9ef8b905a30a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "46cda4b2-1da5-4dc2-a770-765ab8d68bed" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T050918Z:46cda4b2-1da5-4dc2-a770-765ab8d68bed" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:12:47 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 18165CF382E849F5908D5197F42510D1 Ref B: MAA201060515045 Ref C: 2024-10-31T05:09:18Z" ], + "Date": [ "Thu, 31 Oct 2024 05:09:18 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1362" ], + "Content-Length": [ "1607" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2023-02-17T23:57:56.179Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:56:44Z\",\"lastTimestamp\":\"2023-02-17T23:56:44Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:57:22Z\",\"lastTimestamp\":\"2023-02-17T23:57:22Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:57:56Z\",\"lastTimestamp\":\"2023-02-17T23:57:56Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"},\"priority\":\"Regular\"},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgq5m6g-remove2\",\"name\":\"test-cgq5m6g-remove2\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"}", + "Content": "{\"properties\":{\"sku\":\"Standard\",\"isCreatedFromStandbyPool\":false,\"provisioningState\":\"Succeeded\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{}},\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2024-10-31T04:56:20.384Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:56:04Z\",\"lastTimestamp\":\"2024-10-31T04:56:04Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:56:09Z\",\"lastTimestamp\":\"2024-10-31T04:56:09Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:56:20Z\",\"lastTimestamp\":\"2024-10-31T04:56:20Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"},\"priority\":\"Regular\"},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cgfl4g3-remove2\",\"name\":\"test-cgfl4g3-remove2\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"}", "isContentBase64": false } }, - "Remove-AzContainerGroupRegularPriority+[NoContext]+DeleteViaIdentity+$DELETE+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgq5m6g-remove2?api-version=2022-10-01-preview+2": { + "Remove-AzContainerGroupRegularPriority+[NoContext]+DeleteViaIdentity+$DELETE+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cgfl4g3-remove2?api-version=2024-05-01-preview+2": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgq5m6g-remove2?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cgfl4g3-remove2?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "88" ], - "x-ms-client-request-id": [ "c4468d3c-f9bf-4876-b082-cc086109081c" ], + "x-ms-unique-id": [ "94" ], + "x-ms-client-request-id": [ "035c828f-ad71-452c-a5e2-f24d981be108" ], "CommandName": [ "Remove-AzContainerGroup" ], "FullCommandName": [ "Remove-AzContainerGroup_DeleteViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -106,23 +110,25 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-ratelimit-remaining-subscription-resource-requests-pt5m": [ "94" ], - "x-ms-ratelimit-remaining-subscription-resource-requests-pt1h": [ "294" ], - "x-ms-request-id": [ "eastus:c108513f-fff2-451f-ae1f-6c4bac97b56c" ], - "x-ms-ratelimit-remaining-subscription-deletes": [ "14994" ], - "x-ms-correlation-request-id": [ "1d7f762b-4e5c-48f7-929f-a0f158ad406f" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T001249Z:1d7f762b-4e5c-48f7-929f-a0f158ad406f" ], + "x-ms-ratelimit-remaining-subscription-resource-requests-pt5m": [ "1498" ], + "x-ms-ratelimit-remaining-subscription-resource-requests-pt1h": [ "14998" ], + "x-ms-request-id": [ "eastus:237b7714-d076-4d7c-bcfc-545bf7295e85" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-deletes": [ "11999" ], + "x-ms-correlation-request-id": [ "f9816fce-9268-4514-bc62-56760fd24b06" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T050920Z:f9816fce-9268-4514-bc62-56760fd24b06" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:12:48 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: F826D27124F4441F9226C171E7E5499A Ref B: MAA201060515045 Ref C: 2024-10-31T05:09:18Z" ], + "Date": [ "Thu, 31 Oct 2024 05:09:20 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1362" ], + "Content-Length": [ "1607" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2023-02-17T23:57:56.179Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:56:44Z\",\"lastTimestamp\":\"2023-02-17T23:56:44Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:57:22Z\",\"lastTimestamp\":\"2023-02-17T23:57:22Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:57:56Z\",\"lastTimestamp\":\"2023-02-17T23:57:56Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"},\"priority\":\"Regular\"},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgq5m6g-remove2\",\"name\":\"test-cgq5m6g-remove2\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"}", + "Content": "{\"properties\":{\"sku\":\"Standard\",\"isCreatedFromStandbyPool\":false,\"provisioningState\":\"Succeeded\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{}},\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2024-10-31T04:56:20.384Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:56:04Z\",\"lastTimestamp\":\"2024-10-31T04:56:04Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:56:09Z\",\"lastTimestamp\":\"2024-10-31T04:56:09Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:56:20Z\",\"lastTimestamp\":\"2024-10-31T04:56:20Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"},\"priority\":\"Regular\"},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cgfl4g3-remove2\",\"name\":\"test-cgfl4g3-remove2\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"}", "isContentBase64": false } } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/test/Remove-AzContainerGroupSpotPriority.Recording.json b/src/ContainerInstance/ContainerInstance.Autorest/test/Remove-AzContainerGroupSpotPriority.Recording.json index 419d3843c799..c8c59c358930 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/test/Remove-AzContainerGroupSpotPriority.Recording.json +++ b/src/ContainerInstance/ContainerInstance.Autorest/test/Remove-AzContainerGroupSpotPriority.Recording.json @@ -1,17 +1,17 @@ { - "Remove-AzContainerGroupSpotPriority+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgytxbr-remove1?api-version=2022-10-01-preview+1": { + "Remove-AzContainerGroupSpotPriority+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cguyxhp-remove1?api-version=2024-05-01-preview+1": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgytxbr-remove1?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cguyxhp-remove1?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "89" ], - "x-ms-client-request-id": [ "d51c06f8-6988-4c73-ae21-1c4fe4e14f99" ], + "x-ms-unique-id": [ "95" ], + "x-ms-client-request-id": [ "052a2d51-2021-40c5-a4b0-dea46e69ea40" ], "CommandName": [ "Remove-AzContainerGroup" ], "FullCommandName": [ "Remove-AzContainerGroup_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -22,39 +22,41 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-ratelimit-remaining-subscription-resource-requests-pt5m": [ "99" ], - "x-ms-ratelimit-remaining-subscription-resource-requests-pt1h": [ "299" ], - "x-ms-request-id": [ "eastus:c781cfbe-f787-47f0-b78c-1fc82fdefae7" ], - "x-ms-ratelimit-remaining-subscription-deletes": [ "14993" ], - "x-ms-correlation-request-id": [ "65d96419-802e-4e63-a204-dbc68f3e39dc" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T001300Z:65d96419-802e-4e63-a204-dbc68f3e39dc" ], + "x-ms-ratelimit-remaining-subscription-resource-requests-pt5m": [ "1499" ], + "x-ms-ratelimit-remaining-subscription-resource-requests-pt1h": [ "14998" ], + "x-ms-request-id": [ "eastus:80efa7e6-f5d0-41a3-9603-25f8e3b609db" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-deletes": [ "11999" ], + "x-ms-correlation-request-id": [ "f0bba133-2ab0-4c37-a6f1-e4b342f82e79" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T050935Z:f0bba133-2ab0-4c37-a6f1-e4b342f82e79" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:12:59 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 629560002CB841D1B7F68C9FE02E3081 Ref B: MAA201060515045 Ref C: 2024-10-31T05:09:32Z" ], + "Date": [ "Thu, 31 Oct 2024 05:09:35 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1359" ], + "Content-Length": [ "1604" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2023-02-17T23:58:29.885Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:58:19Z\",\"lastTimestamp\":\"2023-02-17T23:58:19Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:58:20Z\",\"lastTimestamp\":\"2023-02-17T23:58:20Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:58:29Z\",\"lastTimestamp\":\"2023-02-17T23:58:29Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"},\"priority\":\"Spot\"},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgytxbr-remove1\",\"name\":\"test-cgytxbr-remove1\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"}", + "Content": "{\"properties\":{\"sku\":\"Standard\",\"isCreatedFromStandbyPool\":false,\"provisioningState\":\"Succeeded\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{}},\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2024-10-31T04:56:51.583Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:56:39Z\",\"lastTimestamp\":\"2024-10-31T04:56:39Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:56:40Z\",\"lastTimestamp\":\"2024-10-31T04:56:40Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:56:51Z\",\"lastTimestamp\":\"2024-10-31T04:56:51Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"},\"priority\":\"Spot\"},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cguyxhp-remove1\",\"name\":\"test-cguyxhp-remove1\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"}", "isContentBase64": false } }, - "Remove-AzContainerGroupSpotPriority+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgytxbr-remove2?api-version=2022-10-01-preview+1": { + "Remove-AzContainerGroupSpotPriority+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cguyxhp-remove2?api-version=2024-05-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgytxbr-remove2?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cguyxhp-remove2?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "90" ], - "x-ms-client-request-id": [ "2a02a30d-ef3d-4b61-a547-65a4b5aa23ba" ], + "x-ms-unique-id": [ "96" ], + "x-ms-client-request-id": [ "ca73dfac-4cda-4863-b2ff-d834f5e5a197" ], "CommandName": [ "Get-AzContainerGroup" ], "FullCommandName": [ "Get-AzContainerGroup_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -65,37 +67,39 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-request-id": [ "eastus:e4af7344-4b41-4693-a3f4-24d99d892138" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11939" ], - "x-ms-correlation-request-id": [ "8491af7d-8e81-4e2b-a255-734297a55c2e" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T001300Z:8491af7d-8e81-4e2b-a255-734297a55c2e" ], + "x-ms-request-id": [ "eastus:26f4f097-f86a-4d60-853c-3f44c7b20d53" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "cbe2788f-b39a-4945-9fd1-f6402f87affc" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T050936Z:cbe2788f-b39a-4945-9fd1-f6402f87affc" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:12:59 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: CFAB3F0325444CDBB8CC02BB40577990 Ref B: MAA201060515045 Ref C: 2024-10-31T05:09:35Z" ], + "Date": [ "Thu, 31 Oct 2024 05:09:35 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1359" ], + "Content-Length": [ "1604" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2023-02-17T23:59:03.164Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:58:51Z\",\"lastTimestamp\":\"2023-02-17T23:58:51Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:58:53Z\",\"lastTimestamp\":\"2023-02-17T23:58:53Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:59:03Z\",\"lastTimestamp\":\"2023-02-17T23:59:03Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"},\"priority\":\"Spot\"},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgytxbr-remove2\",\"name\":\"test-cgytxbr-remove2\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"}", + "Content": "{\"properties\":{\"sku\":\"Standard\",\"isCreatedFromStandbyPool\":false,\"provisioningState\":\"Succeeded\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{}},\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2024-10-31T04:57:27.683Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:57:14Z\",\"lastTimestamp\":\"2024-10-31T04:57:14Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:57:16Z\",\"lastTimestamp\":\"2024-10-31T04:57:16Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:57:27Z\",\"lastTimestamp\":\"2024-10-31T04:57:27Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"},\"priority\":\"Spot\"},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cguyxhp-remove2\",\"name\":\"test-cguyxhp-remove2\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"}", "isContentBase64": false } }, - "Remove-AzContainerGroupSpotPriority+[NoContext]+DeleteViaIdentity+$DELETE+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgytxbr-remove2?api-version=2022-10-01-preview+2": { + "Remove-AzContainerGroupSpotPriority+[NoContext]+DeleteViaIdentity+$DELETE+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cguyxhp-remove2?api-version=2024-05-01-preview+2": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgytxbr-remove2?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cguyxhp-remove2?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "91" ], - "x-ms-client-request-id": [ "2b56f4a7-1bed-4f5c-98d5-127c6e351940" ], + "x-ms-unique-id": [ "97" ], + "x-ms-client-request-id": [ "8e606031-6e64-4d94-918c-536471fcfb17" ], "CommandName": [ "Remove-AzContainerGroup" ], "FullCommandName": [ "Remove-AzContainerGroup_DeleteViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -106,23 +110,25 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-ratelimit-remaining-subscription-resource-requests-pt5m": [ "98" ], - "x-ms-ratelimit-remaining-subscription-resource-requests-pt1h": [ "298" ], - "x-ms-request-id": [ "eastus:955e59ab-e51a-4106-b371-4e9f45e8afaa" ], - "x-ms-ratelimit-remaining-subscription-deletes": [ "14992" ], - "x-ms-correlation-request-id": [ "35b3ce17-c25e-49c6-ae20-268c2a24e40f" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T001301Z:35b3ce17-c25e-49c6-ae20-268c2a24e40f" ], + "x-ms-ratelimit-remaining-subscription-resource-requests-pt5m": [ "1499" ], + "x-ms-ratelimit-remaining-subscription-resource-requests-pt1h": [ "14997" ], + "x-ms-request-id": [ "eastus:e3a40bf8-90ef-4f87-80f9-eca57bc17735" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-deletes": [ "11999" ], + "x-ms-correlation-request-id": [ "48122a01-ab7a-4309-ac12-f18d14864cc5" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T050939Z:48122a01-ab7a-4309-ac12-f18d14864cc5" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:13:01 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: C47204A733194400A9E0DC418980F18F Ref B: MAA201060515045 Ref C: 2024-10-31T05:09:36Z" ], + "Date": [ "Thu, 31 Oct 2024 05:09:39 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1359" ], + "Content-Length": [ "1604" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2023-02-17T23:59:03.164Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:58:51Z\",\"lastTimestamp\":\"2023-02-17T23:58:51Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:58:53Z\",\"lastTimestamp\":\"2023-02-17T23:58:53Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:59:03Z\",\"lastTimestamp\":\"2023-02-17T23:59:03Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"},\"priority\":\"Spot\"},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgytxbr-remove2\",\"name\":\"test-cgytxbr-remove2\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"}", + "Content": "{\"properties\":{\"sku\":\"Standard\",\"isCreatedFromStandbyPool\":false,\"provisioningState\":\"Succeeded\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{}},\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2024-10-31T04:57:27.683Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:57:14Z\",\"lastTimestamp\":\"2024-10-31T04:57:14Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:57:16Z\",\"lastTimestamp\":\"2024-10-31T04:57:16Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:57:27Z\",\"lastTimestamp\":\"2024-10-31T04:57:27Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"},\"priority\":\"Spot\"},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cguyxhp-remove2\",\"name\":\"test-cguyxhp-remove2\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"}", "isContentBase64": false } } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/test/Remove-AzContainerInstanceContainerGroupProfile.Recording.json b/src/ContainerInstance/ContainerInstance.Autorest/test/Remove-AzContainerInstanceContainerGroupProfile.Recording.json new file mode 100644 index 000000000000..3913469b8ab5 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/test/Remove-AzContainerInstanceContainerGroupProfile.Recording.json @@ -0,0 +1,383 @@ +{ + "Remove-AzContainerInstanceContainerGroupProfile+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroupProfiles/bez-test-cgp-remove1?api-version=2024-05-01-preview+1": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroupProfiles/bez-test-cgp-remove1?api-version=2024-05-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "98" ], + "x-ms-client-request-id": [ "aeaace16-4b8e-4234-a400-130594729901" ], + "CommandName": [ "Remove-AzContainerInstanceContainerGroupProfile" ], + "FullCommandName": [ "Remove-AzContainerInstanceContainerGroupProfile_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "eastus:79cf9144-7d25-4b5c-85e6-6f025bf18b53" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-deletes": [ "11999" ], + "x-ms-correlation-request-id": [ "1f05b7d5-491f-4a1f-8fac-661303b95604" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T050952Z:1f05b7d5-491f-4a1f-8fac-661303b95604" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 94AA9A356F124B398AABF031C0124C61 Ref B: MAA201060515045 Ref C: 2024-10-31T05:09:50Z" ], + "Date": [ "Thu, 31 Oct 2024 05:09:52 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Remove-AzContainerInstanceContainerGroupProfile+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroupProfiles/bez-test-cgp-remove2?api-version=2024-05-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroupProfiles/bez-test-cgp-remove2?api-version=2024-05-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "99" ], + "x-ms-client-request-id": [ "c595508b-5d7a-4758-9a9d-cd0861bf334c" ], + "CommandName": [ "Get-AzContainerInstanceContainerGroupProfile" ], + "FullCommandName": [ "Get-AzContainerInstanceContainerGroupProfile_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "eastus:9e420de4-832e-40eb-9059-27e4427d3a8f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "744e7ead-a9ba-4904-9c2c-6ee07e3f7cbe" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T050953Z:744e7ead-a9ba-4904-9c2c-6ee07e3f7cbe" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: B3527389C13B4C5484FB4971C972D37E Ref B: MAA201060515045 Ref C: 2024-10-31T05:09:52Z" ], + "Date": [ "Thu, 31 Oct 2024 05:09:52 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "482" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"containers\":[{\"name\":\"2\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"osType\":\"Linux\",\"revision\":1},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroupProfiles/bez-test-cgp-remove2\",\"name\":\"bez-test-cgp-remove2\",\"type\":\"Microsoft.ContainerInstance/containerGroupProfiles\",\"location\":\"eastus\"}", + "isContentBase64": false + } + }, + "Remove-AzContainerInstanceContainerGroupProfile+[NoContext]+DeleteViaIdentity+$DELETE+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroupProfiles/bez-test-cgp-remove2?api-version=2024-05-01-preview+2": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroupProfiles/bez-test-cgp-remove2?api-version=2024-05-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "100" ], + "x-ms-client-request-id": [ "7cfc5232-148b-46cf-8579-955cee045489" ], + "CommandName": [ "Remove-AzContainerInstanceContainerGroupProfile" ], + "FullCommandName": [ "Remove-AzContainerInstanceContainerGroupProfile_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "eastus:54df5cce-2085-4b47-9617-0ca105768d6f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-deletes": [ "11999" ], + "x-ms-correlation-request-id": [ "50091e14-b2df-4b98-822d-9c71f64abdd3" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T050956Z:50091e14-b2df-4b98-822d-9c71f64abdd3" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: CC7C0670640044E5835E4F1A79B12EE1 Ref B: MAA201060515045 Ref C: 2024-10-31T05:09:53Z" ], + "Date": [ "Thu, 31 Oct 2024 05:09:56 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Remove-AzContainerInstanceContainerGroupProfile+[NoContext]+DeleteSpotPriority+$DELETE+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroupProfiles/test-cgponypi-remove1?api-version=2024-05-01-preview+1": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroupProfiles/test-cgponypi-remove1?api-version=2024-05-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "101" ], + "x-ms-client-request-id": [ "4e8754fe-f542-4d21-b30b-add7efc63d9e" ], + "CommandName": [ "Remove-AzContainerInstanceContainerGroupProfile" ], + "FullCommandName": [ "Remove-AzContainerInstanceContainerGroupProfile_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "eastus:394169fe-fc23-486a-aa1e-540b26cfa1c6" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-deletes": [ "11999" ], + "x-ms-correlation-request-id": [ "e9b7f05c-8ee1-46e6-a952-43ac6d0a8676" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T050959Z:e9b7f05c-8ee1-46e6-a952-43ac6d0a8676" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: E94A9713B9624CCCB4DC236421DB4FFB Ref B: MAA201060515045 Ref C: 2024-10-31T05:09:56Z" ], + "Date": [ "Thu, 31 Oct 2024 05:09:59 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Remove-AzContainerInstanceContainerGroupProfile+[NoContext]+DeleteViaIdentitySpotPriority+$GET+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroupProfiles/test-cgponypi-remove2?api-version=2024-05-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroupProfiles/test-cgponypi-remove2?api-version=2024-05-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "102" ], + "x-ms-client-request-id": [ "d16aaa6b-4a18-43be-8a64-3c8f9d776445" ], + "CommandName": [ "Get-AzContainerInstanceContainerGroupProfile" ], + "FullCommandName": [ "Get-AzContainerInstanceContainerGroupProfile_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "eastus:1f812ed9-0831-4b6c-bba6-e8c0d8f88a9b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "7305190a-a217-4d18-af34-ecea12ff2df3" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T051000Z:7305190a-a217-4d18-af34-ecea12ff2df3" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 50D013E8D01E45FD93639F0085806363 Ref B: MAA201060515045 Ref C: 2024-10-31T05:10:00Z" ], + "Date": [ "Thu, 31 Oct 2024 05:09:59 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "502" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"osType\":\"Linux\",\"priority\":\"Spot\",\"revision\":1},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroupProfiles/test-cgponypi-remove2\",\"name\":\"test-cgponypi-remove2\",\"type\":\"Microsoft.ContainerInstance/containerGroupProfiles\",\"location\":\"eastus\"}", + "isContentBase64": false + } + }, + "Remove-AzContainerInstanceContainerGroupProfile+[NoContext]+DeleteViaIdentitySpotPriority+$DELETE+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroupProfiles/test-cgponypi-remove2?api-version=2024-05-01-preview+2": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroupProfiles/test-cgponypi-remove2?api-version=2024-05-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "103" ], + "x-ms-client-request-id": [ "d118b471-027d-49a9-b0d2-bef717bc35e1" ], + "CommandName": [ "Remove-AzContainerInstanceContainerGroupProfile" ], + "FullCommandName": [ "Remove-AzContainerInstanceContainerGroupProfile_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "eastus:4214c062-b3cb-4fbc-9406-93621d7cd76f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-deletes": [ "11999" ], + "x-ms-correlation-request-id": [ "66a501ad-f00d-441a-a639-3f0619674d49" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T051002Z:66a501ad-f00d-441a-a639-3f0619674d49" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 190C12540DF24B4DA1B3D75CE4CC1A8B Ref B: MAA201060515045 Ref C: 2024-10-31T05:10:00Z" ], + "Date": [ "Thu, 31 Oct 2024 05:10:01 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Remove-AzContainerInstanceContainerGroupProfile+[NoContext]+DeleteConfidentialSku+$DELETE+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroupProfiles/test-confidential-containergroupprofileiycrg-remove1?api-version=2024-05-01-preview+1": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroupProfiles/test-confidential-containergroupprofileiycrg-remove1?api-version=2024-05-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "104" ], + "x-ms-client-request-id": [ "77e6d46c-f65d-4cc8-b713-bfd2a1958541" ], + "CommandName": [ "Remove-AzContainerInstanceContainerGroupProfile" ], + "FullCommandName": [ "Remove-AzContainerInstanceContainerGroupProfile_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "eastus:4ea7667a-e509-46fe-aadb-2f034812085f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-deletes": [ "11999" ], + "x-ms-correlation-request-id": [ "9f0ddd50-3110-4fc3-aa6e-c543e691e94b" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T051005Z:9f0ddd50-3110-4fc3-aa6e-c543e691e94b" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 912CE72F427844D6904FCFB3AC5545C4 Ref B: MAA201060515045 Ref C: 2024-10-31T05:10:02Z" ], + "Date": [ "Thu, 31 Oct 2024 05:10:05 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Remove-AzContainerInstanceContainerGroupProfile+[NoContext]+DeleteViaIdentityConfidentialSku+$GET+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroupProfiles/test-confidential-containergroupprofileiycrg-remove2?api-version=2024-05-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroupProfiles/test-confidential-containergroupprofileiycrg-remove2?api-version=2024-05-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "105" ], + "x-ms-client-request-id": [ "003f197a-4c13-4fee-9529-38a1e1eafbdb" ], + "CommandName": [ "Get-AzContainerInstanceContainerGroupProfile" ], + "FullCommandName": [ "Get-AzContainerInstanceContainerGroupProfile_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "eastus:deca25b2-91c2-4673-824c-4b2bc08f1b5e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "4651f821-0896-43a7-a0ca-845e718b8fa7" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T051006Z:4651f821-0896-43a7-a0ca-845e718b8fa7" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 2E1B5B16E5DC46F395EA1A09F087A62A Ref B: MAA201060515045 Ref C: 2024-10-31T05:10:05Z" ], + "Date": [ "Thu, 31 Oct 2024 05:10:05 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "567" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"sku\":\"Confidential\",\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"osType\":\"Linux\",\"revision\":1},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroupProfiles/test-confidential-containergroupprofileiycrg-remove2\",\"name\":\"test-confidential-containergroupprofileiycrg-remove2\",\"type\":\"Microsoft.ContainerInstance/containerGroupProfiles\",\"location\":\"eastus\"}", + "isContentBase64": false + } + }, + "Remove-AzContainerInstanceContainerGroupProfile+[NoContext]+DeleteViaIdentityConfidentialSku+$DELETE+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroupProfiles/test-confidential-containergroupprofileiycrg-remove2?api-version=2024-05-01-preview+2": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroupProfiles/test-confidential-containergroupprofileiycrg-remove2?api-version=2024-05-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "106" ], + "x-ms-client-request-id": [ "e7352d86-a04d-4233-8896-0ce6f255a005" ], + "CommandName": [ "Remove-AzContainerInstanceContainerGroupProfile" ], + "FullCommandName": [ "Remove-AzContainerInstanceContainerGroupProfile_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "eastus:f30b68cc-1210-4609-a6c0-5e685613847b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-deletes": [ "11999" ], + "x-ms-correlation-request-id": [ "f317e0e3-e2cf-47ce-845c-82eff85f0891" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T051008Z:f317e0e3-e2cf-47ce-845c-82eff85f0891" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: D0B0E064FF6D40F3BE9B159C883880E9 Ref B: MAA201060515045 Ref C: 2024-10-31T05:10:06Z" ], + "Date": [ "Thu, 31 Oct 2024 05:10:07 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null, + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/test/Remove-AzContainerInstanceContainerGroupProfile.Tests.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/test/Remove-AzContainerInstanceContainerGroupProfile.Tests.ps1 new file mode 100644 index 000000000000..ff83a06e7824 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/test/Remove-AzContainerInstanceContainerGroupProfile.Tests.ps1 @@ -0,0 +1,44 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzContainerInstanceContainerGroupProfile')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Remove-AzContainerInstanceContainerGroupProfile.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Remove-AzContainerInstanceContainerGroupProfile' { + It 'Delete' { + Remove-AzContainerInstanceContainerGroupProfile -Name "$($env.containerGroupProfileName)-remove1" -ResourceGroupName $env.resourceGroupName + } + + It 'DeleteViaIdentity' { + $remove = Get-AzContainerInstanceContainerGroupProfile -ResourceGroupName $env.resourceGroupName -Name "$($env.containerGroupProfileName)-remove2" + Remove-AzContainerInstanceContainerGroupProfile -InputObject $remove + } + + It 'DeleteSpotPriority' { + Remove-AzContainerInstanceContainerGroupProfile -Name "$($env.spotContainerGroupProfileName)-remove1" -ResourceGroupName $env.resourceGroupName + } + + It 'DeleteViaIdentitySpotPriority' { + $remove = Get-AzContainerInstanceContainerGroupProfile -ResourceGroupName $env.resourceGroupName -Name "$($env.spotContainerGroupProfileName)-remove2" + Remove-AzContainerInstanceContainerGroupProfile -InputObject $remove + } + + It 'DeleteConfidentialSku' { + Remove-AzContainerInstanceContainerGroupProfile -Name "$($env.confidentialContainerGroupProfileName)-remove1" -ResourceGroupName $env.resourceGroupName + } + + It 'DeleteViaIdentityConfidentialSku' { + $remove = Get-AzContainerInstanceContainerGroupProfile -ResourceGroupName $env.resourceGroupName -Name "$($env.confidentialContainerGroupProfileName)-remove2" + Remove-AzContainerInstanceContainerGroupProfile -InputObject $remove + } +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/test/Restart-AzContainerGroup.Recording.json b/src/ContainerInstance/ContainerInstance.Autorest/test/Restart-AzContainerGroup.Recording.json index 526389f919dd..a36f4aaff5f9 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/test/Restart-AzContainerGroup.Recording.json +++ b/src/ContainerInstance/ContainerInstance.Autorest/test/Restart-AzContainerGroup.Recording.json @@ -1,17 +1,17 @@ { - "Restart-AzContainerGroup+[NoContext]+Restart+$POST+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg/restart?api-version=2022-10-01-preview+1": { + "Restart-AzContainerGroup+[NoContext]+Restart+$POST+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg/restart?api-version=2024-05-01-preview+1": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg/restart?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg/restart?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "92" ], - "x-ms-client-request-id": [ "f7a4f520-adee-4cf8-b1e3-a07993c2231f" ], + "x-ms-unique-id": [ "107" ], + "x-ms-client-request-id": [ "12300a89-0064-461c-9e48-2e447107e03e" ], "CommandName": [ "Restart-AzContainerGroup" ], "FullCommandName": [ "Restart-AzContainerGroup_Restart" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -22,14 +22,17 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/providers/Microsoft.ContainerInstance/locations/eastus/operations/e32faedb-1c16-4463-960f-24836631f613?api-version=2018-06-01" ], - "x-ms-request-id": [ "eastus:e32faedb-1c16-4463-960f-24836631f613" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], - "x-ms-correlation-request-id": [ "e3c25c81-51fd-4592-8a6e-25e425d46b56" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T001324Z:e3c25c81-51fd-4592-8a6e-25e425d46b56" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/providers/Microsoft.ContainerInstance/locations/eastus/operations/d44e52e3-c111-40b1-9d7f-d3973a686fdc?api-version=2018-06-01\u0026t=638659482329773565\u0026c=MIIHhzCCBm-gAwIBAgITHgVsohlR2527oAb3YwAABWyiGTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTIyMTIzNzU1WhcNMjUwMzIxMTIzNzU1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMhrLEJmsmtpzYzyjkwosX72drFxelF_0kAmuW7jzqQUwb3Vbkmt3AMdawBA7iPG-j-_iaEVRdn5iaEuJE6hSge15_CbeDkRt-qHgospNLcjh6GjynbLyFCQH_IkKY4Mc0yIlKxilQSCf2V6ah2w7S1CyC5zwZroBYavu5w0ZL02jRKMTNVzB03DnGhQGJ7gJbtKJ9AbjVcFwFTpT0Z0Yo-sLpwoVvADWng0JznFSekROEXCF_U3gHMssCctipkbrivaRFNKL3OjHjvuPxD8gsBo2BR_swq3Eyj-68_1B2-zYVD0d811pP8URR-43YYAMXO2Us1Uw6dn-b351XnW8JECAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMi5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNi5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDIuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAyLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA2LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMi5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNi5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDIuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3J0MB0GA1UdDgQWBBTLk-Eh1Xfk5Jotz1gl5hr4G-tKhTAOBgNVHQ8BAf8EBAMCBaAwggEmBgNVHR8EggEdMIIBGTCCARWgggERoIIBDYY_aHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JsMIGdBgNVHSAEgZUwgZIwDAYKKwYBBAGCN3sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAG22HO9nSE7AYf9OZGmPXw_SpE0CIxcQiahWc3LG3zRYLxmiKsYYlN9_r_6fPeEmIs7P7xm7g_xAAHLymI5BQDzGsW5GzAzYVOwolJBj3EcX1bxxIqeEgLvHNmYOr4D5MZFv14TGMHziu0TzPAbbVe9-DmMbrqs1mszrnuUiHTsmKE2oNmv4gjZMYSJAdsUzkjxQEa8t1t7FUEvbDkWkYSdqK0-OoTDVLsRVwRNk9XJ04coDgWql1-iv6bYNXyhC0L_-bdTOs_Gnzu-tFEA2we7Zkew_fhDuJwGTDnhaqvhush0SPJuFmoYBvmEzEJsc_Bjay2DrOHiLTopNoBJVrt8\u0026s=c_WOcctlMZflFQCmKGCy_g277bgDNhiy6h7O1S2-EIW3H0bH26W32drIQiFnpCPXPh5Agi9sGnysRoxzZnxu0xmDKa4UjmoL_0Im0XUNS16oWhA0RHbMrGV0d-4yLLNYJclKxhYh4bCz6L2imNgKOVVzOIKLhCF8R4zBGiN0zBFjsNBH_JCqaFnswB1X-s9_4ORIbyG8lW-yBZ_uVxcEdWWCoEC4AXnVEEt1dhrZSjZKZVJZMyCx3DotSKMnifBNUGzsp7C3wXTUfK2S2bye2CtRw51EbULuIJ3NWtU2U88kfaSororf4jlrS6fCC4KNb1Qwc5SEqARjpvE4tQJWuw\u0026h=dheAfSO_zFVaCjMD3ZAIHNjWD06VIhEI5PJpmyCRnVQ" ], + "x-ms-request-id": [ "eastus:d44e52e3-c111-40b1-9d7f-d3973a686fdc" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], + "x-ms-correlation-request-id": [ "b58c6376-b967-41f0-926a-3c79dddfa519" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T051032Z:b58c6376-b967-41f0-926a-3c79dddfa519" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:13:24 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: FA73F9B176D34F5688CDB9DD2B13F277 Ref B: MAA201060515045 Ref C: 2024-10-31T05:10:32Z" ], + "Date": [ "Thu, 31 Oct 2024 05:10:32 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ] @@ -38,19 +41,19 @@ "isContentBase64": false } }, - "Restart-AzContainerGroup+[NoContext]+RestartViaIdentity+$GET+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg?api-version=2022-10-01-preview+1": { + "Restart-AzContainerGroup+[NoContext]+RestartViaIdentity+$GET+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg?api-version=2024-05-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "93" ], - "x-ms-client-request-id": [ "64596b13-ae56-413f-8e44-047787958aa8" ], + "x-ms-unique-id": [ "108" ], + "x-ms-client-request-id": [ "65241a3b-1399-405f-8b4c-f7861845c3e9" ], "CommandName": [ "Get-AzContainerGroup" ], "FullCommandName": [ "Get-AzContainerGroup_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -61,37 +64,39 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-request-id": [ "eastus:48013c0b-5d5b-4c90-9db0-b4cd5d25f2df" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11938" ], - "x-ms-correlation-request-id": [ "fd2a90bd-6d0c-4233-95e4-c6812d54969d" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T001325Z:fd2a90bd-6d0c-4233-95e4-c6812d54969d" ], + "x-ms-request-id": [ "eastus:7fbd6601-efb4-41c2-9e7c-eee360657fe0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "1cf26930-8e86-4b5d-b0fe-ad6e4cd847fb" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T051034Z:1cf26930-8e86-4b5d-b0fe-ad6e4cd847fb" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:13:25 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 24BAFEAD3ECF4D27A28FE07E8EE52923 Ref B: MAA201060515045 Ref C: 2024-10-31T05:10:33Z" ], + "Date": [ "Thu, 31 Oct 2024 05:10:33 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1355" ], + "Content-Length": [ "1600" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Updating\",\"containers\":[{\"name\":\"bez-test-ci\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2023-02-17T23:53:48.067Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:53:26Z\",\"lastTimestamp\":\"2023-02-17T23:53:26Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:53:35Z\",\"lastTimestamp\":\"2023-02-17T23:53:35Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:53:48Z\",\"lastTimestamp\":\"2023-02-17T23:53:48Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"}},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg\",\"name\":\"bez-test-cg\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\",\"tags\":{\"key\":\"value\"}}", + "Content": "{\"properties\":{\"sku\":\"Standard\",\"isCreatedFromStandbyPool\":false,\"provisioningState\":\"Updating\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"bez-test-ci\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{}},\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2024-10-31T04:52:46.771Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:52:33Z\",\"lastTimestamp\":\"2024-10-31T04:52:33Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:52:38Z\",\"lastTimestamp\":\"2024-10-31T04:52:38Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:52:46Z\",\"lastTimestamp\":\"2024-10-31T04:52:46Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"}},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg\",\"name\":\"bez-test-cg\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\",\"tags\":{\"key\":\"value\"}}", "isContentBase64": false } }, - "Restart-AzContainerGroup+[NoContext]+RestartViaIdentity+$POST+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg/restart?api-version=2022-10-01-preview+2": { + "Restart-AzContainerGroup+[NoContext]+RestartViaIdentity+$POST+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg/restart?api-version=2024-05-01-preview+2": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg/restart?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg/restart?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "94" ], - "x-ms-client-request-id": [ "46238ac7-2193-47db-a7ce-3cf96dfeeb51" ], + "x-ms-unique-id": [ "109" ], + "x-ms-client-request-id": [ "66d1caf2-0cd3-4e04-8785-4c1bba92af44" ], "CommandName": [ "Restart-AzContainerGroup" ], "FullCommandName": [ "Restart-AzContainerGroup_RestartViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -102,14 +107,17 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/providers/Microsoft.ContainerInstance/locations/eastus/operations/cc090209-83c2-4009-908f-56d35773c3e1?api-version=2018-06-01" ], - "x-ms-request-id": [ "eastus:cc090209-83c2-4009-908f-56d35773c3e1" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1197" ], - "x-ms-correlation-request-id": [ "315856fb-16a8-47cf-b1ec-5df86b773ed5" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T001326Z:315856fb-16a8-47cf-b1ec-5df86b773ed5" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/providers/Microsoft.ContainerInstance/locations/eastus/operations/47098766-09b7-4b4c-a941-a1cb4ad22a8f?api-version=2018-06-01\u0026t=638659482349859310\u0026c=MIIHhzCCBm-gAwIBAgITHgVsohlR2527oAb3YwAABWyiGTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTIyMTIzNzU1WhcNMjUwMzIxMTIzNzU1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMhrLEJmsmtpzYzyjkwosX72drFxelF_0kAmuW7jzqQUwb3Vbkmt3AMdawBA7iPG-j-_iaEVRdn5iaEuJE6hSge15_CbeDkRt-qHgospNLcjh6GjynbLyFCQH_IkKY4Mc0yIlKxilQSCf2V6ah2w7S1CyC5zwZroBYavu5w0ZL02jRKMTNVzB03DnGhQGJ7gJbtKJ9AbjVcFwFTpT0Z0Yo-sLpwoVvADWng0JznFSekROEXCF_U3gHMssCctipkbrivaRFNKL3OjHjvuPxD8gsBo2BR_swq3Eyj-68_1B2-zYVD0d811pP8URR-43YYAMXO2Us1Uw6dn-b351XnW8JECAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMi5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNi5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDIuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAyLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA2LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMi5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNi5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDIuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3J0MB0GA1UdDgQWBBTLk-Eh1Xfk5Jotz1gl5hr4G-tKhTAOBgNVHQ8BAf8EBAMCBaAwggEmBgNVHR8EggEdMIIBGTCCARWgggERoIIBDYY_aHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JsMIGdBgNVHSAEgZUwgZIwDAYKKwYBBAGCN3sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAG22HO9nSE7AYf9OZGmPXw_SpE0CIxcQiahWc3LG3zRYLxmiKsYYlN9_r_6fPeEmIs7P7xm7g_xAAHLymI5BQDzGsW5GzAzYVOwolJBj3EcX1bxxIqeEgLvHNmYOr4D5MZFv14TGMHziu0TzPAbbVe9-DmMbrqs1mszrnuUiHTsmKE2oNmv4gjZMYSJAdsUzkjxQEa8t1t7FUEvbDkWkYSdqK0-OoTDVLsRVwRNk9XJ04coDgWql1-iv6bYNXyhC0L_-bdTOs_Gnzu-tFEA2we7Zkew_fhDuJwGTDnhaqvhush0SPJuFmoYBvmEzEJsc_Bjay2DrOHiLTopNoBJVrt8\u0026s=f5_7Zlp-vw35LLupzDXp-mYE1CNgxV7Kanx7vqWsAhxr72Uz4xMLkE7tQlc8uCcHk7qKoJVHixQhxHYZP9c7HxYlzUzEq67bu1JAfHehJptczCHOsp3z5sIt2IUmYTQd3pa3hT4aWKVrtDug7f_0l_-NakEoIjnAHT853KxorHr_NpShPRXcYmGX0rRRmNtxMshm8hAguwnfdY25iB80ObCTthUiovEaZ0DHc9TJWJiN-KhHPxRS-O3todKSmE5E03KZOzyAHrK1TKP_ZA3MQ1_wWNTk9cCJxyhab8ItaiYufpJWD2k3oJangXxLD26KMgDE3v1NzFOvIELf17wXig\u0026h=f7KF7429WeugEcIpiEcnKtp6YEz9doNJdIatBQLPq0g" ], + "x-ms-request-id": [ "eastus:47098766-09b7-4b4c-a941-a1cb4ad22a8f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], + "x-ms-correlation-request-id": [ "d5275498-30b6-4ba4-9e07-a4f11cbbe0f7" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T051035Z:d5275498-30b6-4ba4-9e07-a4f11cbbe0f7" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:13:26 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: B55CEAA6878C41AEAEF361B29C5076BB Ref B: MAA201060515045 Ref C: 2024-10-31T05:10:34Z" ], + "Date": [ "Thu, 31 Oct 2024 05:10:34 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ] diff --git a/src/ContainerInstance/ContainerInstance.Autorest/test/Restart-AzContainerGroupConfidentialSku.Recording.json b/src/ContainerInstance/ContainerInstance.Autorest/test/Restart-AzContainerGroupConfidentialSku.Recording.json index 04f57fe116d5..a9b11ada5ebb 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/test/Restart-AzContainerGroupConfidentialSku.Recording.json +++ b/src/ContainerInstance/ContainerInstance.Autorest/test/Restart-AzContainerGroupConfidentialSku.Recording.json @@ -1,17 +1,17 @@ { - "Restart-AzContainerGroupConfidentialSku+[NoContext]+Restart+$POST+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup/restart?api-version=2022-10-01-preview+1": { + "Restart-AzContainerGroupConfidentialSku+[NoContext]+Restart+$POST+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup/restart?api-version=2024-05-01-preview+1": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup/restart?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup/restart?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "95" ], - "x-ms-client-request-id": [ "cf4ce12d-1712-429f-838b-4d651ecfc4b3" ], + "x-ms-unique-id": [ "110" ], + "x-ms-client-request-id": [ "8e2438fe-6291-428e-a6d7-4fe2b5c2c184" ], "CommandName": [ "Restart-AzContainerGroup" ], "FullCommandName": [ "Restart-AzContainerGroup_Restart" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -22,14 +22,17 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/providers/Microsoft.ContainerInstance/locations/eastus/operations/799e57f8-916f-4dce-adf0-4db19500000c?api-version=2018-06-01" ], - "x-ms-request-id": [ "eastus:799e57f8-916f-4dce-adf0-4db19500000c" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1196" ], - "x-ms-correlation-request-id": [ "601b9dc6-d3af-42c3-8abf-946ee32480c3" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T001336Z:601b9dc6-d3af-42c3-8abf-946ee32480c3" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/providers/Microsoft.ContainerInstance/locations/eastus/operations/cca1d6a2-ca2d-4e9f-ae17-3b68d9af6864?api-version=2018-06-01\u0026t=638659482459783339\u0026c=MIIHhzCCBm-gAwIBAgITHgVsohlR2527oAb3YwAABWyiGTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTIyMTIzNzU1WhcNMjUwMzIxMTIzNzU1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMhrLEJmsmtpzYzyjkwosX72drFxelF_0kAmuW7jzqQUwb3Vbkmt3AMdawBA7iPG-j-_iaEVRdn5iaEuJE6hSge15_CbeDkRt-qHgospNLcjh6GjynbLyFCQH_IkKY4Mc0yIlKxilQSCf2V6ah2w7S1CyC5zwZroBYavu5w0ZL02jRKMTNVzB03DnGhQGJ7gJbtKJ9AbjVcFwFTpT0Z0Yo-sLpwoVvADWng0JznFSekROEXCF_U3gHMssCctipkbrivaRFNKL3OjHjvuPxD8gsBo2BR_swq3Eyj-68_1B2-zYVD0d811pP8URR-43YYAMXO2Us1Uw6dn-b351XnW8JECAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMi5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNi5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDIuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAyLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA2LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMi5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNi5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDIuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3J0MB0GA1UdDgQWBBTLk-Eh1Xfk5Jotz1gl5hr4G-tKhTAOBgNVHQ8BAf8EBAMCBaAwggEmBgNVHR8EggEdMIIBGTCCARWgggERoIIBDYY_aHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JsMIGdBgNVHSAEgZUwgZIwDAYKKwYBBAGCN3sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAG22HO9nSE7AYf9OZGmPXw_SpE0CIxcQiahWc3LG3zRYLxmiKsYYlN9_r_6fPeEmIs7P7xm7g_xAAHLymI5BQDzGsW5GzAzYVOwolJBj3EcX1bxxIqeEgLvHNmYOr4D5MZFv14TGMHziu0TzPAbbVe9-DmMbrqs1mszrnuUiHTsmKE2oNmv4gjZMYSJAdsUzkjxQEa8t1t7FUEvbDkWkYSdqK0-OoTDVLsRVwRNk9XJ04coDgWql1-iv6bYNXyhC0L_-bdTOs_Gnzu-tFEA2we7Zkew_fhDuJwGTDnhaqvhush0SPJuFmoYBvmEzEJsc_Bjay2DrOHiLTopNoBJVrt8\u0026s=sxrwqMHCYBei9OeGk0cVUoipwABRoXaZjO-l9krBv-LRgwMziIgA5wOcyLf6djJGKYQqyHAF97I4Je-KP-FWwhyE3JGaxXvTl9JLsfPw8nh8c6q0O2YPuNgUMaHY-kui0PrpBUdIbpqSmHYlsC3QAEYVJegkOwuQ1lSAC47AEvejwBHNkKlhjc3BF_1OlJJ4Eq7_EnAFVhsnG7WreW-366QASGy1DYxhmo5mua4UAsbyHTt69zzJxPdIgicKc8-JkGfetdchEwHuNKuAEZanXB3mPvUh_fSaunKbRLfwbSfGDMW-k0uhxypd8_YYh7mKmjVobZ6QQopHS0Ji_O29LQ\u0026h=gKWJZzY0NOfbSuvNW7Wrh0pVJdgpI44brVUivRgSx08" ], + "x-ms-request-id": [ "eastus:cca1d6a2-ca2d-4e9f-ae17-3b68d9af6864" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], + "x-ms-correlation-request-id": [ "bc6aaae3-a5a4-4231-9182-7ca22de74e9b" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T051045Z:bc6aaae3-a5a4-4231-9182-7ca22de74e9b" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:13:36 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 3BE9592E6AF541D095F79818AB9C2510 Ref B: MAA201060515045 Ref C: 2024-10-31T05:10:44Z" ], + "Date": [ "Thu, 31 Oct 2024 05:10:45 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ] @@ -38,19 +41,19 @@ "isContentBase64": false } }, - "Restart-AzContainerGroupConfidentialSku+[NoContext]+RestartViaIdentity+$GET+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup?api-version=2022-10-01-preview+1": { + "Restart-AzContainerGroupConfidentialSku+[NoContext]+RestartViaIdentity+$GET+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup?api-version=2024-05-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "96" ], - "x-ms-client-request-id": [ "61471bb9-9c9a-4b5d-8793-bb77de99b26b" ], + "x-ms-unique-id": [ "111" ], + "x-ms-client-request-id": [ "cc47a38a-8f34-4648-9065-429e09bd81c2" ], "CommandName": [ "Get-AzContainerGroup" ], "FullCommandName": [ "Get-AzContainerGroup_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -61,37 +64,39 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-request-id": [ "eastus:242711aa-9698-40d0-a04f-bfc883926667" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11937" ], - "x-ms-correlation-request-id": [ "3db26e9d-3221-4631-a038-2c6bb38eeea3" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T001336Z:3db26e9d-3221-4631-a038-2c6bb38eeea3" ], + "x-ms-request-id": [ "eastus:f90f9b63-42c8-4671-a9ed-67fdc0216713" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "6615225b-9963-427a-997f-c95263824d7d" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T051046Z:6615225b-9963-427a-997f-c95263824d7d" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:13:36 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 2AE26046AD1C46838C84D22A91A6A527 Ref B: MAA201060515045 Ref C: 2024-10-31T05:10:46Z" ], + "Date": [ "Thu, 31 Oct 2024 05:10:46 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2478" ], + "Content-Length": [ "2723" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"sku\":\"Confidential\",\"confidentialComputeProperties\":{\"ccePolicy\":\"cGFja2FnZSBwb2xpY3kKCmFwaV9zdm4gOj0gIjAuMTAuMCIKCm1vdW50X2RldmljZSA6PSB7ImFsbG93ZWQiOiB0cnVlfQptb3VudF9vdmVybGF5IDo9IHsiYWxsb3dlZCI6IHRydWV9CmNyZWF0ZV9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbCwgImFsbG93X3N0ZGlvX2FjY2VzcyI6IHRydWV9CnVubW91bnRfZGV2aWNlIDo9IHsiYWxsb3dlZCI6IHRydWV9IAp1bm1vdW50X292ZXJsYXkgOj0geyJhbGxvd2VkIjogdHJ1ZX0KZXhlY19pbl9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbH0KZXhlY19leHRlcm5hbCA6PSB7ImFsbG93ZWQiOiB0cnVlLCAiZW52X2xpc3QiOiBudWxsLCAiYWxsb3dfc3RkaW9fYWNjZXNzIjogdHJ1ZX0Kc2h1dGRvd25fY29udGFpbmVyIDo9IHsiYWxsb3dlZCI6IHRydWV9CnNpZ25hbF9jb250YWluZXJfcHJvY2VzcyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV9tb3VudCA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CmdldF9wcm9wZXJ0aWVzIDo9IHsiYWxsb3dlZCI6IHRydWV9CmR1bXBfc3RhY2tzIDo9IHsiYWxsb3dlZCI6IHRydWV9CnJ1bnRpbWVfbG9nZ2luZyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpsb2FkX2ZyYWdtZW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CnNjcmF0Y2hfbW91bnQgOj0geyJhbGxvd2VkIjogdHJ1ZX0Kc2NyYXRjaF91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9Cg==\"},\"provisioningState\":\"Updating\",\"containers\":[{\"name\":\"bez-test-ci\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2023-02-18T00:07:52.013Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2023-02-18T00:07:01Z\",\"lastTimestamp\":\"2023-02-18T00:07:01Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-18T00:07:06Z\",\"lastTimestamp\":\"2023-02-18T00:07:06Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-18T00:07:52Z\",\"lastTimestamp\":\"2023-02-18T00:07:52Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"}},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup\",\"name\":\"test-confidential-containergroup\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\",\"tags\":{\"key\":\"value\"}}", + "Content": "{\"properties\":{\"sku\":\"Confidential\",\"confidentialComputeProperties\":{\"ccePolicy\":\"cGFja2FnZSBwb2xpY3kKCmFwaV9zdm4gOj0gIjAuMTAuMCIKCm1vdW50X2RldmljZSA6PSB7ImFsbG93ZWQiOiB0cnVlfQptb3VudF9vdmVybGF5IDo9IHsiYWxsb3dlZCI6IHRydWV9CmNyZWF0ZV9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbCwgImFsbG93X3N0ZGlvX2FjY2VzcyI6IHRydWV9CnVubW91bnRfZGV2aWNlIDo9IHsiYWxsb3dlZCI6IHRydWV9IAp1bm1vdW50X292ZXJsYXkgOj0geyJhbGxvd2VkIjogdHJ1ZX0KZXhlY19pbl9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbH0KZXhlY19leHRlcm5hbCA6PSB7ImFsbG93ZWQiOiB0cnVlLCAiZW52X2xpc3QiOiBudWxsLCAiYWxsb3dfc3RkaW9fYWNjZXNzIjogdHJ1ZX0Kc2h1dGRvd25fY29udGFpbmVyIDo9IHsiYWxsb3dlZCI6IHRydWV9CnNpZ25hbF9jb250YWluZXJfcHJvY2VzcyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV9tb3VudCA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CmdldF9wcm9wZXJ0aWVzIDo9IHsiYWxsb3dlZCI6IHRydWV9CmR1bXBfc3RhY2tzIDo9IHsiYWxsb3dlZCI6IHRydWV9CnJ1bnRpbWVfbG9nZ2luZyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpsb2FkX2ZyYWdtZW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CnNjcmF0Y2hfbW91bnQgOj0geyJhbGxvd2VkIjogdHJ1ZX0Kc2NyYXRjaF91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9Cg==\"},\"isCreatedFromStandbyPool\":false,\"provisioningState\":\"Updating\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"bez-test-ci\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{}},\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2024-10-31T05:04:30.701Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2024-10-31T05:04:11Z\",\"lastTimestamp\":\"2024-10-31T05:04:11Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T05:04:12Z\",\"lastTimestamp\":\"2024-10-31T05:04:12Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T05:04:30Z\",\"lastTimestamp\":\"2024-10-31T05:04:30Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"}},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup\",\"name\":\"test-confidential-containergroup\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\",\"tags\":{\"key\":\"value\"}}", "isContentBase64": false } }, - "Restart-AzContainerGroupConfidentialSku+[NoContext]+RestartViaIdentity+$POST+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup/restart?api-version=2022-10-01-preview+2": { + "Restart-AzContainerGroupConfidentialSku+[NoContext]+RestartViaIdentity+$POST+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup/restart?api-version=2024-05-01-preview+2": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup/restart?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup/restart?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "97" ], - "x-ms-client-request-id": [ "6555135f-8b51-4ec4-a3d8-b0d56b147a15" ], + "x-ms-unique-id": [ "112" ], + "x-ms-client-request-id": [ "5efd0f05-d988-4b96-a752-48d5ff07bf12" ], "CommandName": [ "Restart-AzContainerGroup" ], "FullCommandName": [ "Restart-AzContainerGroup_RestartViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -102,14 +107,17 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/providers/Microsoft.ContainerInstance/locations/eastus/operations/7dc01c2f-b0c7-45a7-b8cf-5e986763a2b7?api-version=2018-06-01" ], - "x-ms-request-id": [ "eastus:7dc01c2f-b0c7-45a7-b8cf-5e986763a2b7" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1195" ], - "x-ms-correlation-request-id": [ "7eaa9188-d2d2-452e-9328-d8755a5e94cb" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T001337Z:7eaa9188-d2d2-452e-9328-d8755a5e94cb" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/providers/Microsoft.ContainerInstance/locations/eastus/operations/8b238f27-8c6b-493c-8f86-1e253e888d4f?api-version=2018-06-01\u0026t=638659482472439778\u0026c=MIIHhzCCBm-gAwIBAgITHgVsohlR2527oAb3YwAABWyiGTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTIyMTIzNzU1WhcNMjUwMzIxMTIzNzU1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMhrLEJmsmtpzYzyjkwosX72drFxelF_0kAmuW7jzqQUwb3Vbkmt3AMdawBA7iPG-j-_iaEVRdn5iaEuJE6hSge15_CbeDkRt-qHgospNLcjh6GjynbLyFCQH_IkKY4Mc0yIlKxilQSCf2V6ah2w7S1CyC5zwZroBYavu5w0ZL02jRKMTNVzB03DnGhQGJ7gJbtKJ9AbjVcFwFTpT0Z0Yo-sLpwoVvADWng0JznFSekROEXCF_U3gHMssCctipkbrivaRFNKL3OjHjvuPxD8gsBo2BR_swq3Eyj-68_1B2-zYVD0d811pP8URR-43YYAMXO2Us1Uw6dn-b351XnW8JECAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMi5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNi5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDIuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAyLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA2LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMi5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNi5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDIuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3J0MB0GA1UdDgQWBBTLk-Eh1Xfk5Jotz1gl5hr4G-tKhTAOBgNVHQ8BAf8EBAMCBaAwggEmBgNVHR8EggEdMIIBGTCCARWgggERoIIBDYY_aHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JsMIGdBgNVHSAEgZUwgZIwDAYKKwYBBAGCN3sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAG22HO9nSE7AYf9OZGmPXw_SpE0CIxcQiahWc3LG3zRYLxmiKsYYlN9_r_6fPeEmIs7P7xm7g_xAAHLymI5BQDzGsW5GzAzYVOwolJBj3EcX1bxxIqeEgLvHNmYOr4D5MZFv14TGMHziu0TzPAbbVe9-DmMbrqs1mszrnuUiHTsmKE2oNmv4gjZMYSJAdsUzkjxQEa8t1t7FUEvbDkWkYSdqK0-OoTDVLsRVwRNk9XJ04coDgWql1-iv6bYNXyhC0L_-bdTOs_Gnzu-tFEA2we7Zkew_fhDuJwGTDnhaqvhush0SPJuFmoYBvmEzEJsc_Bjay2DrOHiLTopNoBJVrt8\u0026s=P8BuI2V0oCbMRnz38GX39tdbHIn4qK9_mdhWPqJ3ICe3VXRzQYof9tHLBUhoyflpG2NRel4c--3vP52nfl7FjoNghbwcOPDAy6OwhgjaIljm7ju07dvh39K-x-6ik2gnqVXoa32S43b1HjqMT3RAd_sxNM7VsIIc8xrwb5PAT8swEHW_atUu5OTl0C--6wFsZ2Co2_zC2lM-TZvkEq8c8_Dw9YJaFDu3nSdOTCn6AXpqwwsdXzxOLpwzsCcElPt5ERHU3ys73m0E3FnLtT-wMVctiuNZHOWqHchkwmbrxq2UzuTqPwh2PGPn3ysIOfrIuZKWe1gZqxBdncda6NQa2g\u0026h=t9DV8svGPFoj1_kJC62cBcuhpj5Y5yO1LKw07YO-JZk" ], + "x-ms-request-id": [ "eastus:8b238f27-8c6b-493c-8f86-1e253e888d4f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "798" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "11998" ], + "x-ms-correlation-request-id": [ "253b1e85-d4aa-4a28-92ff-82d878e0e67c" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T051047Z:253b1e85-d4aa-4a28-92ff-82d878e0e67c" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:13:37 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: E983BB6980C4401789A83A1BB8BC4070 Ref B: MAA201060515045 Ref C: 2024-10-31T05:10:46Z" ], + "Date": [ "Thu, 31 Oct 2024 05:10:46 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ] diff --git a/src/ContainerInstance/ContainerInstance.Autorest/test/Restart-AzContainerGroupRegularPriority.Recording.json b/src/ContainerInstance/ContainerInstance.Autorest/test/Restart-AzContainerGroupRegularPriority.Recording.json index ebf2bde85b32..b1b2b221403b 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/test/Restart-AzContainerGroupRegularPriority.Recording.json +++ b/src/ContainerInstance/ContainerInstance.Autorest/test/Restart-AzContainerGroupRegularPriority.Recording.json @@ -1,17 +1,17 @@ { - "Restart-AzContainerGroupRegularPriority+[NoContext]+Restart+$POST+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgq5m6g/restart?api-version=2022-10-01-preview+1": { + "Restart-AzContainerGroupRegularPriority+[NoContext]+Restart+$POST+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cgfl4g3/restart?api-version=2024-05-01-preview+1": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgq5m6g/restart?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cgfl4g3/restart?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "98" ], - "x-ms-client-request-id": [ "c0a7ecac-3693-4d01-9229-223b4888627b" ], + "x-ms-unique-id": [ "113" ], + "x-ms-client-request-id": [ "e6e47233-c0ff-4f38-b6f4-c7a2eadf1944" ], "CommandName": [ "Restart-AzContainerGroup" ], "FullCommandName": [ "Restart-AzContainerGroup_Restart" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -22,14 +22,17 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/providers/Microsoft.ContainerInstance/locations/eastus/operations/052d139f-4f68-4a0d-884c-42c18411d3c5?api-version=2018-06-01" ], - "x-ms-request-id": [ "eastus:052d139f-4f68-4a0d-884c-42c18411d3c5" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1194" ], - "x-ms-correlation-request-id": [ "ab7ae64e-8ecb-4a3f-a213-f53244718ffd" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T001346Z:ab7ae64e-8ecb-4a3f-a213-f53244718ffd" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/providers/Microsoft.ContainerInstance/locations/eastus/operations/9e88932d-f3f1-44d5-8be7-dcfa6ee44b76?api-version=2018-06-01\u0026t=638659482588532255\u0026c=MIIHhzCCBm-gAwIBAgITHgVsohlR2527oAb3YwAABWyiGTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTIyMTIzNzU1WhcNMjUwMzIxMTIzNzU1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMhrLEJmsmtpzYzyjkwosX72drFxelF_0kAmuW7jzqQUwb3Vbkmt3AMdawBA7iPG-j-_iaEVRdn5iaEuJE6hSge15_CbeDkRt-qHgospNLcjh6GjynbLyFCQH_IkKY4Mc0yIlKxilQSCf2V6ah2w7S1CyC5zwZroBYavu5w0ZL02jRKMTNVzB03DnGhQGJ7gJbtKJ9AbjVcFwFTpT0Z0Yo-sLpwoVvADWng0JznFSekROEXCF_U3gHMssCctipkbrivaRFNKL3OjHjvuPxD8gsBo2BR_swq3Eyj-68_1B2-zYVD0d811pP8URR-43YYAMXO2Us1Uw6dn-b351XnW8JECAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMi5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNi5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDIuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAyLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA2LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMi5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNi5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDIuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3J0MB0GA1UdDgQWBBTLk-Eh1Xfk5Jotz1gl5hr4G-tKhTAOBgNVHQ8BAf8EBAMCBaAwggEmBgNVHR8EggEdMIIBGTCCARWgggERoIIBDYY_aHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JsMIGdBgNVHSAEgZUwgZIwDAYKKwYBBAGCN3sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAG22HO9nSE7AYf9OZGmPXw_SpE0CIxcQiahWc3LG3zRYLxmiKsYYlN9_r_6fPeEmIs7P7xm7g_xAAHLymI5BQDzGsW5GzAzYVOwolJBj3EcX1bxxIqeEgLvHNmYOr4D5MZFv14TGMHziu0TzPAbbVe9-DmMbrqs1mszrnuUiHTsmKE2oNmv4gjZMYSJAdsUzkjxQEa8t1t7FUEvbDkWkYSdqK0-OoTDVLsRVwRNk9XJ04coDgWql1-iv6bYNXyhC0L_-bdTOs_Gnzu-tFEA2we7Zkew_fhDuJwGTDnhaqvhush0SPJuFmoYBvmEzEJsc_Bjay2DrOHiLTopNoBJVrt8\u0026s=ptk9KxZl1blM5fQy83iQ9zgXE4q1WFs2OJb2LCc25epJEvymJjVgQ_GNSHCbIOXkZFzLezgL9vyfmOd949Q38Ae_Eg_g-T9-8biabBeBypdCc5To_HpALStytZgl8oPanFeyS2PD6S9lYNciRdgAKalhu66FOutxIvQhBK-tVZCvqnU0i3qnkRYNvtrWfIIn3tWMiYd0JPjISvPk78poHWm8NgCCkRwdP6ASTfQysc7k81nfk2QbDRD-BmEd3Mb3NteY8h7aO-qFONdk1qmJoXklinzzyYea2O1HDKKhsTBc4MHh6JYCQ61Xh3tyLvlUf_Ag60jBeR6-af5gHpzsQg\u0026h=F13i9fTT0tF9qEAcA1ab6WdM8M6II2_x2fFn8dIXUvE" ], + "x-ms-request-id": [ "eastus:9e88932d-f3f1-44d5-8be7-dcfa6ee44b76" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], + "x-ms-correlation-request-id": [ "db185323-5119-406e-a359-493b6557f34b" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T051058Z:db185323-5119-406e-a359-493b6557f34b" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:13:46 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 86BEA6B3057B48C688493B21D9B40B4E Ref B: MAA201060515045 Ref C: 2024-10-31T05:10:58Z" ], + "Date": [ "Thu, 31 Oct 2024 05:10:58 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ] @@ -38,19 +41,19 @@ "isContentBase64": false } }, - "Restart-AzContainerGroupRegularPriority+[NoContext]+RestartViaIdentity+$GET+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgq5m6g?api-version=2022-10-01-preview+1": { + "Restart-AzContainerGroupRegularPriority+[NoContext]+RestartViaIdentity+$GET+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cgfl4g3?api-version=2024-05-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgq5m6g?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cgfl4g3?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "99" ], - "x-ms-client-request-id": [ "d0cdf912-95f4-4737-91f3-908599b244ed" ], + "x-ms-unique-id": [ "114" ], + "x-ms-client-request-id": [ "2af043ff-e539-4d51-a546-89f3fa7cd702" ], "CommandName": [ "Get-AzContainerGroup" ], "FullCommandName": [ "Get-AzContainerGroup_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -61,37 +64,39 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-request-id": [ "eastus:e924e8bd-9c35-4fdb-a8f6-25de3b033101" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11936" ], - "x-ms-correlation-request-id": [ "4eb72f4b-663b-4368-bce2-d6721de20dcc" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T001347Z:4eb72f4b-663b-4368-bce2-d6721de20dcc" ], + "x-ms-request-id": [ "eastus:27e656e9-e687-4c41-82c6-94249e76261e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "43f5fe29-ef8f-467d-b68f-96508fb50a3c" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T051059Z:43f5fe29-ef8f-467d-b68f-96508fb50a3c" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:13:46 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 38307A20ECB743CDA8D41550E4CDFE97 Ref B: MAA201060515045 Ref C: 2024-10-31T05:10:58Z" ], + "Date": [ "Thu, 31 Oct 2024 05:10:58 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1368" ], + "Content-Length": [ "1613" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Updating\",\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2023-02-17T23:55:24.634Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:55:05Z\",\"lastTimestamp\":\"2023-02-17T23:55:05Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:55:13Z\",\"lastTimestamp\":\"2023-02-17T23:55:13Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:55:24Z\",\"lastTimestamp\":\"2023-02-17T23:55:24Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"},\"priority\":\"Regular\"},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgq5m6g\",\"name\":\"test-cgq5m6g\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\",\"tags\":{\"key\":\"value\"}}", + "Content": "{\"properties\":{\"sku\":\"Standard\",\"isCreatedFromStandbyPool\":false,\"provisioningState\":\"Updating\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{}},\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2024-10-31T04:54:30.507Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:54:19Z\",\"lastTimestamp\":\"2024-10-31T04:54:19Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:54:21Z\",\"lastTimestamp\":\"2024-10-31T04:54:21Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:54:30Z\",\"lastTimestamp\":\"2024-10-31T04:54:30Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"},\"priority\":\"Regular\"},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cgfl4g3\",\"name\":\"test-cgfl4g3\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\",\"tags\":{\"key\":\"value\"}}", "isContentBase64": false } }, - "Restart-AzContainerGroupRegularPriority+[NoContext]+RestartViaIdentity+$POST+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgq5m6g/restart?api-version=2022-10-01-preview+2": { + "Restart-AzContainerGroupRegularPriority+[NoContext]+RestartViaIdentity+$POST+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cgfl4g3/restart?api-version=2024-05-01-preview+2": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgq5m6g/restart?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cgfl4g3/restart?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "100" ], - "x-ms-client-request-id": [ "6c4d5e77-576f-4bf0-a41c-4e9eb4971bc2" ], + "x-ms-unique-id": [ "115" ], + "x-ms-client-request-id": [ "b7dac879-47ab-484e-a6c2-d1863e0d53b8" ], "CommandName": [ "Restart-AzContainerGroup" ], "FullCommandName": [ "Restart-AzContainerGroup_RestartViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -102,14 +107,17 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/providers/Microsoft.ContainerInstance/locations/eastus/operations/a1e9f1d3-c81e-46fe-a468-604fc3ac429c?api-version=2018-06-01" ], - "x-ms-request-id": [ "eastus:a1e9f1d3-c81e-46fe-a468-604fc3ac429c" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1193" ], - "x-ms-correlation-request-id": [ "b549e578-43b8-4d0b-b44f-0d690f9e035f" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T001347Z:b549e578-43b8-4d0b-b44f-0d690f9e035f" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/providers/Microsoft.ContainerInstance/locations/eastus/operations/22472909-ab23-4db7-b9ef-827aa571c914?api-version=2018-06-01\u0026t=638659482601998500\u0026c=MIIHhzCCBm-gAwIBAgITHgVsohlR2527oAb3YwAABWyiGTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTIyMTIzNzU1WhcNMjUwMzIxMTIzNzU1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMhrLEJmsmtpzYzyjkwosX72drFxelF_0kAmuW7jzqQUwb3Vbkmt3AMdawBA7iPG-j-_iaEVRdn5iaEuJE6hSge15_CbeDkRt-qHgospNLcjh6GjynbLyFCQH_IkKY4Mc0yIlKxilQSCf2V6ah2w7S1CyC5zwZroBYavu5w0ZL02jRKMTNVzB03DnGhQGJ7gJbtKJ9AbjVcFwFTpT0Z0Yo-sLpwoVvADWng0JznFSekROEXCF_U3gHMssCctipkbrivaRFNKL3OjHjvuPxD8gsBo2BR_swq3Eyj-68_1B2-zYVD0d811pP8URR-43YYAMXO2Us1Uw6dn-b351XnW8JECAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMi5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNi5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDIuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAyLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA2LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMi5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNi5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDIuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3J0MB0GA1UdDgQWBBTLk-Eh1Xfk5Jotz1gl5hr4G-tKhTAOBgNVHQ8BAf8EBAMCBaAwggEmBgNVHR8EggEdMIIBGTCCARWgggERoIIBDYY_aHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JsMIGdBgNVHSAEgZUwgZIwDAYKKwYBBAGCN3sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAG22HO9nSE7AYf9OZGmPXw_SpE0CIxcQiahWc3LG3zRYLxmiKsYYlN9_r_6fPeEmIs7P7xm7g_xAAHLymI5BQDzGsW5GzAzYVOwolJBj3EcX1bxxIqeEgLvHNmYOr4D5MZFv14TGMHziu0TzPAbbVe9-DmMbrqs1mszrnuUiHTsmKE2oNmv4gjZMYSJAdsUzkjxQEa8t1t7FUEvbDkWkYSdqK0-OoTDVLsRVwRNk9XJ04coDgWql1-iv6bYNXyhC0L_-bdTOs_Gnzu-tFEA2we7Zkew_fhDuJwGTDnhaqvhush0SPJuFmoYBvmEzEJsc_Bjay2DrOHiLTopNoBJVrt8\u0026s=AZSmpOTaTP0-R9c803hOvG-hGXHvxkK0l8i-Bqa94GP3Ps8nb12unTZLoNkdXQm2AssF6lJAX0T_oEM4TbVT1tjlAoulZDpPrpHTmmXdqDEXJmzVWJoLpBI_1agJrDADm3ha5ZhhG2JEBFS3CJERyVFpwQg-WGFMXriwuZgf2eERnUmqc9v23EmnVGXmjPKdaYZrx76SjQuh_VbpDMFBV3zYy5l3ovkKiK6MQFzz44O8rkec-Yj7feZ1aF93jzdQiKwGLwoG45Fus1xSdS9H0mqCJOxAXPi1PpsG8UEACnlZp3t2H_307OJwhRr9ly1MbBmfToAejL7zCFPZi11rnQ\u0026h=hSDuw3d2kp2CdBAEuRQ-Kg2heIHLqMMopA6Ev6PPe30" ], + "x-ms-request-id": [ "eastus:22472909-ab23-4db7-b9ef-827aa571c914" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], + "x-ms-correlation-request-id": [ "ea6f2f76-33e2-4706-a468-4a783d2344c1" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T051100Z:ea6f2f76-33e2-4706-a468-4a783d2344c1" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:13:47 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: CC89538053FB40E58D7436730765505B Ref B: MAA201060515045 Ref C: 2024-10-31T05:10:59Z" ], + "Date": [ "Thu, 31 Oct 2024 05:10:59 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ] diff --git a/src/ContainerInstance/ContainerInstance.Autorest/test/Restart-AzContainerGroupSpotPriority.Recording.json b/src/ContainerInstance/ContainerInstance.Autorest/test/Restart-AzContainerGroupSpotPriority.Recording.json index 02f22e42f3ab..258050fa0662 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/test/Restart-AzContainerGroupSpotPriority.Recording.json +++ b/src/ContainerInstance/ContainerInstance.Autorest/test/Restart-AzContainerGroupSpotPriority.Recording.json @@ -1,17 +1,17 @@ { - "Restart-AzContainerGroupSpotPriority+[NoContext]+Restart+$POST+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgytxbr/restart?api-version=2022-10-01-preview+1": { + "Restart-AzContainerGroupSpotPriority+[NoContext]+Restart+$POST+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cguyxhp/restart?api-version=2024-05-01-preview+1": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgytxbr/restart?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cguyxhp/restart?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "101" ], - "x-ms-client-request-id": [ "aef402e9-684b-450d-886f-deced993da3b" ], + "x-ms-unique-id": [ "116" ], + "x-ms-client-request-id": [ "7bae2a20-3f15-4313-8827-02daad57cbed" ], "CommandName": [ "Restart-AzContainerGroup" ], "FullCommandName": [ "Restart-AzContainerGroup_Restart" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -22,14 +22,17 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/providers/Microsoft.ContainerInstance/locations/eastus/operations/76bda8d9-f314-4f05-987b-c4141a698324?api-version=2018-06-01" ], - "x-ms-request-id": [ "eastus:76bda8d9-f314-4f05-987b-c4141a698324" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1192" ], - "x-ms-correlation-request-id": [ "70aa9c2d-dc0c-4ed0-b39b-f68f550bf6ad" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T001357Z:70aa9c2d-dc0c-4ed0-b39b-f68f550bf6ad" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/providers/Microsoft.ContainerInstance/locations/eastus/operations/ebfeac30-7e47-4471-920f-859d5cf9582d?api-version=2018-06-01\u0026t=638659482706519306\u0026c=MIIHhzCCBm-gAwIBAgITHgVsohlR2527oAb3YwAABWyiGTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTIyMTIzNzU1WhcNMjUwMzIxMTIzNzU1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMhrLEJmsmtpzYzyjkwosX72drFxelF_0kAmuW7jzqQUwb3Vbkmt3AMdawBA7iPG-j-_iaEVRdn5iaEuJE6hSge15_CbeDkRt-qHgospNLcjh6GjynbLyFCQH_IkKY4Mc0yIlKxilQSCf2V6ah2w7S1CyC5zwZroBYavu5w0ZL02jRKMTNVzB03DnGhQGJ7gJbtKJ9AbjVcFwFTpT0Z0Yo-sLpwoVvADWng0JznFSekROEXCF_U3gHMssCctipkbrivaRFNKL3OjHjvuPxD8gsBo2BR_swq3Eyj-68_1B2-zYVD0d811pP8URR-43YYAMXO2Us1Uw6dn-b351XnW8JECAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMi5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNi5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDIuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAyLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA2LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMi5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNi5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDIuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3J0MB0GA1UdDgQWBBTLk-Eh1Xfk5Jotz1gl5hr4G-tKhTAOBgNVHQ8BAf8EBAMCBaAwggEmBgNVHR8EggEdMIIBGTCCARWgggERoIIBDYY_aHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JsMIGdBgNVHSAEgZUwgZIwDAYKKwYBBAGCN3sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAG22HO9nSE7AYf9OZGmPXw_SpE0CIxcQiahWc3LG3zRYLxmiKsYYlN9_r_6fPeEmIs7P7xm7g_xAAHLymI5BQDzGsW5GzAzYVOwolJBj3EcX1bxxIqeEgLvHNmYOr4D5MZFv14TGMHziu0TzPAbbVe9-DmMbrqs1mszrnuUiHTsmKE2oNmv4gjZMYSJAdsUzkjxQEa8t1t7FUEvbDkWkYSdqK0-OoTDVLsRVwRNk9XJ04coDgWql1-iv6bYNXyhC0L_-bdTOs_Gnzu-tFEA2we7Zkew_fhDuJwGTDnhaqvhush0SPJuFmoYBvmEzEJsc_Bjay2DrOHiLTopNoBJVrt8\u0026s=tUO6zm-MUjQKFalqaQgZFCSvsOqPHhe-wCOHXMjXg0BmL6iHEURHdClqajtX98VZbcCwKVhUFjnmqtfVGzt9m5eh4uZ5Rel1tiXRU2jupaoVEdQBYH_wIePyNShWhlZmCrgGAU4ENn1lbbPgLv6LTLrL88Bh7puMO_BPPwjTtslLSjGUPep9o0XW_vpM2DY4Ce-RW3sJEWpKCLN-774MEsU1Xx1dvPQeN_GnkRcwJcT0MDc50bbuNSQQs4OpZyRUlHSDQrAZ-Ksm8B0DaM6CwuYAdER8-3wtjknH6o2nZIwyzhqNWN_X87CwV9t64Pja41USHD0cOOjqJpnutPxuzg\u0026h=VHqfXPv45zf5mWuaPXc3fuLp4O2a2POnXwlW3hMBIew" ], + "x-ms-request-id": [ "eastus:ebfeac30-7e47-4471-920f-859d5cf9582d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], + "x-ms-correlation-request-id": [ "bb86f584-2727-405c-81d9-32f7aaa258db" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T051110Z:bb86f584-2727-405c-81d9-32f7aaa258db" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:13:56 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 37183A2C6B6D460C82BA3D1F94FB516D Ref B: MAA201060515045 Ref C: 2024-10-31T05:11:09Z" ], + "Date": [ "Thu, 31 Oct 2024 05:11:10 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ] @@ -38,19 +41,19 @@ "isContentBase64": false } }, - "Restart-AzContainerGroupSpotPriority+[NoContext]+RestartViaIdentity+$GET+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgytxbr?api-version=2022-10-01-preview+1": { + "Restart-AzContainerGroupSpotPriority+[NoContext]+RestartViaIdentity+$GET+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cguyxhp?api-version=2024-05-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgytxbr?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cguyxhp?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "102" ], - "x-ms-client-request-id": [ "2a256c63-1b48-4789-b007-d010e64140c3" ], + "x-ms-unique-id": [ "117" ], + "x-ms-client-request-id": [ "1d7bbca8-974e-45fa-a409-c91229b0735e" ], "CommandName": [ "Get-AzContainerGroup" ], "FullCommandName": [ "Get-AzContainerGroup_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -61,37 +64,39 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-request-id": [ "eastus:f4f3d00f-bf41-49ee-af2b-8519ec7796fb" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11935" ], - "x-ms-correlation-request-id": [ "023709bf-4995-4ccb-a27f-9a0a5cbc66c2" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T001357Z:023709bf-4995-4ccb-a27f-9a0a5cbc66c2" ], + "x-ms-request-id": [ "eastus:0d8f8a82-3c90-43e7-8073-f00fb4b3d037" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "e7a38bc8-6906-46f7-b48e-b79dfcff5ae2" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T051111Z:e7a38bc8-6906-46f7-b48e-b79dfcff5ae2" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:13:57 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: DCC4292AFB394CEAA6D4AECA85FAF62E Ref B: MAA201060515045 Ref C: 2024-10-31T05:11:10Z" ], + "Date": [ "Thu, 31 Oct 2024 05:11:10 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1388" ], + "Content-Length": [ "1609" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Updating\",\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Terminated\",\"startTime\":\"2023-02-17T23:55:56.769Z\",\"detailStatus\":\"Infrastructure Error\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:55:41Z\",\"lastTimestamp\":\"2023-02-17T23:55:41Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:55:42Z\",\"lastTimestamp\":\"2023-02-17T23:55:42Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:55:56Z\",\"lastTimestamp\":\"2023-02-17T23:55:56Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"},\"priority\":\"Spot\"},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgytxbr\",\"name\":\"test-cgytxbr\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\",\"tags\":{\"key\":\"value\"}}", + "Content": "{\"properties\":{\"sku\":\"Standard\",\"isCreatedFromStandbyPool\":false,\"provisioningState\":\"Updating\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{}},\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2024-10-31T04:55:09.34Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:54:55Z\",\"lastTimestamp\":\"2024-10-31T04:54:55Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:54:57Z\",\"lastTimestamp\":\"2024-10-31T04:54:57Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:55:09Z\",\"lastTimestamp\":\"2024-10-31T04:55:09Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"},\"priority\":\"Spot\"},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cguyxhp\",\"name\":\"test-cguyxhp\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\",\"tags\":{\"key\":\"value\"}}", "isContentBase64": false } }, - "Restart-AzContainerGroupSpotPriority+[NoContext]+RestartViaIdentity+$POST+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgytxbr/restart?api-version=2022-10-01-preview+2": { + "Restart-AzContainerGroupSpotPriority+[NoContext]+RestartViaIdentity+$POST+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cguyxhp/restart?api-version=2024-05-01-preview+2": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgytxbr/restart?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cguyxhp/restart?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "103" ], - "x-ms-client-request-id": [ "33ee7975-e78c-4e71-9bc5-bbdbcdf4338e" ], + "x-ms-unique-id": [ "118" ], + "x-ms-client-request-id": [ "3f57e496-239a-48a3-bf71-45b801d2375f" ], "CommandName": [ "Restart-AzContainerGroup" ], "FullCommandName": [ "Restart-AzContainerGroup_RestartViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -102,14 +107,17 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/providers/Microsoft.ContainerInstance/locations/eastus/operations/c356c56d-d574-4ae7-81ec-647a65854757?api-version=2018-06-01" ], - "x-ms-request-id": [ "eastus:c356c56d-d574-4ae7-81ec-647a65854757" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1191" ], - "x-ms-correlation-request-id": [ "f6204a67-d033-44f3-8499-37b3f543d0e2" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T001358Z:f6204a67-d033-44f3-8499-37b3f543d0e2" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/providers/Microsoft.ContainerInstance/locations/eastus/operations/b4cd1ee2-7df5-45ef-98cb-77522bbbe7e4?api-version=2018-06-01\u0026t=638659482719786512\u0026c=MIIHhzCCBm-gAwIBAgITHgVsohlR2527oAb3YwAABWyiGTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTIyMTIzNzU1WhcNMjUwMzIxMTIzNzU1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMhrLEJmsmtpzYzyjkwosX72drFxelF_0kAmuW7jzqQUwb3Vbkmt3AMdawBA7iPG-j-_iaEVRdn5iaEuJE6hSge15_CbeDkRt-qHgospNLcjh6GjynbLyFCQH_IkKY4Mc0yIlKxilQSCf2V6ah2w7S1CyC5zwZroBYavu5w0ZL02jRKMTNVzB03DnGhQGJ7gJbtKJ9AbjVcFwFTpT0Z0Yo-sLpwoVvADWng0JznFSekROEXCF_U3gHMssCctipkbrivaRFNKL3OjHjvuPxD8gsBo2BR_swq3Eyj-68_1B2-zYVD0d811pP8URR-43YYAMXO2Us1Uw6dn-b351XnW8JECAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMi5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNi5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDIuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAyLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA2LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMi5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNi5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDIuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3J0MB0GA1UdDgQWBBTLk-Eh1Xfk5Jotz1gl5hr4G-tKhTAOBgNVHQ8BAf8EBAMCBaAwggEmBgNVHR8EggEdMIIBGTCCARWgggERoIIBDYY_aHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JsMIGdBgNVHSAEgZUwgZIwDAYKKwYBBAGCN3sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAG22HO9nSE7AYf9OZGmPXw_SpE0CIxcQiahWc3LG3zRYLxmiKsYYlN9_r_6fPeEmIs7P7xm7g_xAAHLymI5BQDzGsW5GzAzYVOwolJBj3EcX1bxxIqeEgLvHNmYOr4D5MZFv14TGMHziu0TzPAbbVe9-DmMbrqs1mszrnuUiHTsmKE2oNmv4gjZMYSJAdsUzkjxQEa8t1t7FUEvbDkWkYSdqK0-OoTDVLsRVwRNk9XJ04coDgWql1-iv6bYNXyhC0L_-bdTOs_Gnzu-tFEA2we7Zkew_fhDuJwGTDnhaqvhush0SPJuFmoYBvmEzEJsc_Bjay2DrOHiLTopNoBJVrt8\u0026s=gHnB9ySfRLmr2zqc_m5c3snBTwcT6hRPx-rjHROp_GGUqoI3c-wxS4ig3AVvHzli1v17iY8mwtrnBnPH6_RIaOFVOWVCMk_AEp79XM2wgFe5kmy7pcoPzSYX_5NfpuGtLF_sXm7Zhc7UIJ8jnsIm34yJhkymvubhvbqso6Leb0nilonu1ODTRpgHrqLzEDzE7tX19ikSxW9kVYUt9aHSmYJfFZmlyAFQAb9h1GM4ydBDmSD4N4P2msXhrFrWkNDpBT4QoX1Op09Xwke9Y6m-sq10g-Umv3zguu3625OEQmGznS3fhYcuNvN-Y7JnHmLvAycrp3CQDwLY27csxVv4FA\u0026h=0skVIH1ohi2I0H6ztVE6ev3viCm9N5q6SamiNV72Ch8" ], + "x-ms-request-id": [ "eastus:b4cd1ee2-7df5-45ef-98cb-77522bbbe7e4" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], + "x-ms-correlation-request-id": [ "7c6138d9-1469-4d05-a57f-a8816ad8f327" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T051111Z:7c6138d9-1469-4d05-a57f-a8816ad8f327" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:13:57 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: DF327D4F970E43CEBFBEA3EB6F83F430 Ref B: MAA201060515045 Ref C: 2024-10-31T05:11:11Z" ], + "Date": [ "Thu, 31 Oct 2024 05:11:11 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ] diff --git a/src/ContainerInstance/ContainerInstance.Autorest/test/Start-AzContainerGroup.Recording.json b/src/ContainerInstance/ContainerInstance.Autorest/test/Start-AzContainerGroup.Recording.json index 9c8c77cec5fc..7e60112e50f4 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/test/Start-AzContainerGroup.Recording.json +++ b/src/ContainerInstance/ContainerInstance.Autorest/test/Start-AzContainerGroup.Recording.json @@ -1,17 +1,17 @@ { - "Start-AzContainerGroup+[NoContext]+Start+$POST+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg/start?api-version=2022-10-01-preview+1": { + "Start-AzContainerGroup+[NoContext]+Start+$POST+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg/start?api-version=2024-05-01-preview+1": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg/start?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg/start?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "104" ], - "x-ms-client-request-id": [ "64dd62b2-08f7-48d1-8a1e-a091998d8dca" ], + "x-ms-unique-id": [ "119" ], + "x-ms-client-request-id": [ "6f3fef8a-05c1-40ec-8d28-b8dddf841f53" ], "CommandName": [ "Start-AzContainerGroup" ], "FullCommandName": [ "Start-AzContainerGroup_Start" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -22,13 +22,16 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "eastus:83501ea0-61e5-4b3b-816a-e26b760b0741" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1190" ], - "x-ms-correlation-request-id": [ "f1182dfb-8126-4b4b-bfa6-9ae079cf4f88" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T001409Z:f1182dfb-8126-4b4b-bfa6-9ae079cf4f88" ], + "x-ms-request-id": [ "eastus:030e631e-4b63-46db-9013-d4e7741b7271" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], + "x-ms-correlation-request-id": [ "896172ca-2c2e-4c6d-a264-d02dbfe06b4f" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T051122Z:896172ca-2c2e-4c6d-a264-d02dbfe06b4f" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:14:08 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: D48B7346C0394628AEF90ED8037C5F7A Ref B: MAA201060515045 Ref C: 2024-10-31T05:11:21Z" ], + "Date": [ "Thu, 31 Oct 2024 05:11:21 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ] @@ -37,19 +40,19 @@ "isContentBase64": false } }, - "Start-AzContainerGroup+[NoContext]+StartViaIdentity+$GET+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg?api-version=2022-10-01-preview+1": { + "Start-AzContainerGroup+[NoContext]+StartViaIdentity+$GET+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg?api-version=2024-05-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "105" ], - "x-ms-client-request-id": [ "dbc4dd93-a1de-43e7-acc2-a83c66674f1f" ], + "x-ms-unique-id": [ "120" ], + "x-ms-client-request-id": [ "2ee116b3-645d-4e06-926f-5b790e4e56fd" ], "CommandName": [ "Get-AzContainerGroup" ], "FullCommandName": [ "Get-AzContainerGroup_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -60,37 +63,39 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-request-id": [ "eastus:d69b0cfa-da45-481f-8735-7dcf6b707ef1" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11934" ], - "x-ms-correlation-request-id": [ "9afaf7c2-bbd2-4073-a351-df9547db49fc" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T001409Z:9afaf7c2-bbd2-4073-a351-df9547db49fc" ], + "x-ms-request-id": [ "eastus:05124bb1-8b09-4393-bbb8-418c5ac9c61b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "3f4296d5-d409-4bb1-860a-33d50c65db76" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T051122Z:3f4296d5-d409-4bb1-860a-33d50c65db76" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:14:09 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 90186A88BF6444E7AE3F4CDF112AF396 Ref B: MAA201060515045 Ref C: 2024-10-31T05:11:22Z" ], + "Date": [ "Thu, 31 Oct 2024 05:11:22 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1584" ], + "Content-Length": [ "1789" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"bez-test-ci\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2023-02-18T00:13:28.763Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:53:26Z\",\"lastTimestamp\":\"2023-02-17T23:53:26Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:53:35Z\",\"lastTimestamp\":\"2023-02-17T23:53:35Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:53:48Z\",\"lastTimestamp\":\"2023-02-17T23:53:48Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"},{\"count\":2,\"firstTimestamp\":\"2023-02-18T00:13:25Z\",\"lastTimestamp\":\"2023-02-18T00:13:25Z\",\"name\":\"Killing\",\"message\":\"Killing container with id 59403246886cd1cf38fb5f7efcb32bb7b36717a475526f3a26ebbfaa87ab13e6.\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"}},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg\",\"name\":\"bez-test-cg\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\",\"tags\":{\"key\":\"value\"}}", + "Content": "{\"properties\":{\"sku\":\"Standard\",\"isCreatedFromStandbyPool\":false,\"provisioningState\":\"Succeeded\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"bez-test-ci\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{}},\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2024-10-31T05:10:35.441Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:52:33Z\",\"lastTimestamp\":\"2024-10-31T04:52:33Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:52:38Z\",\"lastTimestamp\":\"2024-10-31T04:52:38Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":2,\"firstTimestamp\":\"2024-10-31T04:52:46Z\",\"lastTimestamp\":\"2024-10-31T05:10:35Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"},{\"count\":2,\"firstTimestamp\":\"2024-10-31T05:10:33Z\",\"lastTimestamp\":\"2024-10-31T05:10:33Z\",\"name\":\"Killing\",\"message\":\"Killing container bez-test-ci (platform initiated).\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"}},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg\",\"name\":\"bez-test-cg\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\",\"tags\":{\"key\":\"value\"}}", "isContentBase64": false } }, - "Start-AzContainerGroup+[NoContext]+StartViaIdentity+$POST+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg/start?api-version=2022-10-01-preview+2": { + "Start-AzContainerGroup+[NoContext]+StartViaIdentity+$POST+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg/start?api-version=2024-05-01-preview+2": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg/start?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg/start?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "106" ], - "x-ms-client-request-id": [ "aaf9bd34-add3-4b0a-8d8c-cf115f700e28" ], + "x-ms-unique-id": [ "121" ], + "x-ms-client-request-id": [ "83369ae3-3c18-4800-a6c8-8684804bbec0" ], "CommandName": [ "Start-AzContainerGroup" ], "FullCommandName": [ "Start-AzContainerGroup_StartViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -101,13 +106,16 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "eastus:f911b8ba-4878-4f6c-bffc-fdc51ea3f5f2" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1189" ], - "x-ms-correlation-request-id": [ "e012aa61-d23e-4ef0-944d-e00b54e113c2" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T001409Z:e012aa61-d23e-4ef0-944d-e00b54e113c2" ], + "x-ms-request-id": [ "eastus:3328e4fd-36ac-4041-b604-a2594cedc2c6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], + "x-ms-correlation-request-id": [ "75fa4c66-5c11-4965-964f-6cad746f8f67" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T051123Z:75fa4c66-5c11-4965-964f-6cad746f8f67" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:14:09 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: B5B3109D7AED4FD9AC05FF2A3E31098F Ref B: MAA201060515045 Ref C: 2024-10-31T05:11:22Z" ], + "Date": [ "Thu, 31 Oct 2024 05:11:22 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ] diff --git a/src/ContainerInstance/ContainerInstance.Autorest/test/Start-AzContainerGroupConfidentialSku.Recording.json b/src/ContainerInstance/ContainerInstance.Autorest/test/Start-AzContainerGroupConfidentialSku.Recording.json index 31abbd729e4f..1f695e5dc84c 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/test/Start-AzContainerGroupConfidentialSku.Recording.json +++ b/src/ContainerInstance/ContainerInstance.Autorest/test/Start-AzContainerGroupConfidentialSku.Recording.json @@ -1,17 +1,17 @@ { - "Start-AzContainerGroupConfidentialSku+[NoContext]+Start+$POST+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup/start?api-version=2022-10-01-preview+1": { + "Start-AzContainerGroupConfidentialSku+[NoContext]+Start+$POST+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup/start?api-version=2024-05-01-preview+1": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup/start?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup/start?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "107" ], - "x-ms-client-request-id": [ "03176239-4b84-4d54-95a7-1471f24b5515" ], + "x-ms-unique-id": [ "122" ], + "x-ms-client-request-id": [ "6c59d908-2c8c-4de4-a325-2b5566a0520f" ], "CommandName": [ "Start-AzContainerGroup" ], "FullCommandName": [ "Start-AzContainerGroup_Start" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -22,13 +22,16 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "eastus:f12fcf5f-d30d-4b0b-b1b7-9f2d02aaf44a" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1188" ], - "x-ms-correlation-request-id": [ "e083e71e-f12c-4158-ac0c-16983764bcff" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T001419Z:e083e71e-f12c-4158-ac0c-16983764bcff" ], + "x-ms-request-id": [ "eastus:e7c5d968-4e2b-401a-8d6d-41bb0dcb56bc" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], + "x-ms-correlation-request-id": [ "fee02e5d-72de-4ac1-8c66-317111aa6ee7" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T051134Z:fee02e5d-72de-4ac1-8c66-317111aa6ee7" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:14:19 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 0BB5DE9E1E9B4E7C92DD5A331D87024E Ref B: MAA201060515045 Ref C: 2024-10-31T05:11:34Z" ], + "Date": [ "Thu, 31 Oct 2024 05:11:34 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ] @@ -37,19 +40,19 @@ "isContentBase64": false } }, - "Start-AzContainerGroupConfidentialSku+[NoContext]+StartViaIdentity+$GET+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup?api-version=2022-10-01-preview+1": { + "Start-AzContainerGroupConfidentialSku+[NoContext]+StartViaIdentity+$GET+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup?api-version=2024-05-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "108" ], - "x-ms-client-request-id": [ "513b643d-e8ea-487f-9bdf-ba69ec8afa94" ], + "x-ms-unique-id": [ "123" ], + "x-ms-client-request-id": [ "1f8024a4-3787-454b-940c-651bef298a7b" ], "CommandName": [ "Get-AzContainerGroup" ], "FullCommandName": [ "Get-AzContainerGroup_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -60,37 +63,39 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-request-id": [ "eastus:af793557-de62-4e7e-b008-3359fb597733" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11933" ], - "x-ms-correlation-request-id": [ "8625bd3b-e8b1-4749-a1e4-a6d156c5a803" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T001420Z:8625bd3b-e8b1-4749-a1e4-a6d156c5a803" ], + "x-ms-request-id": [ "eastus:bb4f18d4-1208-49a7-afc2-0fd95bf8cca2" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "3b100655-0e5a-43eb-bffb-582b10f75f90" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T051135Z:3b100655-0e5a-43eb-bffb-582b10f75f90" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:14:19 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 25D7432C556147B082F2940EC5FD1F85 Ref B: MAA201060515045 Ref C: 2024-10-31T05:11:34Z" ], + "Date": [ "Thu, 31 Oct 2024 05:11:34 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2707" ], + "Content-Length": [ "2912" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"sku\":\"Confidential\",\"confidentialComputeProperties\":{\"ccePolicy\":\"cGFja2FnZSBwb2xpY3kKCmFwaV9zdm4gOj0gIjAuMTAuMCIKCm1vdW50X2RldmljZSA6PSB7ImFsbG93ZWQiOiB0cnVlfQptb3VudF9vdmVybGF5IDo9IHsiYWxsb3dlZCI6IHRydWV9CmNyZWF0ZV9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbCwgImFsbG93X3N0ZGlvX2FjY2VzcyI6IHRydWV9CnVubW91bnRfZGV2aWNlIDo9IHsiYWxsb3dlZCI6IHRydWV9IAp1bm1vdW50X292ZXJsYXkgOj0geyJhbGxvd2VkIjogdHJ1ZX0KZXhlY19pbl9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbH0KZXhlY19leHRlcm5hbCA6PSB7ImFsbG93ZWQiOiB0cnVlLCAiZW52X2xpc3QiOiBudWxsLCAiYWxsb3dfc3RkaW9fYWNjZXNzIjogdHJ1ZX0Kc2h1dGRvd25fY29udGFpbmVyIDo9IHsiYWxsb3dlZCI6IHRydWV9CnNpZ25hbF9jb250YWluZXJfcHJvY2VzcyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV9tb3VudCA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CmdldF9wcm9wZXJ0aWVzIDo9IHsiYWxsb3dlZCI6IHRydWV9CmR1bXBfc3RhY2tzIDo9IHsiYWxsb3dlZCI6IHRydWV9CnJ1bnRpbWVfbG9nZ2luZyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpsb2FkX2ZyYWdtZW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CnNjcmF0Y2hfbW91bnQgOj0geyJhbGxvd2VkIjogdHJ1ZX0Kc2NyYXRjaF91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9Cg==\"},\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"bez-test-ci\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2023-02-18T00:13:39.518Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2023-02-18T00:07:01Z\",\"lastTimestamp\":\"2023-02-18T00:07:01Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-18T00:07:06Z\",\"lastTimestamp\":\"2023-02-18T00:07:06Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":2,\"firstTimestamp\":\"2023-02-18T00:07:52Z\",\"lastTimestamp\":\"2023-02-18T00:13:39Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"},{\"count\":2,\"firstTimestamp\":\"2023-02-18T00:13:38Z\",\"lastTimestamp\":\"2023-02-18T00:13:38Z\",\"name\":\"Killing\",\"message\":\"Killing container with id 9883adcd9089fe95fd09542d04d7400e8443691131d15001b051bfef04941c2c.\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"}},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup\",\"name\":\"test-confidential-containergroup\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\",\"tags\":{\"key\":\"value\"}}", + "Content": "{\"properties\":{\"sku\":\"Confidential\",\"confidentialComputeProperties\":{\"ccePolicy\":\"cGFja2FnZSBwb2xpY3kKCmFwaV9zdm4gOj0gIjAuMTAuMCIKCm1vdW50X2RldmljZSA6PSB7ImFsbG93ZWQiOiB0cnVlfQptb3VudF9vdmVybGF5IDo9IHsiYWxsb3dlZCI6IHRydWV9CmNyZWF0ZV9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbCwgImFsbG93X3N0ZGlvX2FjY2VzcyI6IHRydWV9CnVubW91bnRfZGV2aWNlIDo9IHsiYWxsb3dlZCI6IHRydWV9IAp1bm1vdW50X292ZXJsYXkgOj0geyJhbGxvd2VkIjogdHJ1ZX0KZXhlY19pbl9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbH0KZXhlY19leHRlcm5hbCA6PSB7ImFsbG93ZWQiOiB0cnVlLCAiZW52X2xpc3QiOiBudWxsLCAiYWxsb3dfc3RkaW9fYWNjZXNzIjogdHJ1ZX0Kc2h1dGRvd25fY29udGFpbmVyIDo9IHsiYWxsb3dlZCI6IHRydWV9CnNpZ25hbF9jb250YWluZXJfcHJvY2VzcyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV9tb3VudCA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CmdldF9wcm9wZXJ0aWVzIDo9IHsiYWxsb3dlZCI6IHRydWV9CmR1bXBfc3RhY2tzIDo9IHsiYWxsb3dlZCI6IHRydWV9CnJ1bnRpbWVfbG9nZ2luZyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpsb2FkX2ZyYWdtZW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CnNjcmF0Y2hfbW91bnQgOj0geyJhbGxvd2VkIjogdHJ1ZX0Kc2NyYXRjaF91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9Cg==\"},\"isCreatedFromStandbyPool\":false,\"provisioningState\":\"Succeeded\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"bez-test-ci\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{}},\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2024-10-31T05:10:47.915Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2024-10-31T05:04:11Z\",\"lastTimestamp\":\"2024-10-31T05:04:11Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T05:04:12Z\",\"lastTimestamp\":\"2024-10-31T05:04:12Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":2,\"firstTimestamp\":\"2024-10-31T05:04:30Z\",\"lastTimestamp\":\"2024-10-31T05:10:47Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"},{\"count\":2,\"firstTimestamp\":\"2024-10-31T05:10:46Z\",\"lastTimestamp\":\"2024-10-31T05:10:46Z\",\"name\":\"Killing\",\"message\":\"Killing container bez-test-ci (platform initiated).\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"}},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup\",\"name\":\"test-confidential-containergroup\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\",\"tags\":{\"key\":\"value\"}}", "isContentBase64": false } }, - "Start-AzContainerGroupConfidentialSku+[NoContext]+StartViaIdentity+$POST+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup/start?api-version=2022-10-01-preview+2": { + "Start-AzContainerGroupConfidentialSku+[NoContext]+StartViaIdentity+$POST+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup/start?api-version=2024-05-01-preview+2": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup/start?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup/start?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "109" ], - "x-ms-client-request-id": [ "ed872df2-1c75-4f4b-a371-d9f4986cd8b9" ], + "x-ms-unique-id": [ "124" ], + "x-ms-client-request-id": [ "600762bb-e261-47b2-9f8e-431a3cad6d86" ], "CommandName": [ "Start-AzContainerGroup" ], "FullCommandName": [ "Start-AzContainerGroup_StartViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -101,13 +106,16 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "eastus:027839d1-8b53-4661-aec6-3bdbc2669e74" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1187" ], - "x-ms-correlation-request-id": [ "2fac5150-8ea4-4d13-b509-a29c73c15933" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T001420Z:2fac5150-8ea4-4d13-b509-a29c73c15933" ], + "x-ms-request-id": [ "eastus:877665aa-c575-4002-900a-aa4854371ade" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], + "x-ms-correlation-request-id": [ "19c10152-036e-488a-aa22-538d047671b4" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T051136Z:19c10152-036e-488a-aa22-538d047671b4" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:14:20 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: DF3BD699CBAD4B9FB0FF74CE088927FB Ref B: MAA201060515045 Ref C: 2024-10-31T05:11:35Z" ], + "Date": [ "Thu, 31 Oct 2024 05:11:35 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ] diff --git a/src/ContainerInstance/ContainerInstance.Autorest/test/Start-AzContainerGroupRegularPriority.Recording.json b/src/ContainerInstance/ContainerInstance.Autorest/test/Start-AzContainerGroupRegularPriority.Recording.json index 2d8edacebc9f..14637c4f02cf 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/test/Start-AzContainerGroupRegularPriority.Recording.json +++ b/src/ContainerInstance/ContainerInstance.Autorest/test/Start-AzContainerGroupRegularPriority.Recording.json @@ -1,17 +1,17 @@ { - "Start-AzContainerGroupRegularPriority+[NoContext]+Start+$POST+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgq5m6g/start?api-version=2022-10-01-preview+1": { + "Start-AzContainerGroupRegularPriority+[NoContext]+Start+$POST+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cgfl4g3/start?api-version=2024-05-01-preview+1": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgq5m6g/start?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cgfl4g3/start?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "110" ], - "x-ms-client-request-id": [ "39ad9210-06fa-42b0-b3c5-0787c3e08860" ], + "x-ms-unique-id": [ "125" ], + "x-ms-client-request-id": [ "ff29b8f8-c028-438b-bfc9-89edebdf6fe5" ], "CommandName": [ "Start-AzContainerGroup" ], "FullCommandName": [ "Start-AzContainerGroup_Start" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -22,13 +22,16 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "eastus:a684955f-431c-4ee4-aac9-ecc84ef58295" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1186" ], - "x-ms-correlation-request-id": [ "15dae393-7dcd-481e-8302-c681822da9b9" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T001432Z:15dae393-7dcd-481e-8302-c681822da9b9" ], + "x-ms-request-id": [ "eastus:b8e37247-d009-491f-a3a7-073f3b916d28" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], + "x-ms-correlation-request-id": [ "e85eff77-f035-4b34-837e-4eea41e3ff54" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T051148Z:e85eff77-f035-4b34-837e-4eea41e3ff54" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:14:32 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 6BACC1B11A1A48759B2D7E4B7FBFA7E9 Ref B: MAA201060515045 Ref C: 2024-10-31T05:11:48Z" ], + "Date": [ "Thu, 31 Oct 2024 05:11:47 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ] @@ -37,19 +40,19 @@ "isContentBase64": false } }, - "Start-AzContainerGroupRegularPriority+[NoContext]+StartViaIdentity+$GET+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgq5m6g?api-version=2022-10-01-preview+1": { + "Start-AzContainerGroupRegularPriority+[NoContext]+StartViaIdentity+$GET+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cgfl4g3?api-version=2024-05-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgq5m6g?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cgfl4g3?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "111" ], - "x-ms-client-request-id": [ "26d861d6-ae03-4e61-ae50-f6d80cb8d027" ], + "x-ms-unique-id": [ "126" ], + "x-ms-client-request-id": [ "d236b52b-64f7-4eb6-b75c-552018c9111a" ], "CommandName": [ "Get-AzContainerGroup" ], "FullCommandName": [ "Get-AzContainerGroup_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -60,37 +63,39 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-request-id": [ "eastus:534ae031-fee8-47dc-b19f-8b91c4470b48" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11932" ], - "x-ms-correlation-request-id": [ "b00c6032-cb5b-43aa-9417-e00f49d7f29b" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T001432Z:b00c6032-cb5b-43aa-9417-e00f49d7f29b" ], + "x-ms-request-id": [ "eastus:0de09f05-61ca-4697-8055-bfd31a916c3c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "a0bf78f3-ee57-4aae-aa8d-079909d1332e" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T051149Z:a0bf78f3-ee57-4aae-aa8d-079909d1332e" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:14:32 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 7890398BFDAE4CBAB25331013B7A9EA3 Ref B: MAA201060515045 Ref C: 2024-10-31T05:11:48Z" ], + "Date": [ "Thu, 31 Oct 2024 05:11:48 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1597" ], + "Content-Length": [ "1791" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2023-02-18T00:13:49.372Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:55:05Z\",\"lastTimestamp\":\"2023-02-17T23:55:05Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:55:13Z\",\"lastTimestamp\":\"2023-02-17T23:55:13Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:55:24Z\",\"lastTimestamp\":\"2023-02-17T23:55:24Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"},{\"count\":2,\"firstTimestamp\":\"2023-02-18T00:13:47Z\",\"lastTimestamp\":\"2023-02-18T00:13:47Z\",\"name\":\"Killing\",\"message\":\"Killing container with id cfc548022e95ff1fe7841e461dc1194add797e261e45bed21ead80a29dce3144.\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"},\"priority\":\"Regular\"},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgq5m6g\",\"name\":\"test-cgq5m6g\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\",\"tags\":{\"key\":\"value\"}}", + "Content": "{\"properties\":{\"sku\":\"Standard\",\"isCreatedFromStandbyPool\":false,\"provisioningState\":\"Succeeded\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{}},\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2024-10-31T05:11:01.12Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:54:19Z\",\"lastTimestamp\":\"2024-10-31T04:54:19Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:54:21Z\",\"lastTimestamp\":\"2024-10-31T04:54:21Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":2,\"firstTimestamp\":\"2024-10-31T04:54:30Z\",\"lastTimestamp\":\"2024-10-31T05:11:01Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"},{\"count\":2,\"firstTimestamp\":\"2024-10-31T05:10:59Z\",\"lastTimestamp\":\"2024-10-31T05:10:59Z\",\"name\":\"Killing\",\"message\":\"Killing container 1 (platform initiated).\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"},\"priority\":\"Regular\"},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cgfl4g3\",\"name\":\"test-cgfl4g3\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\",\"tags\":{\"key\":\"value\"}}", "isContentBase64": false } }, - "Start-AzContainerGroupRegularPriority+[NoContext]+StartViaIdentity+$POST+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgq5m6g/start?api-version=2022-10-01-preview+2": { + "Start-AzContainerGroupRegularPriority+[NoContext]+StartViaIdentity+$POST+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cgfl4g3/start?api-version=2024-05-01-preview+2": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgq5m6g/start?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cgfl4g3/start?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "112" ], - "x-ms-client-request-id": [ "927549ec-5246-421c-88c4-086be579bd41" ], + "x-ms-unique-id": [ "127" ], + "x-ms-client-request-id": [ "a4f1b2fd-ae99-4aec-8895-ff7ead418fc3" ], "CommandName": [ "Start-AzContainerGroup" ], "FullCommandName": [ "Start-AzContainerGroup_StartViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -101,13 +106,16 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "eastus:8549a2ce-18cb-4926-a1c8-2b85e54d1594" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1185" ], - "x-ms-correlation-request-id": [ "76a0cde3-f62d-4bb1-b708-a1edc016cc90" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T001433Z:76a0cde3-f62d-4bb1-b708-a1edc016cc90" ], + "x-ms-request-id": [ "eastus:eb29e9a4-8a95-49f1-8376-d530beea5de0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], + "x-ms-correlation-request-id": [ "f394de9e-6fac-41c7-b4aa-c88583729ff0" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T051150Z:f394de9e-6fac-41c7-b4aa-c88583729ff0" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:14:32 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: D45B7B81E4E044CF82491E41A9FE5C63 Ref B: MAA201060515045 Ref C: 2024-10-31T05:11:49Z" ], + "Date": [ "Thu, 31 Oct 2024 05:11:49 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ] diff --git a/src/ContainerInstance/ContainerInstance.Autorest/test/Start-AzContainerGroupSpotPriority.Recording.json b/src/ContainerInstance/ContainerInstance.Autorest/test/Start-AzContainerGroupSpotPriority.Recording.json index 2a0fe1198678..fb0fd9fd9ee3 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/test/Start-AzContainerGroupSpotPriority.Recording.json +++ b/src/ContainerInstance/ContainerInstance.Autorest/test/Start-AzContainerGroupSpotPriority.Recording.json @@ -1,17 +1,17 @@ { - "Start-AzContainerGroupSpotPriority+[NoContext]+Start+$POST+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgytxbr/start?api-version=2022-10-01-preview+1": { + "Start-AzContainerGroupSpotPriority+[NoContext]+Start+$POST+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cguyxhp/start?api-version=2024-05-01-preview+1": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgytxbr/start?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cguyxhp/start?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "113" ], - "x-ms-client-request-id": [ "73882625-bb97-4760-8cff-e61b768bccb7" ], + "x-ms-unique-id": [ "128" ], + "x-ms-client-request-id": [ "03dbdf4f-0c7a-4be5-81ba-9cfb3c091e15" ], "CommandName": [ "Start-AzContainerGroup" ], "FullCommandName": [ "Start-AzContainerGroup_Start" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -22,13 +22,16 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "eastus:f2ddccab-b932-4714-aac1-2b41d794717a" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1184" ], - "x-ms-correlation-request-id": [ "d45286a9-db7d-4e29-b369-78585466ecbf" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T001445Z:d45286a9-db7d-4e29-b369-78585466ecbf" ], + "x-ms-request-id": [ "eastus:1b1a1687-74c4-45c3-8c9f-918826c0e397" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], + "x-ms-correlation-request-id": [ "829fb56b-deb0-410a-89db-b0527c2f6166" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T051200Z:829fb56b-deb0-410a-89db-b0527c2f6166" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:14:44 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: BD88E446D1F44BF9B0ED27C25121ACE9 Ref B: MAA201060515045 Ref C: 2024-10-31T05:11:59Z" ], + "Date": [ "Thu, 31 Oct 2024 05:11:59 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ] @@ -37,19 +40,19 @@ "isContentBase64": false } }, - "Start-AzContainerGroupSpotPriority+[NoContext]+StartViaIdentity+$GET+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgytxbr?api-version=2022-10-01-preview+1": { + "Start-AzContainerGroupSpotPriority+[NoContext]+StartViaIdentity+$GET+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cguyxhp?api-version=2024-05-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgytxbr?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cguyxhp?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "114" ], - "x-ms-client-request-id": [ "85095a9e-b230-482e-9ea4-46a42bf9dbd3" ], + "x-ms-unique-id": [ "129" ], + "x-ms-client-request-id": [ "edbda962-7952-4891-899f-767acb8a8fd3" ], "CommandName": [ "Get-AzContainerGroup" ], "FullCommandName": [ "Get-AzContainerGroup_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -60,37 +63,39 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-request-id": [ "eastus:0b0be4d4-ab9b-4386-b3c2-d962bf2fbcc8" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11931" ], - "x-ms-correlation-request-id": [ "1daf9f70-2256-476a-b7ae-6576ac1e7922" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T001446Z:1daf9f70-2256-476a-b7ae-6576ac1e7922" ], + "x-ms-request-id": [ "eastus:fac8e703-8713-4888-a451-2cf358cdfb84" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "4b12bffa-5622-4aff-8e26-7f4844abbdb4" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T051200Z:4b12bffa-5622-4aff-8e26-7f4844abbdb4" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:14:45 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: BAD7BF91AD594F91A1ABACE8C1CF45F6 Ref B: MAA201060515045 Ref C: 2024-10-31T05:12:00Z" ], + "Date": [ "Thu, 31 Oct 2024 05:12:00 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1594" ], + "Content-Length": [ "1789" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2023-02-18T00:13:58.853Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:55:41Z\",\"lastTimestamp\":\"2023-02-17T23:55:41Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:55:42Z\",\"lastTimestamp\":\"2023-02-17T23:55:42Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":2,\"firstTimestamp\":\"2023-02-17T23:55:56Z\",\"lastTimestamp\":\"2023-02-18T00:13:58Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"},{\"count\":2,\"firstTimestamp\":\"2023-02-18T00:13:57Z\",\"lastTimestamp\":\"2023-02-18T00:13:57Z\",\"name\":\"Killing\",\"message\":\"Killing container with id 94803e07442ddafbb7e0872383e0c08d47e7f33d667f47c96588a158de6ac4cd.\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"},\"priority\":\"Spot\"},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgytxbr\",\"name\":\"test-cgytxbr\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\",\"tags\":{\"key\":\"value\"}}", + "Content": "{\"properties\":{\"sku\":\"Standard\",\"isCreatedFromStandbyPool\":false,\"provisioningState\":\"Succeeded\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{}},\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2024-10-31T05:11:12.854Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:54:55Z\",\"lastTimestamp\":\"2024-10-31T04:54:55Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:54:57Z\",\"lastTimestamp\":\"2024-10-31T04:54:57Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:55:09Z\",\"lastTimestamp\":\"2024-10-31T04:55:09Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"},{\"count\":2,\"firstTimestamp\":\"2024-10-31T05:11:11Z\",\"lastTimestamp\":\"2024-10-31T05:11:11Z\",\"name\":\"Killing\",\"message\":\"Killing container 1 (platform initiated).\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"},\"priority\":\"Spot\"},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cguyxhp\",\"name\":\"test-cguyxhp\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\",\"tags\":{\"key\":\"value\"}}", "isContentBase64": false } }, - "Start-AzContainerGroupSpotPriority+[NoContext]+StartViaIdentity+$POST+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgytxbr/start?api-version=2022-10-01-preview+2": { + "Start-AzContainerGroupSpotPriority+[NoContext]+StartViaIdentity+$POST+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cguyxhp/start?api-version=2024-05-01-preview+2": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgytxbr/start?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cguyxhp/start?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "115" ], - "x-ms-client-request-id": [ "08bcecff-321c-41d6-a8e1-d3d9eda8d279" ], + "x-ms-unique-id": [ "130" ], + "x-ms-client-request-id": [ "a34f95a7-375c-4ce2-afa8-2ed4660b3023" ], "CommandName": [ "Start-AzContainerGroup" ], "FullCommandName": [ "Start-AzContainerGroup_StartViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -101,13 +106,16 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "eastus:16371af5-b1d7-43fa-8011-4ac2eb108e00" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1183" ], - "x-ms-correlation-request-id": [ "e128598e-e90d-43cf-bc92-6e04f60039fa" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T001446Z:e128598e-e90d-43cf-bc92-6e04f60039fa" ], + "x-ms-request-id": [ "eastus:8a720797-3a71-4292-810d-e7960ea7fede" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], + "x-ms-correlation-request-id": [ "9d6b5061-d5e0-4f27-a4d0-9898a1601fa4" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T051201Z:9d6b5061-d5e0-4f27-a4d0-9898a1601fa4" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:14:45 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 28F5EE89F613475B8D71AFB8CF80D8D7 Ref B: MAA201060515045 Ref C: 2024-10-31T05:12:00Z" ], + "Date": [ "Thu, 31 Oct 2024 05:12:00 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ] diff --git a/src/ContainerInstance/ContainerInstance.Autorest/test/Stop-AzContainerGroup.Recording.json b/src/ContainerInstance/ContainerInstance.Autorest/test/Stop-AzContainerGroup.Recording.json index c81d4ffee4d7..abfa43e913df 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/test/Stop-AzContainerGroup.Recording.json +++ b/src/ContainerInstance/ContainerInstance.Autorest/test/Stop-AzContainerGroup.Recording.json @@ -1,17 +1,17 @@ { - "Stop-AzContainerGroup+[NoContext]+Stop+$POST+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg/stop?api-version=2022-10-01-preview+1": { + "Stop-AzContainerGroup+[NoContext]+Stop+$POST+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg/stop?api-version=2024-05-01-preview+1": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg/stop?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg/stop?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "116" ], - "x-ms-client-request-id": [ "61f6d0e8-c596-4f70-b8b4-d5374e43490a" ], + "x-ms-unique-id": [ "131" ], + "x-ms-client-request-id": [ "90af9a49-0310-45c2-b262-e10913d0856f" ], "CommandName": [ "Stop-AzContainerGroup" ], "FullCommandName": [ "Stop-AzContainerGroup_Stop" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -22,13 +22,16 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "eastus:5047f989-1dd2-4fcf-a689-e63a70fc100a" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1182" ], - "x-ms-correlation-request-id": [ "f5b21e33-051b-4549-9d6e-308876ba4398" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T001458Z:f5b21e33-051b-4549-9d6e-308876ba4398" ], + "x-ms-request-id": [ "eastus:baf335c9-b33d-4ab3-be93-1c0d3b54bcb8" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], + "x-ms-correlation-request-id": [ "562c8938-79b6-4897-a89c-e904acc1cd42" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T051210Z:562c8938-79b6-4897-a89c-e904acc1cd42" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:14:57 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 32E3DCB20F1349B2A5E6275B6DA23C12 Ref B: MAA201060515045 Ref C: 2024-10-31T05:12:10Z" ], + "Date": [ "Thu, 31 Oct 2024 05:12:10 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ] @@ -37,19 +40,19 @@ "isContentBase64": false } }, - "Stop-AzContainerGroup+[NoContext]+StopViaIdentity+$GET+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg?api-version=2022-10-01-preview+1": { + "Stop-AzContainerGroup+[NoContext]+StopViaIdentity+$GET+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg?api-version=2024-05-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "117" ], - "x-ms-client-request-id": [ "179a9786-f4ff-4f2e-9c7f-71773bf7d553" ], + "x-ms-unique-id": [ "132" ], + "x-ms-client-request-id": [ "93cb1404-6904-471e-ac2f-16ba8ed04f95" ], "CommandName": [ "Get-AzContainerGroup" ], "FullCommandName": [ "Get-AzContainerGroup_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -60,37 +63,39 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-request-id": [ "eastus:994f883f-ffac-4cd9-ae1e-f0f9945ca2c4" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11930" ], - "x-ms-correlation-request-id": [ "7bceb962-afc3-42df-93cc-96ec346de977" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T001458Z:7bceb962-afc3-42df-93cc-96ec346de977" ], + "x-ms-request-id": [ "eastus:a209284a-e6fb-43f2-9a08-cbd437bd2aee" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "73a94a9f-52f4-4216-9719-b1a6d8e214c1" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T051211Z:73a94a9f-52f4-4216-9719-b1a6d8e214c1" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:14:57 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 439C6BFAF7C14B23800722891CBD2A95 Ref B: MAA201060515045 Ref C: 2024-10-31T05:12:10Z" ], + "Date": [ "Thu, 31 Oct 2024 05:12:10 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1721" ], + "Content-Length": [ "1926" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"bez-test-ci\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Terminated\",\"finishTime\":\"2023-02-18T00:14:58.3739727Z\",\"detailStatus\":\"Container stopped per client request\"},\"previousState\":{\"state\":\"Running\",\"startTime\":\"2023-02-18T00:13:28.763Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:53:26Z\",\"lastTimestamp\":\"2023-02-17T23:53:26Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:53:35Z\",\"lastTimestamp\":\"2023-02-17T23:53:35Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:53:48Z\",\"lastTimestamp\":\"2023-02-17T23:53:48Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"},{\"count\":2,\"firstTimestamp\":\"2023-02-18T00:13:25Z\",\"lastTimestamp\":\"2023-02-18T00:13:25Z\",\"name\":\"Killing\",\"message\":\"Killing container with id 59403246886cd1cf38fb5f7efcb32bb7b36717a475526f3a26ebbfaa87ab13e6.\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Stopped\"}},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg\",\"name\":\"bez-test-cg\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\",\"tags\":{\"key\":\"value\"}}", + "Content": "{\"properties\":{\"sku\":\"Standard\",\"isCreatedFromStandbyPool\":false,\"provisioningState\":\"Succeeded\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"bez-test-ci\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{}},\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Terminated\",\"finishTime\":\"2024-10-31T05:12:10.7524476Z\",\"detailStatus\":\"Container stopped per client request\"},\"previousState\":{\"state\":\"Running\",\"startTime\":\"2024-10-31T05:10:35.441Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:52:33Z\",\"lastTimestamp\":\"2024-10-31T04:52:33Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:52:38Z\",\"lastTimestamp\":\"2024-10-31T04:52:38Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":2,\"firstTimestamp\":\"2024-10-31T04:52:46Z\",\"lastTimestamp\":\"2024-10-31T05:10:35Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"},{\"count\":2,\"firstTimestamp\":\"2024-10-31T05:10:33Z\",\"lastTimestamp\":\"2024-10-31T05:10:33Z\",\"name\":\"Killing\",\"message\":\"Killing container bez-test-ci (platform initiated).\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Stopped\"}},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg\",\"name\":\"bez-test-cg\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\",\"tags\":{\"key\":\"value\"}}", "isContentBase64": false } }, - "Stop-AzContainerGroup+[NoContext]+StopViaIdentity+$POST+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg/stop?api-version=2022-10-01-preview+2": { + "Stop-AzContainerGroup+[NoContext]+StopViaIdentity+$POST+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg/stop?api-version=2024-05-01-preview+2": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg/stop?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg/stop?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "118" ], - "x-ms-client-request-id": [ "f4acea30-d9ee-442d-8cea-32c57e2896f8" ], + "x-ms-unique-id": [ "133" ], + "x-ms-client-request-id": [ "371606c2-4ff5-43ba-8d72-4386567316dc" ], "CommandName": [ "Stop-AzContainerGroup" ], "FullCommandName": [ "Stop-AzContainerGroup_StopViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -101,13 +106,16 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "eastus:75508ebf-aee6-45c8-aab1-2f799393b237" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1181" ], - "x-ms-correlation-request-id": [ "169bc3bb-3593-46b1-82bb-95ef6874bffb" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T001458Z:169bc3bb-3593-46b1-82bb-95ef6874bffb" ], + "x-ms-request-id": [ "eastus:137f88ec-bd48-4748-b179-5ad745d05d58" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], + "x-ms-correlation-request-id": [ "4f8e6f18-6b6a-47b8-b938-34756937f088" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T051211Z:4f8e6f18-6b6a-47b8-b938-34756937f088" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:14:58 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: B3A3C6A073264FBEBE83E71F18C3B16C Ref B: MAA201060515045 Ref C: 2024-10-31T05:12:11Z" ], + "Date": [ "Thu, 31 Oct 2024 05:12:11 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ] diff --git a/src/ContainerInstance/ContainerInstance.Autorest/test/Stop-AzContainerGroupRegularPriority.Recording.json b/src/ContainerInstance/ContainerInstance.Autorest/test/Stop-AzContainerGroupRegularPriority.Recording.json index bd7f77577729..b0ce15664dc7 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/test/Stop-AzContainerGroupRegularPriority.Recording.json +++ b/src/ContainerInstance/ContainerInstance.Autorest/test/Stop-AzContainerGroupRegularPriority.Recording.json @@ -1,17 +1,17 @@ { - "Stop-AzContainerGroupRegularPriority+[NoContext]+Stop+$POST+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgq5m6g/stop?api-version=2022-10-01-preview+1": { + "Stop-AzContainerGroupRegularPriority+[NoContext]+Stop+$POST+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cgfl4g3/stop?api-version=2024-05-01-preview+1": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgq5m6g/stop?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cgfl4g3/stop?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "122" ], - "x-ms-client-request-id": [ "8d4facf4-91eb-431c-a9a5-80ec431166b8" ], + "x-ms-unique-id": [ "137" ], + "x-ms-client-request-id": [ "c19ef4b6-0985-4d7c-8719-71ddb717eadb" ], "CommandName": [ "Stop-AzContainerGroup" ], "FullCommandName": [ "Stop-AzContainerGroup_Stop" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -22,13 +22,16 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "eastus:728a452e-432a-4c92-ae04-2acc57580075" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1178" ], - "x-ms-correlation-request-id": [ "4e220872-a0ab-4feb-8852-6b67c9a50990" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T001526Z:4e220872-a0ab-4feb-8852-6b67c9a50990" ], + "x-ms-request-id": [ "eastus:024f51f7-ba7b-4158-a756-c8057b506a57" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], + "x-ms-correlation-request-id": [ "b75e8c31-4e41-4932-b2ce-49a99dad8af6" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T051232Z:b75e8c31-4e41-4932-b2ce-49a99dad8af6" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:15:25 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 0D309A7DF0684AFD961BD816183119CE Ref B: MAA201060515045 Ref C: 2024-10-31T05:12:31Z" ], + "Date": [ "Thu, 31 Oct 2024 05:12:31 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ] @@ -37,19 +40,19 @@ "isContentBase64": false } }, - "Stop-AzContainerGroupRegularPriority+[NoContext]+StopViaIdentity+$GET+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgq5m6g?api-version=2022-10-01-preview+1": { + "Stop-AzContainerGroupRegularPriority+[NoContext]+StopViaIdentity+$GET+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cgfl4g3?api-version=2024-05-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgq5m6g?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cgfl4g3?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "123" ], - "x-ms-client-request-id": [ "b958ac83-cc18-483b-aec2-a7f98e4438de" ], + "x-ms-unique-id": [ "138" ], + "x-ms-client-request-id": [ "31d9058c-c466-4342-aa45-ea7ef5bd1804" ], "CommandName": [ "Get-AzContainerGroup" ], "FullCommandName": [ "Get-AzContainerGroup_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -60,37 +63,39 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-request-id": [ "eastus:61b795ff-d17c-428b-bfaf-39a808a968ce" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11928" ], - "x-ms-correlation-request-id": [ "121d9600-8d83-4804-a011-b47fbe6fd9b4" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T001526Z:121d9600-8d83-4804-a011-b47fbe6fd9b4" ], + "x-ms-request-id": [ "eastus:44649168-3cc8-4f0b-bcdb-ba5fe2f90a56" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "1096b968-a91c-4e90-8db5-f7c3900ca623" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T051232Z:1096b968-a91c-4e90-8db5-f7c3900ca623" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:15:26 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 94FAE7F3836948128DFF170DF3087F30 Ref B: MAA201060515045 Ref C: 2024-10-31T05:12:32Z" ], + "Date": [ "Thu, 31 Oct 2024 05:12:32 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "603" ], + "Content-Length": [ "774" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Stopped\"},\"priority\":\"Regular\"},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgq5m6g\",\"name\":\"test-cgq5m6g\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\",\"tags\":{\"key\":\"value\"}}", + "Content": "{\"properties\":{\"sku\":\"Standard\",\"isCreatedFromStandbyPool\":false,\"provisioningState\":\"Succeeded\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{}},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Stopped\"},\"priority\":\"Regular\"},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cgfl4g3\",\"name\":\"test-cgfl4g3\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\",\"tags\":{\"key\":\"value\"}}", "isContentBase64": false } }, - "Stop-AzContainerGroupRegularPriority+[NoContext]+StopViaIdentity+$POST+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgq5m6g/stop?api-version=2022-10-01-preview+2": { + "Stop-AzContainerGroupRegularPriority+[NoContext]+StopViaIdentity+$POST+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cgfl4g3/stop?api-version=2024-05-01-preview+2": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgq5m6g/stop?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cgfl4g3/stop?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "124" ], - "x-ms-client-request-id": [ "748ba7b5-e59a-44c2-8d39-429b32037acf" ], + "x-ms-unique-id": [ "139" ], + "x-ms-client-request-id": [ "4398f93b-9624-4afd-bf6e-281e4de9c5df" ], "CommandName": [ "Stop-AzContainerGroup" ], "FullCommandName": [ "Stop-AzContainerGroup_StopViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -101,13 +106,16 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "eastus:d1e8f835-de66-4534-8f01-e586716bd15c" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1177" ], - "x-ms-correlation-request-id": [ "1af3e6c7-669c-4d16-841e-71adb1941cb0" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T001526Z:1af3e6c7-669c-4d16-841e-71adb1941cb0" ], + "x-ms-request-id": [ "eastus:0c0151bf-8179-4f64-b4d4-ad74a4e43304" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], + "x-ms-correlation-request-id": [ "c39f0884-792b-49b3-b96a-898ecc063127" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T051233Z:c39f0884-792b-49b3-b96a-898ecc063127" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:15:26 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: D9FED872713D4F4BBD5A9B78A4DEC53E Ref B: MAA201060515045 Ref C: 2024-10-31T05:12:33Z" ], + "Date": [ "Thu, 31 Oct 2024 05:12:32 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ] diff --git a/src/ContainerInstance/ContainerInstance.Autorest/test/Stop-AzContainerGroupSpotContainer.Recording.json b/src/ContainerInstance/ContainerInstance.Autorest/test/Stop-AzContainerGroupSpotContainer.Recording.json index 877f82519fb4..792f4ac9c275 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/test/Stop-AzContainerGroupSpotContainer.Recording.json +++ b/src/ContainerInstance/ContainerInstance.Autorest/test/Stop-AzContainerGroupSpotContainer.Recording.json @@ -1,17 +1,17 @@ { - "Stop-AzContainerGroupSpotContainer+[NoContext]+Stop+$POST+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgytxbr/stop?api-version=2022-10-01-preview+1": { + "Stop-AzContainerGroupSpotContainer+[NoContext]+Stop+$POST+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cguyxhp/stop?api-version=2024-05-01-preview+1": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgytxbr/stop?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cguyxhp/stop?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "125" ], - "x-ms-client-request-id": [ "21378744-2d45-4169-b9f5-1f36ac51f2da" ], + "x-ms-unique-id": [ "140" ], + "x-ms-client-request-id": [ "cadb0cad-bea1-4dbf-a389-96703cbeb3b5" ], "CommandName": [ "Stop-AzContainerGroup" ], "FullCommandName": [ "Stop-AzContainerGroup_Stop" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -22,13 +22,16 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "eastus:37c8f3db-450e-47de-946c-c276ea186e58" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1176" ], - "x-ms-correlation-request-id": [ "27b678e6-06df-4d17-8dc7-29e27afaa9ca" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T001536Z:27b678e6-06df-4d17-8dc7-29e27afaa9ca" ], + "x-ms-request-id": [ "eastus:aedbd44d-5bf1-4cc3-94f1-01c5a1f0a303" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], + "x-ms-correlation-request-id": [ "62662975-6cfa-4f0a-a281-43b5ce71c574" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T051242Z:62662975-6cfa-4f0a-a281-43b5ce71c574" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:15:36 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: D79DEF37BC234CC5B8734001E1F4081C Ref B: MAA201060515045 Ref C: 2024-10-31T05:12:42Z" ], + "Date": [ "Thu, 31 Oct 2024 05:12:42 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ] @@ -37,19 +40,19 @@ "isContentBase64": false } }, - "Stop-AzContainerGroupSpotContainer+[NoContext]+StopViaIdentity+$GET+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgytxbr?api-version=2022-10-01-preview+1": { + "Stop-AzContainerGroupSpotContainer+[NoContext]+StopViaIdentity+$GET+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cguyxhp?api-version=2024-05-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgytxbr?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cguyxhp?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "126" ], - "x-ms-client-request-id": [ "21d57c6a-ed96-498c-9b1f-8fd7457ea5b5" ], + "x-ms-unique-id": [ "141" ], + "x-ms-client-request-id": [ "b1767796-90ca-4683-9540-feac065ae8a2" ], "CommandName": [ "Get-AzContainerGroup" ], "FullCommandName": [ "Get-AzContainerGroup_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -60,37 +63,39 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-request-id": [ "eastus:02fc9f76-8c3b-40e8-8995-169a9e1e8a33" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11927" ], - "x-ms-correlation-request-id": [ "7ce22897-3e06-4653-afda-e93bb223521a" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T001537Z:7ce22897-3e06-4653-afda-e93bb223521a" ], + "x-ms-request-id": [ "eastus:3c911b3d-b3e7-479a-8b5e-f615a6774fb6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "d9c6588c-0e33-4afd-97a4-13ca434232aa" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T051243Z:d9c6588c-0e33-4afd-97a4-13ca434232aa" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:15:36 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: C623502DC80C416C99C9D29B9F540805 Ref B: MAA201060515045 Ref C: 2024-10-31T05:12:42Z" ], + "Date": [ "Thu, 31 Oct 2024 05:12:42 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1730" ], + "Content-Length": [ "1926" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Terminated\",\"finishTime\":\"2023-02-18T00:15:37.117787Z\",\"detailStatus\":\"Container stopped per client request\"},\"previousState\":{\"state\":\"Running\",\"startTime\":\"2023-02-18T00:13:58.853Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:55:41Z\",\"lastTimestamp\":\"2023-02-17T23:55:41Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:55:42Z\",\"lastTimestamp\":\"2023-02-17T23:55:42Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":2,\"firstTimestamp\":\"2023-02-17T23:55:56Z\",\"lastTimestamp\":\"2023-02-18T00:13:58Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"},{\"count\":2,\"firstTimestamp\":\"2023-02-18T00:13:57Z\",\"lastTimestamp\":\"2023-02-18T00:13:57Z\",\"name\":\"Killing\",\"message\":\"Killing container with id 94803e07442ddafbb7e0872383e0c08d47e7f33d667f47c96588a158de6ac4cd.\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Stopped\"},\"priority\":\"Spot\"},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgytxbr\",\"name\":\"test-cgytxbr\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\",\"tags\":{\"key\":\"value\"}}", + "Content": "{\"properties\":{\"sku\":\"Standard\",\"isCreatedFromStandbyPool\":false,\"provisioningState\":\"Succeeded\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{}},\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Terminated\",\"finishTime\":\"2024-10-31T05:12:42.8062565Z\",\"detailStatus\":\"Container stopped per client request\"},\"previousState\":{\"state\":\"Running\",\"startTime\":\"2024-10-31T05:11:12.854Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:54:55Z\",\"lastTimestamp\":\"2024-10-31T04:54:55Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:54:57Z\",\"lastTimestamp\":\"2024-10-31T04:54:57Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:55:09Z\",\"lastTimestamp\":\"2024-10-31T04:55:09Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"},{\"count\":2,\"firstTimestamp\":\"2024-10-31T05:11:11Z\",\"lastTimestamp\":\"2024-10-31T05:11:11Z\",\"name\":\"Killing\",\"message\":\"Killing container 1 (platform initiated).\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Stopped\"},\"priority\":\"Spot\"},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cguyxhp\",\"name\":\"test-cguyxhp\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\",\"tags\":{\"key\":\"value\"}}", "isContentBase64": false } }, - "Stop-AzContainerGroupSpotContainer+[NoContext]+StopViaIdentity+$POST+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgytxbr/stop?api-version=2022-10-01-preview+2": { + "Stop-AzContainerGroupSpotContainer+[NoContext]+StopViaIdentity+$POST+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cguyxhp/stop?api-version=2024-05-01-preview+2": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgytxbr/stop?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cguyxhp/stop?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "127" ], - "x-ms-client-request-id": [ "1d13c6f4-066f-4797-9afc-5016d4be2ac4" ], + "x-ms-unique-id": [ "142" ], + "x-ms-client-request-id": [ "ecdb4370-e7db-44cd-9b14-b12f6021c9f0" ], "CommandName": [ "Stop-AzContainerGroup" ], "FullCommandName": [ "Stop-AzContainerGroup_StopViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -101,13 +106,16 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "eastus:e98fae83-309b-44ff-96f4-36f3ec75c811" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1175" ], - "x-ms-correlation-request-id": [ "a743bce0-a35e-48b2-bf2c-910f50e3dd5c" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T001537Z:a743bce0-a35e-48b2-bf2c-910f50e3dd5c" ], + "x-ms-request-id": [ "eastus:d1b58160-5960-41a1-b33c-cf46a21b1d60" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], + "x-ms-correlation-request-id": [ "67caf1bb-cc7d-4c59-84cb-f5be9bbe8282" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T051244Z:67caf1bb-cc7d-4c59-84cb-f5be9bbe8282" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:15:37 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 1DB72CB902784B48879D4D75B788ECB5 Ref B: MAA201060515045 Ref C: 2024-10-31T05:12:43Z" ], + "Date": [ "Thu, 31 Oct 2024 05:12:43 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ] diff --git a/src/ContainerInstance/ContainerInstance.Autorest/test/Stop-AzContainerGroupiConfidentialSku.Recording.json b/src/ContainerInstance/ContainerInstance.Autorest/test/Stop-AzContainerGroupiConfidentialSku.Recording.json index 27939e9fded6..5dc68eaa32a9 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/test/Stop-AzContainerGroupiConfidentialSku.Recording.json +++ b/src/ContainerInstance/ContainerInstance.Autorest/test/Stop-AzContainerGroupiConfidentialSku.Recording.json @@ -1,17 +1,17 @@ { - "Stop-AzContainerGroupConfidentialSku+[NoContext]+Stop+$POST+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup/stop?api-version=2022-10-01-preview+1": { + "Stop-AzContainerGroupConfidentialSku+[NoContext]+Stop+$POST+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup/stop?api-version=2024-05-01-preview+1": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup/stop?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup/stop?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "119" ], - "x-ms-client-request-id": [ "313f7444-5b74-4bf9-a7cc-e3c3da2ca15f" ], + "x-ms-unique-id": [ "134" ], + "x-ms-client-request-id": [ "0cfdfc1d-616d-4249-a222-24e6bcd3a558" ], "CommandName": [ "Stop-AzContainerGroup" ], "FullCommandName": [ "Stop-AzContainerGroup_Stop" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -22,13 +22,16 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "eastus:d6504e0c-bdae-4084-bd50-7ff1cbe7b55d" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1180" ], - "x-ms-correlation-request-id": [ "3eb6722d-2bf9-4c77-8115-e1b7b52d1457" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T001512Z:3eb6722d-2bf9-4c77-8115-e1b7b52d1457" ], + "x-ms-request-id": [ "eastus:23586da0-d59e-4992-a7e2-311255cbc12b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], + "x-ms-correlation-request-id": [ "9503e166-6af0-4da3-a6be-89262f6b0416" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T051221Z:9503e166-6af0-4da3-a6be-89262f6b0416" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:15:12 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: D8B6CA3B872740CAA16EE958893354D6 Ref B: MAA201060515045 Ref C: 2024-10-31T05:12:20Z" ], + "Date": [ "Thu, 31 Oct 2024 05:12:20 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ] @@ -37,19 +40,19 @@ "isContentBase64": false } }, - "Stop-AzContainerGroupConfidentialSku+[NoContext]+StopViaIdentity+$GET+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup?api-version=2022-10-01-preview+1": { + "Stop-AzContainerGroupConfidentialSku+[NoContext]+StopViaIdentity+$GET+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup?api-version=2024-05-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "120" ], - "x-ms-client-request-id": [ "06844b66-1320-48f5-b74c-d020bcab9d49" ], + "x-ms-unique-id": [ "135" ], + "x-ms-client-request-id": [ "57bec1ca-3784-4bb6-82ec-5474f163d1c4" ], "CommandName": [ "Get-AzContainerGroup" ], "FullCommandName": [ "Get-AzContainerGroup_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -60,37 +63,39 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-request-id": [ "eastus:9b920069-a6d0-4c29-88d9-230b7815572b" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11929" ], - "x-ms-correlation-request-id": [ "7bf0976f-adfa-4061-af18-1d36eff89dbb" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T001512Z:7bf0976f-adfa-4061-af18-1d36eff89dbb" ], + "x-ms-request-id": [ "eastus:518ede8f-6b59-4626-a72d-09d2f3bcc716" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "7f305468-4748-4c56-9f52-1906ddcd4006" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T051221Z:7f305468-4748-4c56-9f52-1906ddcd4006" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:15:12 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 8F2290D8664040D884A6EEF139C5123D Ref B: MAA201060515045 Ref C: 2024-10-31T05:12:21Z" ], + "Date": [ "Thu, 31 Oct 2024 05:12:20 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1713" ], + "Content-Length": [ "1884" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"sku\":\"Confidential\",\"confidentialComputeProperties\":{\"ccePolicy\":\"cGFja2FnZSBwb2xpY3kKCmFwaV9zdm4gOj0gIjAuMTAuMCIKCm1vdW50X2RldmljZSA6PSB7ImFsbG93ZWQiOiB0cnVlfQptb3VudF9vdmVybGF5IDo9IHsiYWxsb3dlZCI6IHRydWV9CmNyZWF0ZV9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbCwgImFsbG93X3N0ZGlvX2FjY2VzcyI6IHRydWV9CnVubW91bnRfZGV2aWNlIDo9IHsiYWxsb3dlZCI6IHRydWV9IAp1bm1vdW50X292ZXJsYXkgOj0geyJhbGxvd2VkIjogdHJ1ZX0KZXhlY19pbl9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbH0KZXhlY19leHRlcm5hbCA6PSB7ImFsbG93ZWQiOiB0cnVlLCAiZW52X2xpc3QiOiBudWxsLCAiYWxsb3dfc3RkaW9fYWNjZXNzIjogdHJ1ZX0Kc2h1dGRvd25fY29udGFpbmVyIDo9IHsiYWxsb3dlZCI6IHRydWV9CnNpZ25hbF9jb250YWluZXJfcHJvY2VzcyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV9tb3VudCA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CmdldF9wcm9wZXJ0aWVzIDo9IHsiYWxsb3dlZCI6IHRydWV9CmR1bXBfc3RhY2tzIDo9IHsiYWxsb3dlZCI6IHRydWV9CnJ1bnRpbWVfbG9nZ2luZyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpsb2FkX2ZyYWdtZW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CnNjcmF0Y2hfbW91bnQgOj0geyJhbGxvd2VkIjogdHJ1ZX0Kc2NyYXRjaF91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9Cg==\"},\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"bez-test-ci\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Stopped\"}},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup\",\"name\":\"test-confidential-containergroup\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\",\"tags\":{\"key\":\"value\"}}", + "Content": "{\"properties\":{\"sku\":\"Confidential\",\"confidentialComputeProperties\":{\"ccePolicy\":\"cGFja2FnZSBwb2xpY3kKCmFwaV9zdm4gOj0gIjAuMTAuMCIKCm1vdW50X2RldmljZSA6PSB7ImFsbG93ZWQiOiB0cnVlfQptb3VudF9vdmVybGF5IDo9IHsiYWxsb3dlZCI6IHRydWV9CmNyZWF0ZV9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbCwgImFsbG93X3N0ZGlvX2FjY2VzcyI6IHRydWV9CnVubW91bnRfZGV2aWNlIDo9IHsiYWxsb3dlZCI6IHRydWV9IAp1bm1vdW50X292ZXJsYXkgOj0geyJhbGxvd2VkIjogdHJ1ZX0KZXhlY19pbl9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbH0KZXhlY19leHRlcm5hbCA6PSB7ImFsbG93ZWQiOiB0cnVlLCAiZW52X2xpc3QiOiBudWxsLCAiYWxsb3dfc3RkaW9fYWNjZXNzIjogdHJ1ZX0Kc2h1dGRvd25fY29udGFpbmVyIDo9IHsiYWxsb3dlZCI6IHRydWV9CnNpZ25hbF9jb250YWluZXJfcHJvY2VzcyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV9tb3VudCA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CmdldF9wcm9wZXJ0aWVzIDo9IHsiYWxsb3dlZCI6IHRydWV9CmR1bXBfc3RhY2tzIDo9IHsiYWxsb3dlZCI6IHRydWV9CnJ1bnRpbWVfbG9nZ2luZyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpsb2FkX2ZyYWdtZW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CnNjcmF0Y2hfbW91bnQgOj0geyJhbGxvd2VkIjogdHJ1ZX0Kc2NyYXRjaF91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9Cg==\"},\"isCreatedFromStandbyPool\":false,\"provisioningState\":\"Succeeded\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"bez-test-ci\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{}},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Stopped\"}},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup\",\"name\":\"test-confidential-containergroup\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\",\"tags\":{\"key\":\"value\"}}", "isContentBase64": false } }, - "Stop-AzContainerGroupConfidentialSku+[NoContext]+StopViaIdentity+$POST+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup/stop?api-version=2022-10-01-preview+2": { + "Stop-AzContainerGroupConfidentialSku+[NoContext]+StopViaIdentity+$POST+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup/stop?api-version=2024-05-01-preview+2": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup/stop?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup/stop?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "121" ], - "x-ms-client-request-id": [ "9465d5cb-7649-427f-ad34-277789262915" ], + "x-ms-unique-id": [ "136" ], + "x-ms-client-request-id": [ "7f195b5e-5f27-4409-84a3-8430392e10eb" ], "CommandName": [ "Stop-AzContainerGroup" ], "FullCommandName": [ "Stop-AzContainerGroup_StopViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -101,13 +106,16 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "eastus:9b6bb6c6-cdc1-46a7-b0b8-78ea8612599d" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1179" ], - "x-ms-correlation-request-id": [ "4ead0b06-e171-4c39-ae80-90ac4c40e061" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T001512Z:4ead0b06-e171-4c39-ae80-90ac4c40e061" ], + "x-ms-request-id": [ "eastus:4af2ef1c-6ed5-493b-93ef-f05d25053c74" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], + "x-ms-correlation-request-id": [ "c357390e-2b67-4201-9455-c2e5a3ab8215" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T051222Z:c357390e-2b67-4201-9455-c2e5a3ab8215" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:15:12 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 9F3EC2C6ADF14C62B1378BF3DFCBD1A8 Ref B: MAA201060515045 Ref C: 2024-10-31T05:12:21Z" ], + "Date": [ "Thu, 31 Oct 2024 05:12:21 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ] diff --git a/src/ContainerInstance/ContainerInstance.Autorest/test/Update-AzContainerGroup.Recording.json b/src/ContainerInstance/ContainerInstance.Autorest/test/Update-AzContainerGroup.Recording.json index 26312340c312..4706eed8ded3 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/test/Update-AzContainerGroup.Recording.json +++ b/src/ContainerInstance/ContainerInstance.Autorest/test/Update-AzContainerGroup.Recording.json @@ -1,8 +1,8 @@ { - "Update-AzContainerGroup+[NoContext]+UpdateExpanded+$PATCH+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg?api-version=2022-10-01-preview+1": { + "Update-AzContainerGroup+[NoContext]+UpdateExpanded+$PATCH+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg?api-version=2024-05-01-preview+1": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg?api-version=2024-05-01-preview", "Content": "{\n \"tags\": {\n \"test\": \"value\"\n }\n}", "isContentBase64": false, "Headers": { @@ -17,37 +17,39 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-request-id": [ "eastus:4dd067af-b309-4530-bf85-07d77248283e" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1179" ], - "x-ms-correlation-request-id": [ "71424278-ce32-4e5f-9fb0-a30d8bfcbcee" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T001550Z:71424278-ce32-4e5f-9fb0-a30d8bfcbcee" ], + "x-ms-request-id": [ "eastus:23eeaf03-4b2d-4028-bdc3-f4c897c8e1a4" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], + "x-ms-correlation-request-id": [ "a0568162-c514-48bc-8826-541958494aa2" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T051257Z:a0568162-c514-48bc-8826-541958494aa2" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:15:49 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: BA33F3979FA84644B29906211D1AD7E7 Ref B: MAA201060515045 Ref C: 2024-10-31T05:12:52Z" ], + "Date": [ "Thu, 31 Oct 2024 05:12:56 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1722" ], + "Content-Length": [ "1927" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"bez-test-ci\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Terminated\",\"finishTime\":\"2023-02-18T00:14:58.3739727Z\",\"detailStatus\":\"Container stopped per client request\"},\"previousState\":{\"state\":\"Running\",\"startTime\":\"2023-02-18T00:13:28.763Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:53:26Z\",\"lastTimestamp\":\"2023-02-17T23:53:26Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:53:35Z\",\"lastTimestamp\":\"2023-02-17T23:53:35Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:53:48Z\",\"lastTimestamp\":\"2023-02-17T23:53:48Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"},{\"count\":2,\"firstTimestamp\":\"2023-02-18T00:13:25Z\",\"lastTimestamp\":\"2023-02-18T00:13:25Z\",\"name\":\"Killing\",\"message\":\"Killing container with id 59403246886cd1cf38fb5f7efcb32bb7b36717a475526f3a26ebbfaa87ab13e6.\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Stopped\"}},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg\",\"name\":\"bez-test-cg\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\",\"tags\":{\"test\":\"value\"}}", + "Content": "{\"properties\":{\"sku\":\"Standard\",\"isCreatedFromStandbyPool\":false,\"provisioningState\":\"Succeeded\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"bez-test-ci\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{}},\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Terminated\",\"finishTime\":\"2024-10-31T05:12:10.7524476Z\",\"detailStatus\":\"Container stopped per client request\"},\"previousState\":{\"state\":\"Running\",\"startTime\":\"2024-10-31T05:10:35.441Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:52:33Z\",\"lastTimestamp\":\"2024-10-31T04:52:33Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:52:38Z\",\"lastTimestamp\":\"2024-10-31T04:52:38Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":2,\"firstTimestamp\":\"2024-10-31T04:52:46Z\",\"lastTimestamp\":\"2024-10-31T05:10:35Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"},{\"count\":2,\"firstTimestamp\":\"2024-10-31T05:10:33Z\",\"lastTimestamp\":\"2024-10-31T05:10:33Z\",\"name\":\"Killing\",\"message\":\"Killing container bez-test-ci (platform initiated).\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Stopped\"}},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg\",\"name\":\"bez-test-cg\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\",\"tags\":{\"test\":\"value\"}}", "isContentBase64": false } }, - "Update-AzContainerGroup+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg?api-version=2022-10-01-preview+1": { + "Update-AzContainerGroup+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg?api-version=2024-05-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "129" ], - "x-ms-client-request-id": [ "16f95e4f-eae8-4eb4-984f-b268141c481c" ], + "x-ms-unique-id": [ "144" ], + "x-ms-client-request-id": [ "0b0e78f9-0c4d-4101-9aaf-d1ab27161589" ], "CommandName": [ "Get-AzContainerGroup" ], "FullCommandName": [ "Get-AzContainerGroup_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -58,28 +60,30 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-request-id": [ "eastus:923d3d39-1612-4696-a678-984be242d937" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11926" ], - "x-ms-correlation-request-id": [ "fb260b6c-67c4-4481-acd3-3fbc7a82ff95" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T001550Z:fb260b6c-67c4-4481-acd3-3fbc7a82ff95" ], + "x-ms-request-id": [ "eastus:16efbc5b-ddd2-4742-8b5c-7259c3ee006e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "5411df2f-189d-41d8-9198-759bf2b8dfb2" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T051257Z:5411df2f-189d-41d8-9198-759bf2b8dfb2" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:15:49 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 85E8DFD50C9E4598931D579BB8BE9E44 Ref B: MAA201060515045 Ref C: 2024-10-31T05:12:57Z" ], + "Date": [ "Thu, 31 Oct 2024 05:12:57 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1722" ], + "Content-Length": [ "1927" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"bez-test-ci\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Terminated\",\"finishTime\":\"2023-02-18T00:14:58.3739727Z\",\"detailStatus\":\"Container stopped per client request\"},\"previousState\":{\"state\":\"Running\",\"startTime\":\"2023-02-18T00:13:28.763Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:53:26Z\",\"lastTimestamp\":\"2023-02-17T23:53:26Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:53:35Z\",\"lastTimestamp\":\"2023-02-17T23:53:35Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:53:48Z\",\"lastTimestamp\":\"2023-02-17T23:53:48Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"},{\"count\":2,\"firstTimestamp\":\"2023-02-18T00:13:25Z\",\"lastTimestamp\":\"2023-02-18T00:13:25Z\",\"name\":\"Killing\",\"message\":\"Killing container with id 59403246886cd1cf38fb5f7efcb32bb7b36717a475526f3a26ebbfaa87ab13e6.\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Stopped\"}},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg\",\"name\":\"bez-test-cg\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\",\"tags\":{\"test\":\"value\"}}", + "Content": "{\"properties\":{\"sku\":\"Standard\",\"isCreatedFromStandbyPool\":false,\"provisioningState\":\"Succeeded\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"bez-test-ci\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{}},\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Terminated\",\"finishTime\":\"2024-10-31T05:12:10.7524476Z\",\"detailStatus\":\"Container stopped per client request\"},\"previousState\":{\"state\":\"Running\",\"startTime\":\"2024-10-31T05:10:35.441Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:52:33Z\",\"lastTimestamp\":\"2024-10-31T04:52:33Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:52:38Z\",\"lastTimestamp\":\"2024-10-31T04:52:38Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":2,\"firstTimestamp\":\"2024-10-31T04:52:46Z\",\"lastTimestamp\":\"2024-10-31T05:10:35Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"},{\"count\":2,\"firstTimestamp\":\"2024-10-31T05:10:33Z\",\"lastTimestamp\":\"2024-10-31T05:10:33Z\",\"name\":\"Killing\",\"message\":\"Killing container bez-test-ci (platform initiated).\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Stopped\"}},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg\",\"name\":\"bez-test-cg\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\",\"tags\":{\"test\":\"value\"}}", "isContentBase64": false } }, - "Update-AzContainerGroup+[NoContext]+UpdateViaIdentityExpanded+$PATCH+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg?api-version=2022-10-01-preview+2": { + "Update-AzContainerGroup+[NoContext]+UpdateViaIdentityExpanded+$PATCH+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg?api-version=2024-05-01-preview+2": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg?api-version=2024-05-01-preview", "Content": "{\n \"tags\": {\n \"test\": \"value\"\n }\n}", "isContentBase64": false, "Headers": { @@ -94,21 +98,23 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-request-id": [ "eastus:a35da3d9-f1a4-4c08-98a8-01f2116dcd32" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1178" ], - "x-ms-correlation-request-id": [ "26383974-f951-4efa-be75-fe622564269e" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T001551Z:26383974-f951-4efa-be75-fe622564269e" ], + "x-ms-request-id": [ "eastus:f5a9a57e-cdba-4da8-b215-8080c3aea283" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], + "x-ms-correlation-request-id": [ "6f2d14c9-df39-49ef-b55b-1309b37132c1" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T051302Z:6f2d14c9-df39-49ef-b55b-1309b37132c1" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:15:50 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 5EC5E39A320A4E40BC1D455C135D6B44 Ref B: MAA201060515045 Ref C: 2024-10-31T05:12:57Z" ], + "Date": [ "Thu, 31 Oct 2024 05:13:01 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1722" ], + "Content-Length": [ "1927" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"bez-test-ci\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Terminated\",\"finishTime\":\"2023-02-18T00:14:58.3739727Z\",\"detailStatus\":\"Container stopped per client request\"},\"previousState\":{\"state\":\"Running\",\"startTime\":\"2023-02-18T00:13:28.763Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:53:26Z\",\"lastTimestamp\":\"2023-02-17T23:53:26Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:53:35Z\",\"lastTimestamp\":\"2023-02-17T23:53:35Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:53:48Z\",\"lastTimestamp\":\"2023-02-17T23:53:48Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"},{\"count\":2,\"firstTimestamp\":\"2023-02-18T00:13:25Z\",\"lastTimestamp\":\"2023-02-18T00:13:25Z\",\"name\":\"Killing\",\"message\":\"Killing container with id 59403246886cd1cf38fb5f7efcb32bb7b36717a475526f3a26ebbfaa87ab13e6.\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Stopped\"}},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg\",\"name\":\"bez-test-cg\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\",\"tags\":{\"test\":\"value\"}}", + "Content": "{\"properties\":{\"sku\":\"Standard\",\"isCreatedFromStandbyPool\":false,\"provisioningState\":\"Succeeded\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"bez-test-ci\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{}},\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Terminated\",\"finishTime\":\"2024-10-31T05:12:10.7524476Z\",\"detailStatus\":\"Container stopped per client request\"},\"previousState\":{\"state\":\"Running\",\"startTime\":\"2024-10-31T05:10:35.441Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:52:33Z\",\"lastTimestamp\":\"2024-10-31T04:52:33Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:52:38Z\",\"lastTimestamp\":\"2024-10-31T04:52:38Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":2,\"firstTimestamp\":\"2024-10-31T04:52:46Z\",\"lastTimestamp\":\"2024-10-31T05:10:35Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"},{\"count\":2,\"firstTimestamp\":\"2024-10-31T05:10:33Z\",\"lastTimestamp\":\"2024-10-31T05:10:33Z\",\"name\":\"Killing\",\"message\":\"Killing container bez-test-ci (platform initiated).\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Stopped\"}},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/bez-test-cg\",\"name\":\"bez-test-cg\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\",\"tags\":{\"test\":\"value\"}}", "isContentBase64": false } } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/test/Update-AzContainerGroupConfidentialSku.Recording.json b/src/ContainerInstance/ContainerInstance.Autorest/test/Update-AzContainerGroupConfidentialSku.Recording.json index 6947b436bb0e..48d8dc146ef9 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/test/Update-AzContainerGroupConfidentialSku.Recording.json +++ b/src/ContainerInstance/ContainerInstance.Autorest/test/Update-AzContainerGroupConfidentialSku.Recording.json @@ -1,8 +1,8 @@ { - "Update-AzContainerGroupConfidentialSku+[NoContext]+UpdateExpanded+$PATCH+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup?api-version=2022-10-01-preview+1": { + "Update-AzContainerGroupConfidentialSku+[NoContext]+UpdateExpanded+$PATCH+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup?api-version=2024-05-01-preview+1": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup?api-version=2024-05-01-preview", "Content": "{\n \"tags\": {\n \"test\": \"value\"\n }\n}", "isContentBase64": false, "Headers": { @@ -17,37 +17,39 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-request-id": [ "eastus:5385a9f8-868c-4c4c-9467-6b35e0b07e84" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1177" ], - "x-ms-correlation-request-id": [ "9fc3dfe1-a370-40a5-9a07-9390b40373d2" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T001602Z:9fc3dfe1-a370-40a5-9a07-9390b40373d2" ], + "x-ms-request-id": [ "eastus:6f627988-2af1-4ec1-9d98-6c63b1696d62" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], + "x-ms-correlation-request-id": [ "028c214b-edb0-46c1-b040-d73b78cc40d1" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T051314Z:028c214b-edb0-46c1-b040-d73b78cc40d1" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:16:01 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: CCFFA4B2EF204DDAA6BF2ACA07CBD458 Ref B: MAA201060515045 Ref C: 2024-10-31T05:13:11Z" ], + "Date": [ "Thu, 31 Oct 2024 05:13:13 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2845" ], + "Content-Length": [ "1885" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"sku\":\"Confidential\",\"confidentialComputeProperties\":{\"ccePolicy\":\"cGFja2FnZSBwb2xpY3kKCmFwaV9zdm4gOj0gIjAuMTAuMCIKCm1vdW50X2RldmljZSA6PSB7ImFsbG93ZWQiOiB0cnVlfQptb3VudF9vdmVybGF5IDo9IHsiYWxsb3dlZCI6IHRydWV9CmNyZWF0ZV9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbCwgImFsbG93X3N0ZGlvX2FjY2VzcyI6IHRydWV9CnVubW91bnRfZGV2aWNlIDo9IHsiYWxsb3dlZCI6IHRydWV9IAp1bm1vdW50X292ZXJsYXkgOj0geyJhbGxvd2VkIjogdHJ1ZX0KZXhlY19pbl9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbH0KZXhlY19leHRlcm5hbCA6PSB7ImFsbG93ZWQiOiB0cnVlLCAiZW52X2xpc3QiOiBudWxsLCAiYWxsb3dfc3RkaW9fYWNjZXNzIjogdHJ1ZX0Kc2h1dGRvd25fY29udGFpbmVyIDo9IHsiYWxsb3dlZCI6IHRydWV9CnNpZ25hbF9jb250YWluZXJfcHJvY2VzcyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV9tb3VudCA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CmdldF9wcm9wZXJ0aWVzIDo9IHsiYWxsb3dlZCI6IHRydWV9CmR1bXBfc3RhY2tzIDo9IHsiYWxsb3dlZCI6IHRydWV9CnJ1bnRpbWVfbG9nZ2luZyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpsb2FkX2ZyYWdtZW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CnNjcmF0Y2hfbW91bnQgOj0geyJhbGxvd2VkIjogdHJ1ZX0Kc2NyYXRjaF91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9Cg==\"},\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"bez-test-ci\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Terminated\",\"finishTime\":\"2023-02-18T00:15:12.6163051Z\",\"detailStatus\":\"Container stopped per client request\"},\"previousState\":{\"state\":\"Running\",\"startTime\":\"2023-02-18T00:13:39.518Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2023-02-18T00:07:01Z\",\"lastTimestamp\":\"2023-02-18T00:07:01Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-18T00:07:06Z\",\"lastTimestamp\":\"2023-02-18T00:07:06Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":2,\"firstTimestamp\":\"2023-02-18T00:07:52Z\",\"lastTimestamp\":\"2023-02-18T00:13:39Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"},{\"count\":2,\"firstTimestamp\":\"2023-02-18T00:13:38Z\",\"lastTimestamp\":\"2023-02-18T00:13:38Z\",\"name\":\"Killing\",\"message\":\"Killing container with id 9883adcd9089fe95fd09542d04d7400e8443691131d15001b051bfef04941c2c.\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Stopped\"}},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup\",\"name\":\"test-confidential-containergroup\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\",\"tags\":{\"test\":\"value\"}}", + "Content": "{\"properties\":{\"sku\":\"Confidential\",\"confidentialComputeProperties\":{\"ccePolicy\":\"cGFja2FnZSBwb2xpY3kKCmFwaV9zdm4gOj0gIjAuMTAuMCIKCm1vdW50X2RldmljZSA6PSB7ImFsbG93ZWQiOiB0cnVlfQptb3VudF9vdmVybGF5IDo9IHsiYWxsb3dlZCI6IHRydWV9CmNyZWF0ZV9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbCwgImFsbG93X3N0ZGlvX2FjY2VzcyI6IHRydWV9CnVubW91bnRfZGV2aWNlIDo9IHsiYWxsb3dlZCI6IHRydWV9IAp1bm1vdW50X292ZXJsYXkgOj0geyJhbGxvd2VkIjogdHJ1ZX0KZXhlY19pbl9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbH0KZXhlY19leHRlcm5hbCA6PSB7ImFsbG93ZWQiOiB0cnVlLCAiZW52X2xpc3QiOiBudWxsLCAiYWxsb3dfc3RkaW9fYWNjZXNzIjogdHJ1ZX0Kc2h1dGRvd25fY29udGFpbmVyIDo9IHsiYWxsb3dlZCI6IHRydWV9CnNpZ25hbF9jb250YWluZXJfcHJvY2VzcyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV9tb3VudCA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CmdldF9wcm9wZXJ0aWVzIDo9IHsiYWxsb3dlZCI6IHRydWV9CmR1bXBfc3RhY2tzIDo9IHsiYWxsb3dlZCI6IHRydWV9CnJ1bnRpbWVfbG9nZ2luZyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpsb2FkX2ZyYWdtZW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CnNjcmF0Y2hfbW91bnQgOj0geyJhbGxvd2VkIjogdHJ1ZX0Kc2NyYXRjaF91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9Cg==\"},\"isCreatedFromStandbyPool\":false,\"provisioningState\":\"Succeeded\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"bez-test-ci\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{}},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Stopped\"}},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup\",\"name\":\"test-confidential-containergroup\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\",\"tags\":{\"test\":\"value\"}}", "isContentBase64": false } }, - "Update-AzContainerGroupConfidentialSku+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup?api-version=2022-10-01-preview+1": { + "Update-AzContainerGroupConfidentialSku+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup?api-version=2024-05-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "132" ], - "x-ms-client-request-id": [ "d7b57ff9-1a8e-42f4-bb4a-c9f90cdbef5d" ], + "x-ms-unique-id": [ "147" ], + "x-ms-client-request-id": [ "dd359a37-8a15-4369-922a-29119fb80044" ], "CommandName": [ "Get-AzContainerGroup" ], "FullCommandName": [ "Get-AzContainerGroup_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -58,28 +60,30 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-request-id": [ "eastus:09fb51ab-94df-46e8-a6da-6d2274da7b23" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11925" ], - "x-ms-correlation-request-id": [ "4fc8b951-db33-44cb-82f3-66b2438974ce" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T001602Z:4fc8b951-db33-44cb-82f3-66b2438974ce" ], + "x-ms-request-id": [ "eastus:b1466287-e46c-4deb-87be-e671058945c6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "ac911f2d-aa19-4c1c-9975-4d53da517203" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T051315Z:ac911f2d-aa19-4c1c-9975-4d53da517203" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:16:02 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: F0AA2C95A70049F294FBC0FD422DF194 Ref B: MAA201060515045 Ref C: 2024-10-31T05:13:14Z" ], + "Date": [ "Thu, 31 Oct 2024 05:13:14 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2845" ], + "Content-Length": [ "1885" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"sku\":\"Confidential\",\"confidentialComputeProperties\":{\"ccePolicy\":\"cGFja2FnZSBwb2xpY3kKCmFwaV9zdm4gOj0gIjAuMTAuMCIKCm1vdW50X2RldmljZSA6PSB7ImFsbG93ZWQiOiB0cnVlfQptb3VudF9vdmVybGF5IDo9IHsiYWxsb3dlZCI6IHRydWV9CmNyZWF0ZV9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbCwgImFsbG93X3N0ZGlvX2FjY2VzcyI6IHRydWV9CnVubW91bnRfZGV2aWNlIDo9IHsiYWxsb3dlZCI6IHRydWV9IAp1bm1vdW50X292ZXJsYXkgOj0geyJhbGxvd2VkIjogdHJ1ZX0KZXhlY19pbl9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbH0KZXhlY19leHRlcm5hbCA6PSB7ImFsbG93ZWQiOiB0cnVlLCAiZW52X2xpc3QiOiBudWxsLCAiYWxsb3dfc3RkaW9fYWNjZXNzIjogdHJ1ZX0Kc2h1dGRvd25fY29udGFpbmVyIDo9IHsiYWxsb3dlZCI6IHRydWV9CnNpZ25hbF9jb250YWluZXJfcHJvY2VzcyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV9tb3VudCA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CmdldF9wcm9wZXJ0aWVzIDo9IHsiYWxsb3dlZCI6IHRydWV9CmR1bXBfc3RhY2tzIDo9IHsiYWxsb3dlZCI6IHRydWV9CnJ1bnRpbWVfbG9nZ2luZyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpsb2FkX2ZyYWdtZW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CnNjcmF0Y2hfbW91bnQgOj0geyJhbGxvd2VkIjogdHJ1ZX0Kc2NyYXRjaF91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9Cg==\"},\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"bez-test-ci\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Terminated\",\"finishTime\":\"2023-02-18T00:15:12.6163051Z\",\"detailStatus\":\"Container stopped per client request\"},\"previousState\":{\"state\":\"Running\",\"startTime\":\"2023-02-18T00:13:39.518Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2023-02-18T00:07:01Z\",\"lastTimestamp\":\"2023-02-18T00:07:01Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-18T00:07:06Z\",\"lastTimestamp\":\"2023-02-18T00:07:06Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":2,\"firstTimestamp\":\"2023-02-18T00:07:52Z\",\"lastTimestamp\":\"2023-02-18T00:13:39Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"},{\"count\":2,\"firstTimestamp\":\"2023-02-18T00:13:38Z\",\"lastTimestamp\":\"2023-02-18T00:13:38Z\",\"name\":\"Killing\",\"message\":\"Killing container with id 9883adcd9089fe95fd09542d04d7400e8443691131d15001b051bfef04941c2c.\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Stopped\"}},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup\",\"name\":\"test-confidential-containergroup\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\",\"tags\":{\"test\":\"value\"}}", + "Content": "{\"properties\":{\"sku\":\"Confidential\",\"confidentialComputeProperties\":{\"ccePolicy\":\"cGFja2FnZSBwb2xpY3kKCmFwaV9zdm4gOj0gIjAuMTAuMCIKCm1vdW50X2RldmljZSA6PSB7ImFsbG93ZWQiOiB0cnVlfQptb3VudF9vdmVybGF5IDo9IHsiYWxsb3dlZCI6IHRydWV9CmNyZWF0ZV9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbCwgImFsbG93X3N0ZGlvX2FjY2VzcyI6IHRydWV9CnVubW91bnRfZGV2aWNlIDo9IHsiYWxsb3dlZCI6IHRydWV9IAp1bm1vdW50X292ZXJsYXkgOj0geyJhbGxvd2VkIjogdHJ1ZX0KZXhlY19pbl9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbH0KZXhlY19leHRlcm5hbCA6PSB7ImFsbG93ZWQiOiB0cnVlLCAiZW52X2xpc3QiOiBudWxsLCAiYWxsb3dfc3RkaW9fYWNjZXNzIjogdHJ1ZX0Kc2h1dGRvd25fY29udGFpbmVyIDo9IHsiYWxsb3dlZCI6IHRydWV9CnNpZ25hbF9jb250YWluZXJfcHJvY2VzcyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV9tb3VudCA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CmdldF9wcm9wZXJ0aWVzIDo9IHsiYWxsb3dlZCI6IHRydWV9CmR1bXBfc3RhY2tzIDo9IHsiYWxsb3dlZCI6IHRydWV9CnJ1bnRpbWVfbG9nZ2luZyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpsb2FkX2ZyYWdtZW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CnNjcmF0Y2hfbW91bnQgOj0geyJhbGxvd2VkIjogdHJ1ZX0Kc2NyYXRjaF91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9Cg==\"},\"isCreatedFromStandbyPool\":false,\"provisioningState\":\"Succeeded\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"bez-test-ci\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{}},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Stopped\"}},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup\",\"name\":\"test-confidential-containergroup\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\",\"tags\":{\"test\":\"value\"}}", "isContentBase64": false } }, - "Update-AzContainerGroupConfidentialSku+[NoContext]+UpdateViaIdentityExpanded+$PATCH+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup?api-version=2022-10-01-preview+2": { + "Update-AzContainerGroupConfidentialSku+[NoContext]+UpdateViaIdentityExpanded+$PATCH+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup?api-version=2024-05-01-preview+2": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup?api-version=2024-05-01-preview", "Content": "{\n \"tags\": {\n \"test\": \"value\"\n }\n}", "isContentBase64": false, "Headers": { @@ -94,21 +98,23 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-request-id": [ "eastus:bbc10321-58be-4b22-9b2d-c89e0472e44f" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1176" ], - "x-ms-correlation-request-id": [ "619d55ae-0dd3-4a7e-b987-b96f9adbf936" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T001603Z:619d55ae-0dd3-4a7e-b987-b96f9adbf936" ], + "x-ms-request-id": [ "eastus:6bebc140-b668-4bf5-ab7f-8cf5a75c6f14" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], + "x-ms-correlation-request-id": [ "9bf87987-fa04-43b2-81aa-d34baaab1042" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T051319Z:9bf87987-fa04-43b2-81aa-d34baaab1042" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:16:02 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 034818059138412597F6819C9934F303 Ref B: MAA201060515045 Ref C: 2024-10-31T05:13:15Z" ], + "Date": [ "Thu, 31 Oct 2024 05:13:18 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2845" ], + "Content-Length": [ "1885" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"sku\":\"Confidential\",\"confidentialComputeProperties\":{\"ccePolicy\":\"cGFja2FnZSBwb2xpY3kKCmFwaV9zdm4gOj0gIjAuMTAuMCIKCm1vdW50X2RldmljZSA6PSB7ImFsbG93ZWQiOiB0cnVlfQptb3VudF9vdmVybGF5IDo9IHsiYWxsb3dlZCI6IHRydWV9CmNyZWF0ZV9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbCwgImFsbG93X3N0ZGlvX2FjY2VzcyI6IHRydWV9CnVubW91bnRfZGV2aWNlIDo9IHsiYWxsb3dlZCI6IHRydWV9IAp1bm1vdW50X292ZXJsYXkgOj0geyJhbGxvd2VkIjogdHJ1ZX0KZXhlY19pbl9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbH0KZXhlY19leHRlcm5hbCA6PSB7ImFsbG93ZWQiOiB0cnVlLCAiZW52X2xpc3QiOiBudWxsLCAiYWxsb3dfc3RkaW9fYWNjZXNzIjogdHJ1ZX0Kc2h1dGRvd25fY29udGFpbmVyIDo9IHsiYWxsb3dlZCI6IHRydWV9CnNpZ25hbF9jb250YWluZXJfcHJvY2VzcyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV9tb3VudCA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CmdldF9wcm9wZXJ0aWVzIDo9IHsiYWxsb3dlZCI6IHRydWV9CmR1bXBfc3RhY2tzIDo9IHsiYWxsb3dlZCI6IHRydWV9CnJ1bnRpbWVfbG9nZ2luZyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpsb2FkX2ZyYWdtZW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CnNjcmF0Y2hfbW91bnQgOj0geyJhbGxvd2VkIjogdHJ1ZX0Kc2NyYXRjaF91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9Cg==\"},\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"bez-test-ci\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Terminated\",\"finishTime\":\"2023-02-18T00:15:12.6163051Z\",\"detailStatus\":\"Container stopped per client request\"},\"previousState\":{\"state\":\"Running\",\"startTime\":\"2023-02-18T00:13:39.518Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2023-02-18T00:07:01Z\",\"lastTimestamp\":\"2023-02-18T00:07:01Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-18T00:07:06Z\",\"lastTimestamp\":\"2023-02-18T00:07:06Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":2,\"firstTimestamp\":\"2023-02-18T00:07:52Z\",\"lastTimestamp\":\"2023-02-18T00:13:39Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"},{\"count\":2,\"firstTimestamp\":\"2023-02-18T00:13:38Z\",\"lastTimestamp\":\"2023-02-18T00:13:38Z\",\"name\":\"Killing\",\"message\":\"Killing container with id 9883adcd9089fe95fd09542d04d7400e8443691131d15001b051bfef04941c2c.\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Stopped\"}},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup\",\"name\":\"test-confidential-containergroup\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\",\"tags\":{\"test\":\"value\"}}", + "Content": "{\"properties\":{\"sku\":\"Confidential\",\"confidentialComputeProperties\":{\"ccePolicy\":\"cGFja2FnZSBwb2xpY3kKCmFwaV9zdm4gOj0gIjAuMTAuMCIKCm1vdW50X2RldmljZSA6PSB7ImFsbG93ZWQiOiB0cnVlfQptb3VudF9vdmVybGF5IDo9IHsiYWxsb3dlZCI6IHRydWV9CmNyZWF0ZV9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbCwgImFsbG93X3N0ZGlvX2FjY2VzcyI6IHRydWV9CnVubW91bnRfZGV2aWNlIDo9IHsiYWxsb3dlZCI6IHRydWV9IAp1bm1vdW50X292ZXJsYXkgOj0geyJhbGxvd2VkIjogdHJ1ZX0KZXhlY19pbl9jb250YWluZXIgOj0geyJhbGxvd2VkIjogdHJ1ZSwgImVudl9saXN0IjogbnVsbH0KZXhlY19leHRlcm5hbCA6PSB7ImFsbG93ZWQiOiB0cnVlLCAiZW52X2xpc3QiOiBudWxsLCAiYWxsb3dfc3RkaW9fYWNjZXNzIjogdHJ1ZX0Kc2h1dGRvd25fY29udGFpbmVyIDo9IHsiYWxsb3dlZCI6IHRydWV9CnNpZ25hbF9jb250YWluZXJfcHJvY2VzcyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV9tb3VudCA6PSB7ImFsbG93ZWQiOiB0cnVlfQpwbGFuOV91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CmdldF9wcm9wZXJ0aWVzIDo9IHsiYWxsb3dlZCI6IHRydWV9CmR1bXBfc3RhY2tzIDo9IHsiYWxsb3dlZCI6IHRydWV9CnJ1bnRpbWVfbG9nZ2luZyA6PSB7ImFsbG93ZWQiOiB0cnVlfQpsb2FkX2ZyYWdtZW50IDo9IHsiYWxsb3dlZCI6IHRydWV9CnNjcmF0Y2hfbW91bnQgOj0geyJhbGxvd2VkIjogdHJ1ZX0Kc2NyYXRjaF91bm1vdW50IDo9IHsiYWxsb3dlZCI6IHRydWV9Cg==\"},\"isCreatedFromStandbyPool\":false,\"provisioningState\":\"Succeeded\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"bez-test-ci\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{}},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Stopped\"}},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-confidential-containergroup\",\"name\":\"test-confidential-containergroup\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\",\"tags\":{\"test\":\"value\"}}", "isContentBase64": false } } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/test/Update-AzContainerGroupRegularPriority.Recording.json b/src/ContainerInstance/ContainerInstance.Autorest/test/Update-AzContainerGroupRegularPriority.Recording.json index 089c34297e6b..40c9f5629cad 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/test/Update-AzContainerGroupRegularPriority.Recording.json +++ b/src/ContainerInstance/ContainerInstance.Autorest/test/Update-AzContainerGroupRegularPriority.Recording.json @@ -1,8 +1,8 @@ { - "Update-AzContainerGroupRegularPriority+[NoContext]+UpdateExpanded+$PATCH+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgq5m6g?api-version=2022-10-01-preview+1": { + "Update-AzContainerGroupRegularPriority+[NoContext]+UpdateExpanded+$PATCH+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cgfl4g3?api-version=2024-05-01-preview+1": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgq5m6g?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cgfl4g3?api-version=2024-05-01-preview", "Content": "{\n \"tags\": {\n \"test\": \"value\"\n }\n}", "isContentBase64": false, "Headers": { @@ -17,37 +17,39 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-request-id": [ "eastus:16ab84e7-7dd5-4c1b-86f1-8cf24213b0d3" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1175" ], - "x-ms-correlation-request-id": [ "dca28f63-c8d8-438a-88ce-4c7a8cc91422" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T001614Z:dca28f63-c8d8-438a-88ce-4c7a8cc91422" ], + "x-ms-request-id": [ "eastus:4c2fee12-2d3e-41aa-9cdd-e5c53e76c450" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], + "x-ms-correlation-request-id": [ "82cc526f-786c-4e77-9265-271af58a291e" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T051334Z:82cc526f-786c-4e77-9265-271af58a291e" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:16:14 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 175648C1B9C14C339409F8AE88162EE3 Ref B: MAA201060515045 Ref C: 2024-10-31T05:13:30Z" ], + "Date": [ "Thu, 31 Oct 2024 05:13:33 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "604" ], + "Content-Length": [ "1929" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Stopped\"},\"priority\":\"Regular\"},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgq5m6g\",\"name\":\"test-cgq5m6g\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\",\"tags\":{\"test\":\"value\"}}", + "Content": "{\"properties\":{\"sku\":\"Standard\",\"isCreatedFromStandbyPool\":false,\"provisioningState\":\"Succeeded\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{}},\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Terminated\",\"finishTime\":\"2024-10-31T05:13:32.7242699Z\",\"detailStatus\":\"Container stopped per client request\"},\"previousState\":{\"state\":\"Running\",\"startTime\":\"2024-10-31T05:11:01.12Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:54:19Z\",\"lastTimestamp\":\"2024-10-31T04:54:19Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:54:21Z\",\"lastTimestamp\":\"2024-10-31T04:54:21Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":2,\"firstTimestamp\":\"2024-10-31T04:54:30Z\",\"lastTimestamp\":\"2024-10-31T05:11:01Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"},{\"count\":2,\"firstTimestamp\":\"2024-10-31T05:10:59Z\",\"lastTimestamp\":\"2024-10-31T05:10:59Z\",\"name\":\"Killing\",\"message\":\"Killing container 1 (platform initiated).\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Stopped\"},\"priority\":\"Regular\"},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cgfl4g3\",\"name\":\"test-cgfl4g3\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\",\"tags\":{\"test\":\"value\"}}", "isContentBase64": false } }, - "Update-AzContainerGroupRegularPriority+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgq5m6g?api-version=2022-10-01-preview+1": { + "Update-AzContainerGroupRegularPriority+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cgfl4g3?api-version=2024-05-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgq5m6g?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cgfl4g3?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "135" ], - "x-ms-client-request-id": [ "6870f3dc-e09d-43f4-922f-60d6a2b78e56" ], + "x-ms-unique-id": [ "150" ], + "x-ms-client-request-id": [ "a4bdc8d3-aaef-45c2-a204-d89992776c57" ], "CommandName": [ "Get-AzContainerGroup" ], "FullCommandName": [ "Get-AzContainerGroup_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -58,28 +60,30 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-request-id": [ "eastus:6e9899b7-7d9f-4db2-bb6e-594c457cf2d2" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11924" ], - "x-ms-correlation-request-id": [ "feb6606f-c0f0-4e41-8323-c3681d0938b2" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T001615Z:feb6606f-c0f0-4e41-8323-c3681d0938b2" ], + "x-ms-request-id": [ "eastus:d49bcb4a-7479-45f1-bde6-80512c6c1385" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "0dabdf30-967c-4a40-9fba-2467f60d67eb" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T051334Z:0dabdf30-967c-4a40-9fba-2467f60d67eb" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:16:14 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 761E0B622B0349EC83259C6BAA71CB8A Ref B: MAA201060515045 Ref C: 2024-10-31T05:13:34Z" ], + "Date": [ "Thu, 31 Oct 2024 05:13:33 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "604" ], + "Content-Length": [ "1929" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Stopped\"},\"priority\":\"Regular\"},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgq5m6g\",\"name\":\"test-cgq5m6g\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\",\"tags\":{\"test\":\"value\"}}", + "Content": "{\"properties\":{\"sku\":\"Standard\",\"isCreatedFromStandbyPool\":false,\"provisioningState\":\"Succeeded\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{}},\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Terminated\",\"finishTime\":\"2024-10-31T05:13:32.7242699Z\",\"detailStatus\":\"Container stopped per client request\"},\"previousState\":{\"state\":\"Running\",\"startTime\":\"2024-10-31T05:11:01.12Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:54:19Z\",\"lastTimestamp\":\"2024-10-31T04:54:19Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:54:21Z\",\"lastTimestamp\":\"2024-10-31T04:54:21Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":2,\"firstTimestamp\":\"2024-10-31T04:54:30Z\",\"lastTimestamp\":\"2024-10-31T05:11:01Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"},{\"count\":2,\"firstTimestamp\":\"2024-10-31T05:10:59Z\",\"lastTimestamp\":\"2024-10-31T05:10:59Z\",\"name\":\"Killing\",\"message\":\"Killing container 1 (platform initiated).\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Stopped\"},\"priority\":\"Regular\"},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cgfl4g3\",\"name\":\"test-cgfl4g3\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\",\"tags\":{\"test\":\"value\"}}", "isContentBase64": false } }, - "Update-AzContainerGroupRegularPriority+[NoContext]+UpdateViaIdentityExpanded+$PATCH+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgq5m6g?api-version=2022-10-01-preview+2": { + "Update-AzContainerGroupRegularPriority+[NoContext]+UpdateViaIdentityExpanded+$PATCH+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cgfl4g3?api-version=2024-05-01-preview+2": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgq5m6g?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cgfl4g3?api-version=2024-05-01-preview", "Content": "{\n \"tags\": {\n \"test\": \"value\"\n }\n}", "isContentBase64": false, "Headers": { @@ -94,21 +98,23 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-request-id": [ "eastus:2175c9a1-30b7-471d-a6e4-a8210ac66d9b" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1174" ], - "x-ms-correlation-request-id": [ "ad17435d-752d-4922-a17b-6d02ff766e2f" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T001616Z:ad17435d-752d-4922-a17b-6d02ff766e2f" ], + "x-ms-request-id": [ "eastus:9e62945e-482c-467a-976a-838375cd83ba" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], + "x-ms-correlation-request-id": [ "aec356fb-d2e3-450f-8a26-332904fca58c" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T051338Z:aec356fb-d2e3-450f-8a26-332904fca58c" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:16:15 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: CC47B54E02FB4AF8BE6EAE78E546E8F8 Ref B: MAA201060515045 Ref C: 2024-10-31T05:13:34Z" ], + "Date": [ "Thu, 31 Oct 2024 05:13:38 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "604" ], + "Content-Length": [ "1929" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Stopped\"},\"priority\":\"Regular\"},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgq5m6g\",\"name\":\"test-cgq5m6g\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\",\"tags\":{\"test\":\"value\"}}", + "Content": "{\"properties\":{\"sku\":\"Standard\",\"isCreatedFromStandbyPool\":false,\"provisioningState\":\"Succeeded\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{}},\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Terminated\",\"finishTime\":\"2024-10-31T05:13:32.7242699Z\",\"detailStatus\":\"Container stopped per client request\"},\"previousState\":{\"state\":\"Running\",\"startTime\":\"2024-10-31T05:11:01.12Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:54:19Z\",\"lastTimestamp\":\"2024-10-31T04:54:19Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:54:21Z\",\"lastTimestamp\":\"2024-10-31T04:54:21Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":2,\"firstTimestamp\":\"2024-10-31T04:54:30Z\",\"lastTimestamp\":\"2024-10-31T05:11:01Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"},{\"count\":2,\"firstTimestamp\":\"2024-10-31T05:10:59Z\",\"lastTimestamp\":\"2024-10-31T05:10:59Z\",\"name\":\"Killing\",\"message\":\"Killing container 1 (platform initiated).\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Stopped\"},\"priority\":\"Regular\"},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cgfl4g3\",\"name\":\"test-cgfl4g3\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\",\"tags\":{\"test\":\"value\"}}", "isContentBase64": false } } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/test/Update-AzContainerGroupSpotPriority.Recording.json b/src/ContainerInstance/ContainerInstance.Autorest/test/Update-AzContainerGroupSpotPriority.Recording.json index 58ba7cd61a2c..c936ab6976b1 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/test/Update-AzContainerGroupSpotPriority.Recording.json +++ b/src/ContainerInstance/ContainerInstance.Autorest/test/Update-AzContainerGroupSpotPriority.Recording.json @@ -1,8 +1,8 @@ { - "Update-AzContainerGroupSpotPriority+[NoContext]+UpdateExpanded+$PATCH+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgytxbr?api-version=2022-10-01-preview+1": { + "Update-AzContainerGroupSpotPriority+[NoContext]+UpdateExpanded+$PATCH+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cguyxhp?api-version=2024-05-01-preview+1": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgytxbr?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cguyxhp?api-version=2024-05-01-preview", "Content": "{\n \"tags\": {\n \"test\": \"value\"\n }\n}", "isContentBase64": false, "Headers": { @@ -17,37 +17,39 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-request-id": [ "eastus:9cbdf91d-53db-4787-a1a0-c84d3b07aa27" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1173" ], - "x-ms-correlation-request-id": [ "a289cc6b-b3c5-4f90-b214-255e92a59ff5" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T001627Z:a289cc6b-b3c5-4f90-b214-255e92a59ff5" ], + "x-ms-request-id": [ "eastus:e9e8836f-2fd2-4538-97a4-4ab3ee4be1ea" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], + "x-ms-correlation-request-id": [ "ed613f3a-bd1a-40e1-a79b-cdbfd0bf1763" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T051352Z:ed613f3a-bd1a-40e1-a79b-cdbfd0bf1763" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:16:26 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: E88F4811B92E4190B806002196071D09 Ref B: MAA201060515045 Ref C: 2024-10-31T05:13:48Z" ], + "Date": [ "Thu, 31 Oct 2024 05:13:51 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1731" ], + "Content-Length": [ "1927" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Terminated\",\"finishTime\":\"2023-02-18T00:15:37.117787Z\",\"detailStatus\":\"Container stopped per client request\"},\"previousState\":{\"state\":\"Running\",\"startTime\":\"2023-02-18T00:13:58.853Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:55:41Z\",\"lastTimestamp\":\"2023-02-17T23:55:41Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:55:42Z\",\"lastTimestamp\":\"2023-02-17T23:55:42Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":2,\"firstTimestamp\":\"2023-02-17T23:55:56Z\",\"lastTimestamp\":\"2023-02-18T00:13:58Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"},{\"count\":2,\"firstTimestamp\":\"2023-02-18T00:13:57Z\",\"lastTimestamp\":\"2023-02-18T00:13:57Z\",\"name\":\"Killing\",\"message\":\"Killing container with id 94803e07442ddafbb7e0872383e0c08d47e7f33d667f47c96588a158de6ac4cd.\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Stopped\"},\"priority\":\"Spot\"},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgytxbr\",\"name\":\"test-cgytxbr\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\",\"tags\":{\"test\":\"value\"}}", + "Content": "{\"properties\":{\"sku\":\"Standard\",\"isCreatedFromStandbyPool\":false,\"provisioningState\":\"Succeeded\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{}},\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Terminated\",\"finishTime\":\"2024-10-31T05:12:42.8062565Z\",\"detailStatus\":\"Container stopped per client request\"},\"previousState\":{\"state\":\"Running\",\"startTime\":\"2024-10-31T05:11:12.854Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:54:55Z\",\"lastTimestamp\":\"2024-10-31T04:54:55Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:54:57Z\",\"lastTimestamp\":\"2024-10-31T04:54:57Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:55:09Z\",\"lastTimestamp\":\"2024-10-31T04:55:09Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"},{\"count\":2,\"firstTimestamp\":\"2024-10-31T05:11:11Z\",\"lastTimestamp\":\"2024-10-31T05:11:11Z\",\"name\":\"Killing\",\"message\":\"Killing container 1 (platform initiated).\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Stopped\"},\"priority\":\"Spot\"},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cguyxhp\",\"name\":\"test-cguyxhp\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\",\"tags\":{\"test\":\"value\"}}", "isContentBase64": false } }, - "Update-AzContainerGroupSpotPriority+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgytxbr?api-version=2022-10-01-preview+1": { + "Update-AzContainerGroupSpotPriority+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cguyxhp?api-version=2024-05-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgytxbr?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cguyxhp?api-version=2024-05-01-preview", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "138" ], - "x-ms-client-request-id": [ "e5ccfb7c-ab01-4f96-ab64-e89e548ae3c3" ], + "x-ms-unique-id": [ "153" ], + "x-ms-client-request-id": [ "af3c8c93-0100-409c-9642-1eaa6e563e6f" ], "CommandName": [ "Get-AzContainerGroup" ], "FullCommandName": [ "Get-AzContainerGroup_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ContainerInstance/1.0.3" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.23", "Az.ContainerInstance/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -58,28 +60,30 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-request-id": [ "eastus:9e10039d-01b0-463f-b5a8-4d29ba48f130" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11923" ], - "x-ms-correlation-request-id": [ "bb6ab800-0459-42cf-b8b5-8f778ff44ebb" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T001627Z:bb6ab800-0459-42cf-b8b5-8f778ff44ebb" ], + "x-ms-request-id": [ "eastus:4eaf27fe-5d93-4e9c-af47-84bb75e9764a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "069c8d60-2f7d-4c3d-b2c7-f25b5484f9ed" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T051353Z:069c8d60-2f7d-4c3d-b2c7-f25b5484f9ed" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:16:26 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 027B15A92E264750B8D827A72DDD3D7C Ref B: MAA201060515045 Ref C: 2024-10-31T05:13:52Z" ], + "Date": [ "Thu, 31 Oct 2024 05:13:52 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1731" ], + "Content-Length": [ "1927" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Terminated\",\"finishTime\":\"2023-02-18T00:15:37.117787Z\",\"detailStatus\":\"Container stopped per client request\"},\"previousState\":{\"state\":\"Running\",\"startTime\":\"2023-02-18T00:13:58.853Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:55:41Z\",\"lastTimestamp\":\"2023-02-17T23:55:41Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:55:42Z\",\"lastTimestamp\":\"2023-02-17T23:55:42Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":2,\"firstTimestamp\":\"2023-02-17T23:55:56Z\",\"lastTimestamp\":\"2023-02-18T00:13:58Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"},{\"count\":2,\"firstTimestamp\":\"2023-02-18T00:13:57Z\",\"lastTimestamp\":\"2023-02-18T00:13:57Z\",\"name\":\"Killing\",\"message\":\"Killing container with id 94803e07442ddafbb7e0872383e0c08d47e7f33d667f47c96588a158de6ac4cd.\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Stopped\"},\"priority\":\"Spot\"},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgytxbr\",\"name\":\"test-cgytxbr\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\",\"tags\":{\"test\":\"value\"}}", + "Content": "{\"properties\":{\"sku\":\"Standard\",\"isCreatedFromStandbyPool\":false,\"provisioningState\":\"Succeeded\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{}},\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Terminated\",\"finishTime\":\"2024-10-31T05:12:42.8062565Z\",\"detailStatus\":\"Container stopped per client request\"},\"previousState\":{\"state\":\"Running\",\"startTime\":\"2024-10-31T05:11:12.854Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:54:55Z\",\"lastTimestamp\":\"2024-10-31T04:54:55Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:54:57Z\",\"lastTimestamp\":\"2024-10-31T04:54:57Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:55:09Z\",\"lastTimestamp\":\"2024-10-31T04:55:09Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"},{\"count\":2,\"firstTimestamp\":\"2024-10-31T05:11:11Z\",\"lastTimestamp\":\"2024-10-31T05:11:11Z\",\"name\":\"Killing\",\"message\":\"Killing container 1 (platform initiated).\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Stopped\"},\"priority\":\"Spot\"},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cguyxhp\",\"name\":\"test-cguyxhp\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\",\"tags\":{\"test\":\"value\"}}", "isContentBase64": false } }, - "Update-AzContainerGroupSpotPriority+[NoContext]+UpdateViaIdentityExpanded+$PATCH+https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgytxbr?api-version=2022-10-01-preview+2": { + "Update-AzContainerGroupSpotPriority+[NoContext]+UpdateViaIdentityExpanded+$PATCH+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cguyxhp?api-version=2024-05-01-preview+2": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgytxbr?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cguyxhp?api-version=2024-05-01-preview", "Content": "{\n \"tags\": {\n \"test\": \"value\"\n }\n}", "isContentBase64": false, "Headers": { @@ -94,21 +98,23 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-request-id": [ "eastus:04b56383-0df4-4fda-b2d7-71461dd43626" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1172" ], - "x-ms-correlation-request-id": [ "6f3611a5-6d3d-4178-ad93-83b6c79ede7a" ], - "x-ms-routing-request-id": [ "WESTUS2:20230218T001628Z:6f3611a5-6d3d-4178-ad93-83b6c79ede7a" ], + "x-ms-request-id": [ "eastus:2ff9338b-665c-4e53-a13d-544a1f2b057f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], + "x-ms-correlation-request-id": [ "478e1513-1711-43c9-a419-d9ac90ee3ecb" ], + "x-ms-routing-request-id": [ "CENTRALINDIA:20241031T051356Z:478e1513-1711-43c9-a419-d9ac90ee3ecb" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 18 Feb 2023 00:16:27 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: B18443F23AB740AEAF08910A3444BE28 Ref B: MAA201060515045 Ref C: 2024-10-31T05:13:53Z" ], + "Date": [ "Thu, 31 Oct 2024 05:13:55 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1731" ], + "Content-Length": [ "1927" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"sku\":\"Standard\",\"provisioningState\":\"Succeeded\",\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"nginx\",\"ports\":[{\"port\":80}],\"environmentVariables\":[],\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Terminated\",\"finishTime\":\"2023-02-18T00:15:37.117787Z\",\"detailStatus\":\"Container stopped per client request\"},\"previousState\":{\"state\":\"Running\",\"startTime\":\"2023-02-18T00:13:58.853Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:55:41Z\",\"lastTimestamp\":\"2023-02-17T23:55:41Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2023-02-17T23:55:42Z\",\"lastTimestamp\":\"2023-02-17T23:55:42Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"nginx@sha256:7f797701ded5055676d656f11071f84e2888548a2e7ed12a4977c28ef6114b17\\\"\",\"type\":\"Normal\"},{\"count\":2,\"firstTimestamp\":\"2023-02-17T23:55:56Z\",\"lastTimestamp\":\"2023-02-18T00:13:58Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"},{\"count\":2,\"firstTimestamp\":\"2023-02-18T00:13:57Z\",\"lastTimestamp\":\"2023-02-18T00:13:57Z\",\"name\":\"Killing\",\"message\":\"Killing container with id 94803e07442ddafbb7e0872383e0c08d47e7f33d667f47c96588a158de6ac4cd.\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Stopped\"},\"priority\":\"Spot\"},\"id\":\"/subscriptions/858cf1fd-d678-42ee-ae83-7f84b54c67df/resourceGroups/test-rgc41vt/providers/Microsoft.ContainerInstance/containerGroups/test-cgytxbr\",\"name\":\"test-cgytxbr\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\",\"tags\":{\"test\":\"value\"}}", + "Content": "{\"properties\":{\"sku\":\"Standard\",\"isCreatedFromStandbyPool\":false,\"provisioningState\":\"Succeeded\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"1\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{}},\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Terminated\",\"finishTime\":\"2024-10-31T05:12:42.8062565Z\",\"detailStatus\":\"Container stopped per client request\"},\"previousState\":{\"state\":\"Running\",\"startTime\":\"2024-10-31T05:11:12.854Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:54:55Z\",\"lastTimestamp\":\"2024-10-31T04:54:55Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:54:57Z\",\"lastTimestamp\":\"2024-10-31T04:54:57Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-10-31T04:55:09Z\",\"lastTimestamp\":\"2024-10-31T04:55:09Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"},{\"count\":2,\"firstTimestamp\":\"2024-10-31T05:11:11Z\",\"lastTimestamp\":\"2024-10-31T05:11:11Z\",\"name\":\"Killing\",\"message\":\"Killing container 1 (platform initiated).\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.5,\"cpu\":1.0}}}}],\"initContainers\":[],\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Stopped\"},\"priority\":\"Spot\"},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/test-cguyxhp\",\"name\":\"test-cguyxhp\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\",\"tags\":{\"test\":\"value\"}}", "isContentBase64": false } } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/test/Update-AzContainerInstanceContainerGroupProfile.Tests.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/test/Update-AzContainerInstanceContainerGroupProfile.Tests.ps1 new file mode 100644 index 000000000000..ae2048c4fb8d --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/test/Update-AzContainerInstanceContainerGroupProfile.Tests.ps1 @@ -0,0 +1,33 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Update-AzContainerInstanceContainerGroupProfile')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Update-AzContainerInstanceContainerGroupProfile.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Update-AzContainerInstanceContainerGroupProfile' { + It 'PatchExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'Patch' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'PatchViaIdentityExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'PatchViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/ContainerInstance/ContainerInstance.Autorest/test/env.json b/src/ContainerInstance/ContainerInstance.Autorest/test/env.json index 1f598a3a3716..8915a93cefb1 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/test/env.json +++ b/src/ContainerInstance/ContainerInstance.Autorest/test/env.json @@ -1,26 +1,40 @@ { - "Tenant": "72f988bf-86f1-41af-91ab-2d7cd011db47", - "resourceGroupName": "test-rgc41vt", - "containerGroupName2": "test-cgzpowa", - "port2": 8001, - "confidentialSku": "confidential", - "port1": 8000, "osType": "Linux", - "containerGroupName": "bez-test-cg", - "restartPolicy": "Never", - "containerGroupName4": "test-cgbh02l", + "image": "mcr.microsoft.com/azuredocs/aci-helloworld:latest", + "confidentialSku": "confidential", "confidentialContainerGroupName": "test-confidential-containergroup", - "spotPriorityContainerGroupName": "test-spot-priority-cgqj924", - "containerGroupName5": "test-cgsqbeo", - "spotContainerGroupName": "test-cgytxbr", - "containerGroupName1": "test-cgmtwa6", + "regularPriority": "Regular", + "reusedContainerInstanceName": "testcg", + "requestCpu": 1.0, "spotPriority": "Spot", - "containerInstanceName": "bez-test-ci", + "spotPriorityContainerGroupProfileName": "test-spot-priority-cgpzmt64", + "containerGroupProfileName2": "test-cgpcb1wl", + "SubscriptionId": "da28f5e5-aa45-46fe-90c8-053ca49ab4b5", + "containerGroupName": "bez-test-cg", + "port1": 8000, + "containerGroupName5": "test-cgxt173", + "restartPolicy": "Never", + "requestMemoryInGb": 1.5, + "spotContainerGroupName": "test-cguyxhp", + "confidentialComputePropertyCcePolicy": "eyJhbGxvd19hbGwiOiB0cnVlLCAiY29udGFpbmVycyI6IHsibGVuZ3RoIjogMCwgImVsZW1lbnRzIjogbnVsbH19", + "containerGroupProfileRevision": 1, "location": "eastus", - "containerGroupName3": "test-cgnaym3", - "regularContainerGroupName": "test-cgq5m6g", - "SubscriptionId": "858cf1fd-d678-42ee-ae83-7f84b54c67df", - "regularPriorityContainerGroupName": "test-regular-priority-cgaxmcz", - "image": "nginx", - "regularPriority": "Regular" + "containerGroupName3": "test-cgfcxlb", + "containerGroupName2": "test-cgkuind", + "regularPriorityContainerGroupName": "test-regular-priority-cgfp71w", + "port2": 8001, + "spotContainerGroupProfileName": "test-cgponypi", + "confidentialContainerGroupProfileName": "test-confidential-containergroupprofileiycrg", + "containerInstanceName": "bez-test-ci", + "standbyPoolProfileId": "/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/azcliresources/providers/Microsoft.StandbyPool/standbyContainerGroupPools/testpool", + "resourceGroupName": "test-rg9iwau", + "reusedContainerGroupName": "pool-reused-containergroup", + "regularContainerGroupName": "test-cgfl4g3", + "Tenant": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "spotPriorityContainerGroupName": "test-spot-priority-cgw8oq1", + "containerGroupName4": "test-cgj1zl7", + "containerGroupProfileName1": "test-cgplnywg", + "containerGroupProfileId": "/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/azcliresources/providers/Microsoft.ContainerInstance/containerGroupProfiles/testcg", + "containerGroupProfileName": "bez-test-cgp", + "containerGroupName1": "test-cgi50ep" } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/test/utils.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/test/utils.ps1 index 60608a454539..28f3bdf3b16c 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/test/utils.ps1 +++ b/src/ContainerInstance/ContainerInstance.Autorest/test/utils.ps1 @@ -11,13 +11,13 @@ function Start-TestSleep { [parameter(Mandatory = $true, Position = 0, ParameterSetName = 'SleepBySeconds')] [ValidateRange(0.0, 2147483.0)] [double] $Seconds, - + [parameter(Mandatory = $true, ParameterSetName = 'SleepByMilliseconds')] [ValidateRange('NonNegative')] [Alias('ms')] [int] $Milliseconds ) - + if ($TestMode -ne 'playback') { switch ($PSCmdlet.ParameterSetName) { 'SleepBySeconds' { @@ -29,7 +29,7 @@ function Start-TestSleep { } } } - + $env = @{} function setupEnv() { # Preload subscriptionId and tenant from context, which will be used in test @@ -49,38 +49,63 @@ function setupEnv() { $env.regularPriorityContainerGroupName = "test-regular-priority-cg" + (RandomString -allChars $false -len 5) $env.spotPriorityContainerGroupName = "test-spot-priority-cg" + (RandomString -allChars $false -len 5) $env.confidentialContainerGroupName = "test-confidential-containergroup" - + $env.reusedContainerGroupName = "pool-reused-containergroup" + + $env.containerGroupProfileName = "bez-test-cgp" + $env.containerGroupProfileName1 = "test-cgp" + (RandomString -allChars $false -len 5) + $env.containerGroupProfileName2 = "test-cgp" + (RandomString -allChars $false -len 5) + $env.spotContainerGroupProfileName = "test-cgp" + (RandomString -allChars $false -len 5) + $env.spotPriorityContainerGroupProfileName = "test-spot-priority-cgp" + (RandomString -allChars $false -len 5) + $env.confidentialContainerGroupProfileName = "test-confidential-containergroupprofile" + (RandomString -allChars $false -len 5) + $env.containerInstanceName = "bez-test-ci" - $env.image = "nginx" + $env.reusedContainerInstanceName = "testcg" + $env.image = "mcr.microsoft.com/azuredocs/aci-helloworld:latest" $env.osType = "Linux" + $env.requestCpu = 1.0 + $env.requestMemoryInGb = 1.5 $env.restartPolicy = "Never" $env.port1 = 8000 $env.port2 = 8001 $env.regularPriority = "Regular" $env.spotPriority = "Spot" $env.confidentialSku = "confidential" - + $env.confidentialComputePropertyCcePolicy = 'eyJhbGxvd19hbGwiOiB0cnVlLCAiY29udGFpbmVycyI6IHsibGVuZ3RoIjogMCwgImVsZW1lbnRzIjogbnVsbH19' + + $env.containerGroupProfileId = "/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/azcliresources/providers/Microsoft.ContainerInstance/containerGroupProfiles/testcg" + $env.containerGroupProfileRevision = 1 + $env.standbyPoolProfileId = "/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/azcliresources/providers/Microsoft.StandbyPool/standbyContainerGroupPools/testpool" + # Create some resource for test. Write-Debug "Create resource group for test" New-AzResourceGroup -Name $env.resourceGroupName -Location $env.location - + Write-Debug "Create container group for test" - $container = New-AzContainerInstanceObject -Name $env.containerInstanceName -Image $env.image - $container1 = New-AzContainerInstanceObject -Name "${env.containerInstanceName}1" -Image $env.image - $container2 = New-AzContainerInstanceObject -Name "${env.containerInstanceName}2" -Image $env.image - New-AzContainerGroup -ResourceGroupName $env.resourceGroupName -Name $env.containerGroupName -Location $env.location -Container $container - New-AzContainerGroup -ResourceGroupName $env.resourceGroupName -Name "$($env.containerGroupName)-remove1" -Location $env.location -Container $container1 - New-AzContainerGroup -ResourceGroupName $env.resourceGroupName -Name "$($env.containerGroupName)-remove2" -Location $env.location -Container $container2 - New-AzContainerGroup -ResourceGroupName $env.resourceGroupName -Name $env.regularContainerGroupName -Location $env.location -Container $container1 -Priority $env.regularPriority - New-AzContainerGroup -ResourceGroupName $env.resourceGroupName -Name $env.spotContainerGroupName -Location $env.location -Container $container1 -Priority $env.spotPriority - New-AzContainerGroup -ResourceGroupName $env.resourceGroupName -Name "$($env.regularContainerGroupName)-remove1" -Location $env.location -Container $container1 -Priority $env.regularPriority - New-AzContainerGroup -ResourceGroupName $env.resourceGroupName -Name "$($env.regularContainerGroupName)-remove2" -Location $env.location -Container $container1 -Priority $env.regularPriority - New-AzContainerGroup -ResourceGroupName $env.resourceGroupName -Name "$($env.spotContainerGroupName)-remove1" -Location $env.location -Container $container1 -Priority $env.spotPriority - New-AzContainerGroup -ResourceGroupName $env.resourceGroupName -Name "$($env.spotContainerGroupName)-remove2" -Location $env.location -Container $container1 -Priority $env.spotPriority - New-AzContainerGroup -ResourceGroupName $env.resourceGroupName -Name $env.confidentialContainerGroupName -Location $env.location -Container $container1 -Sku $env.confidentialSku - New-AzContainerGroup -ResourceGroupName $env.resourceGroupName -Name "$($env.confidentialContainerGroupName)-remove1" -Location $env.location -Container $container1 -Sku $env.confidentialSku - New-AzContainerGroup -ResourceGroupName $env.resourceGroupName -Name "$($env.confidentialContainerGroupName)-remove2" -Location $env.location -Container $container1 -Sku $env.confidentialSku - + $container = New-AzContainerInstanceObject -Name $env.containerInstanceName -Image $env.image -RequestCpu $env.requestCpu -RequestMemoryInGb $env.requestMemoryInGb + $container1 = New-AzContainerInstanceObject -Name "${env.containerInstanceName}1" -Image $env.image -RequestCpu $env.requestCpu -RequestMemoryInGb $env.requestMemoryInGb + $container2 = New-AzContainerInstanceObject -Name "${env.containerInstanceName}2" -Image $env.image -RequestCpu $env.requestCpu -RequestMemoryInGb $env.requestMemoryInGb + New-AzContainerGroup -ResourceGroupName $env.resourceGroupName -Name $env.containerGroupName -Location $env.location -Container $container -OsType $env.osType + New-AzContainerGroup -ResourceGroupName $env.resourceGroupName -Name "$($env.containerGroupName)-remove1" -Location $env.location -Container $container1 -OsType $env.osType + New-AzContainerGroup -ResourceGroupName $env.resourceGroupName -Name "$($env.containerGroupName)-remove2" -Location $env.location -Container $container2 -OsType $env.osType + New-AzContainerGroup -ResourceGroupName $env.resourceGroupName -Name $env.regularContainerGroupName -Location $env.location -Container $container1 -Priority $env.regularPriority -OsType $env.osType + New-AzContainerGroup -ResourceGroupName $env.resourceGroupName -Name $env.spotContainerGroupName -Location $env.location -Container $container1 -Priority $env.spotPriority -OsType $env.osType + New-AzContainerGroup -ResourceGroupName $env.resourceGroupName -Name "$($env.regularContainerGroupName)-remove1" -Location $env.location -Container $container1 -Priority $env.regularPriority -OsType $env.osType + New-AzContainerGroup -ResourceGroupName $env.resourceGroupName -Name "$($env.regularContainerGroupName)-remove2" -Location $env.location -Container $container1 -Priority $env.regularPriority -OsType $env.osType + New-AzContainerGroup -ResourceGroupName $env.resourceGroupName -Name "$($env.spotContainerGroupName)-remove1" -Location $env.location -Container $container1 -Priority $env.spotPriority -OsType $env.osType + New-AzContainerGroup -ResourceGroupName $env.resourceGroupName -Name "$($env.spotContainerGroupName)-remove2" -Location $env.location -Container $container1 -Priority $env.spotPriority -OsType $env.osType + New-AzContainerGroup -ResourceGroupName $env.resourceGroupName -Name $env.confidentialContainerGroupName -Location $env.location -Container $container1 -Sku $env.confidentialSku -OsType $env.osType + New-AzContainerGroup -ResourceGroupName $env.resourceGroupName -Name "$($env.confidentialContainerGroupName)-remove1" -Location $env.location -Container $container1 -Sku $env.confidentialSku -OsType $env.osType + New-AzContainerGroup -ResourceGroupName $env.resourceGroupName -Name "$($env.confidentialContainerGroupName)-remove2" -Location $env.location -Container $container1 -Sku $env.confidentialSku -OsType $env.osType + + Write-Debug "Create container group profile for test" + New-AzContainerInstanceContainerGroupProfile -ResourceGroupName $env.resourceGroupName -Name $env.containerGroupProfileName -Location $env.location -Container $container -OsType $env.osType + New-AzContainerInstanceContainerGroupProfile -ResourceGroupName $env.resourceGroupName -Name "$($env.containerGroupProfileName)-remove1" -Location $env.location -Container $container1 -OsType $env.osType + New-AzContainerInstanceContainerGroupProfile -ResourceGroupName $env.resourceGroupName -Name "$($env.containerGroupProfileName)-remove2" -Location $env.location -Container $container2 -OsType $env.osType + New-AzContainerInstanceContainerGroupProfile -ResourceGroupName $env.resourceGroupName -Name "$($env.spotContainerGroupProfileName)-remove1" -Location $env.location -Container $container1 -Priority $env.spotPriority -OsType $env.osType + New-AzContainerInstanceContainerGroupProfile -ResourceGroupName $env.resourceGroupName -Name "$($env.spotContainerGroupProfileName)-remove2" -Location $env.location -Container $container1 -Priority $env.spotPriority -OsType $env.osType + New-AzContainerInstanceContainerGroupProfile -ResourceGroupName $env.resourceGroupName -Name "$($env.confidentialContainerGroupProfileName)-remove1" -Location $env.location -Container $container1 -Sku $env.confidentialSku -OsType $env.osType + New-AzContainerInstanceContainerGroupProfile -ResourceGroupName $env.resourceGroupName -Name "$($env.confidentialContainerGroupProfileName)-remove2" -Location $env.location -Container $container1 -Sku $env.confidentialSku -OsType $env.osType + # For any resources you created for test, you should add it to $env here. $envFile = 'env.json' if ($TestMode -eq 'live') { @@ -91,5 +116,4 @@ function setupEnv() { function cleanupEnv() { # Clean resources you create for testing Remove-AzResourceGroup -Name $env.resourceGroupName -} - +} \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance/Az.ContainerInstance.psd1 b/src/ContainerInstance/ContainerInstance/Az.ContainerInstance.psd1 index decb8d10f069..617642023e24 100644 --- a/src/ContainerInstance/ContainerInstance/Az.ContainerInstance.psd1 +++ b/src/ContainerInstance/ContainerInstance/Az.ContainerInstance.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 8/29/2024 +# Generated on: 11/6/2024 # @{ @@ -57,13 +57,13 @@ RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '3.0.4'; }) RequiredAssemblies = 'ContainerInstance.Autorest/bin/Az.ContainerInstance.private.dll' # Script files (.ps1) that are run in the caller's environment prior to importing this module. -# ScriptsToProcess = @() +ScriptsToProcess = @() # Type files (.ps1xml) to be loaded when importing this module -# TypesToProcess = @() +TypesToProcess = @() # Format files (.ps1xml) to be loaded when importing this module -FormatsToProcess = 'ContainerInstance.Autorest\Az.ContainerInstance.format.ps1xml' +FormatsToProcess = 'ContainerInstance.Autorest/Az.ContainerInstance.format.ps1xml' # Modules to import as nested modules of the module specified in RootModule/ModuleToProcess NestedModules = @('ContainerInstance.Autorest/Az.ContainerInstance.psm1') @@ -73,21 +73,27 @@ FunctionsToExport = 'Add-AzContainerInstanceOutput', 'Get-AzContainerGroup', 'Get-AzContainerInstanceCachedImage', 'Get-AzContainerInstanceCapability', 'Get-AzContainerInstanceContainerGroupOutboundNetworkDependencyEndpoint', + 'Get-AzContainerInstanceContainerGroupProfile', + 'Get-AzContainerInstanceContainerGroupProfileRevision', 'Get-AzContainerInstanceLog', 'Get-AzContainerInstanceUsage', 'Invoke-AzContainerInstanceCommand', 'New-AzContainerGroup', 'New-AzContainerGroupImageRegistryCredentialObject', 'New-AzContainerGroupPortObject', 'New-AzContainerGroupVolumeObject', + 'New-AzContainerInstanceContainerGroupProfile', 'New-AzContainerInstanceEnvironmentVariableObject', 'New-AzContainerInstanceHttpHeaderObject', 'New-AzContainerInstanceInitDefinitionObject', + 'New-AzContainerInstanceNoDefaultObject', 'New-AzContainerInstanceObject', 'New-AzContainerInstancePortObject', 'New-AzContainerInstanceVolumeMountObject', 'Remove-AzContainerGroup', + 'Remove-AzContainerInstanceContainerGroupProfile', 'Remove-AzContainerInstanceSubnetServiceAssociationLink', 'Restart-AzContainerGroup', 'Start-AzContainerGroup', - 'Stop-AzContainerGroup', 'Update-AzContainerGroup' + 'Stop-AzContainerGroup', 'Update-AzContainerGroup', + 'Update-AzContainerInstanceContainerGroupProfile' # Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. CmdletsToExport = @() @@ -113,7 +119,7 @@ PrivateData = @{ PSData = @{ # Tags applied to this module. These help with module discovery in online galleries. - Tags = 'Azure','ResourceManager','ARM','PSModule','ContainerInstance' + Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'ContainerInstance' # A URL to the license for this module. LicenseUri = 'https://aka.ms/azps-license' @@ -138,7 +144,7 @@ PrivateData = @{ } # End of PSData hashtable - } # End of PrivateData hashtable +} # End of PrivateData hashtable # HelpInfo URI of this module # HelpInfoURI = '' diff --git a/src/ContainerInstance/ContainerInstance/ChangeLog.md b/src/ContainerInstance/ContainerInstance/ChangeLog.md index d5f5ecb5a906..0a7f38341cef 100644 --- a/src/ContainerInstance/ContainerInstance/ChangeLog.md +++ b/src/ContainerInstance/ContainerInstance/ChangeLog.md @@ -19,6 +19,11 @@ --> ## Upcoming Release +* Added ContainerGroupProfileId ContainerGroupProfileRevision StandbyPoolProfileFailContainerGroupCreateOnReuseFailure StandbyPoolProfileId to Container Group properties. +* Added ConfigMapKeyValuePair to Container object properties. +* Added new cmdlet to define container without using the preset default properties New-AzContainerInstanceNoDefaultObject +* Added new cmdlets for Container Group Profile - Get-AzContainerInstanceContainerGroupProfile, New-AzContainerInstanceContainerGroupProfile, Remove-AzContainerInstanceContainerGroupProfile, Update-AzContainerInstanceContainerGroupProfile, Get-AzContainerInstanceContainerGroupProfileRevision +* For Container Group properties, the default value for OsType is no longer preset to Linux and has to be explicitly specified. ## Version 4.0.2 * Fixed secrets exposure in example documentation. diff --git a/src/ContainerInstance/ContainerInstance/help/Add-AzContainerInstanceOutput.md b/src/ContainerInstance/ContainerInstance/help/Add-AzContainerInstanceOutput.md index 1ea25e5abca1..f6b3f56ac846 100644 --- a/src/ContainerInstance/ContainerInstance/help/Add-AzContainerInstanceOutput.md +++ b/src/ContainerInstance/ContainerInstance/help/Add-AzContainerInstanceOutput.md @@ -14,7 +14,7 @@ Attach to the output stream of a specific container instance in a specified reso ``` Add-AzContainerInstanceOutput -GroupName -Name -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [-WhatIf] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -86,8 +86,24 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. +The name is case insensitive. ```yaml Type: System.String @@ -102,8 +118,8 @@ Accept wildcard characters: False ``` ### -SubscriptionId -Subscription credentials which uniquely identify Microsoft Azure subscription. -The subscription ID forms part of the URI for every service call. +The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String @@ -155,7 +171,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerAttachResponse +### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerAttachResponse ## NOTES diff --git a/src/ContainerInstance/ContainerInstance/help/Az.ContainerInstance.md b/src/ContainerInstance/ContainerInstance/help/Az.ContainerInstance.md index da147dcbca47..81668a43e39f 100644 --- a/src/ContainerInstance/ContainerInstance/help/Az.ContainerInstance.md +++ b/src/ContainerInstance/ContainerInstance/help/Az.ContainerInstance.md @@ -28,6 +28,14 @@ Get the list of CPU/memory/GPU capabilities of a region. Gets all the network dependencies for this container group to allow complete control of network setting and configuration. For container groups, this will always be an empty list. +### [Get-AzContainerInstanceContainerGroupProfile](Get-AzContainerInstanceContainerGroupProfile.md) +Gets the properties of the specified container group profile in the specified subscription and resource group. +The operation returns the properties of container group profile including containers, image registry credentials, restart policy, IP address type, OS type, volumes, current revision number, etc. + +### [Get-AzContainerInstanceContainerGroupProfileRevision](Get-AzContainerInstanceContainerGroupProfileRevision.md) +Get a list of all the revisions of the specified container group profile in the given subscription and resource group. +This operation returns properties of each revision of the specified container group profile including containers, image registry credentials, restart policy, IP address type, OS type volumes, revision number, etc. + ### [Get-AzContainerInstanceLog](Get-AzContainerInstanceLog.md) Get the logs for a specified container instance in a specified resource group and container group. @@ -49,6 +57,9 @@ Create a in-memory object for Port ### [New-AzContainerGroupVolumeObject](New-AzContainerGroupVolumeObject.md) Create an in-memory object for Volume. +### [New-AzContainerInstanceContainerGroupProfile](New-AzContainerInstanceContainerGroupProfile.md) +Create or update container group profiles with specified configurations. + ### [New-AzContainerInstanceEnvironmentVariableObject](New-AzContainerInstanceEnvironmentVariableObject.md) Create a in-memory object for EnvironmentVariable @@ -58,6 +69,9 @@ Create a in-memory object for HttpHeader ### [New-AzContainerInstanceInitDefinitionObject](New-AzContainerInstanceInitDefinitionObject.md) Create a in-memory object for InitContainerDefinition +### [New-AzContainerInstanceNoDefaultObject](New-AzContainerInstanceNoDefaultObject.md) +Create a in-memory object for Container with no default values + ### [New-AzContainerInstanceObject](New-AzContainerInstanceObject.md) Create a in-memory object for Container @@ -71,6 +85,10 @@ Create a in-memory object for VolumeMount Delete the specified container group in the specified subscription and resource group. The operation does not delete other resources provided by the user, such as volumes. +### [Remove-AzContainerInstanceContainerGroupProfile](Remove-AzContainerInstanceContainerGroupProfile.md) +Delete the specified container group profile in the specified subscription and resource group. +The operation does not delete other resources provided by the user, such as volumes. + ### [Remove-AzContainerInstanceSubnetServiceAssociationLink](Remove-AzContainerInstanceSubnetServiceAssociationLink.md) Delete container group virtual network association links. The operation does not delete other resources provided by the user. @@ -90,3 +108,6 @@ Compute resources will be deallocated and billing will stop. ### [Update-AzContainerGroup](Update-AzContainerGroup.md) Updates container group tags with specified values. +### [Update-AzContainerInstanceContainerGroupProfile](Update-AzContainerInstanceContainerGroupProfile.md) +Patches container group profile with specified properties. + diff --git a/src/ContainerInstance/ContainerInstance/help/Get-AzContainerGroup.md b/src/ContainerInstance/ContainerInstance/help/Get-AzContainerGroup.md index 31e557eaaf49..7aca45060bf6 100644 --- a/src/ContainerInstance/ContainerInstance/help/Get-AzContainerGroup.md +++ b/src/ContainerInstance/ContainerInstance/help/Get-AzContainerGroup.md @@ -16,25 +16,25 @@ The operation returns the properties of each container group including container ### List (Default) ``` Get-AzContainerGroup [-SubscriptionId ] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### Get ``` Get-AzContainerGroup -Name -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### List1 ``` Get-AzContainerGroup -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### GetViaIdentity ``` Get-AzContainerGroup -InputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -191,8 +191,24 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. +The name is case insensitive. ```yaml Type: System.String @@ -207,8 +223,8 @@ Accept wildcard characters: False ``` ### -SubscriptionId -Subscription credentials which uniquely identify Microsoft Azure subscription. -The subscription ID forms part of the URI for every service call. +The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String[] @@ -231,7 +247,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup +### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup ## NOTES diff --git a/src/ContainerInstance/ContainerInstance/help/Get-AzContainerInstanceCachedImage.md b/src/ContainerInstance/ContainerInstance/help/Get-AzContainerInstanceCachedImage.md index 0c4b5c385121..4df31103167e 100644 --- a/src/ContainerInstance/ContainerInstance/help/Get-AzContainerInstanceCachedImage.md +++ b/src/ContainerInstance/ContainerInstance/help/Get-AzContainerInstanceCachedImage.md @@ -14,7 +14,7 @@ Get the list of cached images on specific OS type for a subscription in a region ``` Get-AzContainerInstanceCachedImage -Location [-SubscriptionId ] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -57,7 +57,7 @@ Accept wildcard characters: False ``` ### -Location -The identifier for the physical azure location. +The name of the Azure region. ```yaml Type: System.String @@ -71,9 +71,24 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SubscriptionId -Subscription credentials which uniquely identify Microsoft Azure subscription. -The subscription ID forms part of the URI for every service call. +The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String[] @@ -94,7 +109,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICachedImages +### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICachedImages ## NOTES diff --git a/src/ContainerInstance/ContainerInstance/help/Get-AzContainerInstanceCapability.md b/src/ContainerInstance/ContainerInstance/help/Get-AzContainerInstanceCapability.md index 7b49407ef830..fcf4e5036a4d 100644 --- a/src/ContainerInstance/ContainerInstance/help/Get-AzContainerInstanceCapability.md +++ b/src/ContainerInstance/ContainerInstance/help/Get-AzContainerInstanceCapability.md @@ -14,7 +14,7 @@ Get the list of CPU/memory/GPU capabilities of a region. ``` Get-AzContainerInstanceCapability -Location [-SubscriptionId ] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -61,7 +61,7 @@ Accept wildcard characters: False ``` ### -Location -The identifier for the physical azure location. +The name of the Azure region. ```yaml Type: System.String @@ -75,9 +75,24 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SubscriptionId -Subscription credentials which uniquely identify Microsoft Azure subscription. -The subscription ID forms part of the URI for every service call. +The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String[] @@ -98,7 +113,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ICapabilities +### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilities ## NOTES diff --git a/src/ContainerInstance/ContainerInstance/help/Get-AzContainerInstanceContainerGroupOutboundNetworkDependencyEndpoint.md b/src/ContainerInstance/ContainerInstance/help/Get-AzContainerInstanceContainerGroupOutboundNetworkDependencyEndpoint.md index 4792b8870ac6..ae0ae9c9ba9a 100644 --- a/src/ContainerInstance/ContainerInstance/help/Get-AzContainerInstanceContainerGroupOutboundNetworkDependencyEndpoint.md +++ b/src/ContainerInstance/ContainerInstance/help/Get-AzContainerInstanceContainerGroupOutboundNetworkDependencyEndpoint.md @@ -17,13 +17,13 @@ For container groups, this will always be an empty list. ``` Get-AzContainerInstanceContainerGroupOutboundNetworkDependencyEndpoint -ContainerGroupName -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### GetViaIdentity ``` Get-AzContainerInstanceContainerGroupOutboundNetworkDependencyEndpoint - -InputObject [-DefaultProfile ] + -InputObject [-DefaultProfile ] [-ProgressAction ] [] ``` @@ -94,8 +94,24 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. +The name is case insensitive. ```yaml Type: System.String @@ -110,8 +126,8 @@ Accept wildcard characters: False ``` ### -SubscriptionId -Subscription credentials which uniquely identify Microsoft Azure subscription. -The subscription ID forms part of the URI for every service call. +The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String[] diff --git a/src/ContainerInstance/ContainerInstance/help/Get-AzContainerInstanceContainerGroupProfile.md b/src/ContainerInstance/ContainerInstance/help/Get-AzContainerInstanceContainerGroupProfile.md new file mode 100644 index 000000000000..b2e3dbb896bf --- /dev/null +++ b/src/ContainerInstance/ContainerInstance/help/Get-AzContainerInstanceContainerGroupProfile.md @@ -0,0 +1,316 @@ +--- +external help file: Az.ContainerInstance-help.xml +Module Name: Az.ContainerInstance +online version: https://learn.microsoft.com/powershell/module/az.containerinstance/get-azcontainerinstancecontainergroupprofile +schema: 2.0.0 +--- + +# Get-AzContainerInstanceContainerGroupProfile + +## SYNOPSIS +Gets the properties of the specified container group profile in the specified subscription and resource group. +The operation returns the properties of container group profile including containers, image registry credentials, restart policy, IP address type, OS type, volumes, current revision number, etc. + +## SYNTAX + +### List (Default) +``` +Get-AzContainerInstanceContainerGroupProfile [-SubscriptionId ] [-DefaultProfile ] + [-ProgressAction ] [] +``` + +### Get1 +``` +Get-AzContainerInstanceContainerGroupProfile -Name -ResourceGroupName + [-SubscriptionId ] -RevisionNumber [-DefaultProfile ] + [-ProgressAction ] [] +``` + +### Get +``` +Get-AzContainerInstanceContainerGroupProfile -Name -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] + [] +``` + +### List1 +``` +Get-AzContainerInstanceContainerGroupProfile -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [-ProgressAction ] [] +``` + +### GetViaIdentity1 +``` +Get-AzContainerInstanceContainerGroupProfile -InputObject + [-DefaultProfile ] [-ProgressAction ] [] +``` + +### GetViaIdentity +``` +Get-AzContainerInstanceContainerGroupProfile -InputObject + [-DefaultProfile ] [-ProgressAction ] [] +``` + +## DESCRIPTION +Gets the properties of the specified container group profile in the specified subscription and resource group. +The operation returns the properties of container group profile including containers, image registry credentials, restart policy, IP address type, OS type, volumes, current revision number, etc. + +## EXAMPLES + +### Example 1: List all container group profiles in the current subscription +```powershell +Get-AzContainerInstanceContainerGroupProfile +``` + +```output +Location Name Zone ResourceGroupName +-------- ---- ---- ----------------- +eastus test-cgp1 test-rg +eastus test-cgp2 test-rg +``` + +This command gets all container group profiles in the current subscription. + +### Example 2: Get container group profiles in a resource group +```powershell +Get-AzContainerInstanceContainerGroupProfile -ResourceGroupName test-rg +``` + +```output +Location Name Zone ResourceGroupName +-------- ---- ---- ----------------- +eastus test-cgp1 test-rg +eastus test-cgp2 test-rg +``` + +The command gets the container group profiles in the resource group `test-rg`. + +### Example 3: Get a specific container group profile +```powershell +Get-AzContainerInstanceContainerGroupProfile -Name test-cgp1 -ResourceGroupName test-rg | Format-List +``` + +```output +ConfidentialComputeProperty : {} +ConfidentialComputePropertyCcePolicy : +Container : {test-container} +Diagnostic : {} +DiagnosticLogAnalytic : {} +EncryptionProperty : {} +EncryptionPropertyIdentity : +EncryptionPropertyKeyName : +EncryptionPropertyKeyVersion : +EncryptionPropertyVaultBaseUrl : +Extension : +IPAddress : { + "type": "Public" + } +IPAddressAutoGeneratedDomainNameLabelScope : +IPAddressDnsNameLabel : +IPAddressFqdn : +IPAddressIP : +IPAddressPort : +IPAddressType : Public +Id : /subscriptions/00000000-0000-0000-0000-000000000000 + 0/resourceGroups/test-rg/providers/Microsoft.Contai + nerInstance/containerGroupProfiles/test-cgp1 +ImageRegistryCredentials : +InitContainer : {} +Location : eastus +LogAnalyticLogType : +LogAnalyticMetadata : { + } +LogAnalyticWorkspaceId : +LogAnalyticWorkspaceKey : +LogAnalyticWorkspaceResourceId : +Name : test-cgp1 +NetworkProfileId : +OSType : Linux +ResourceGroupName : test-rg +RestartPolicy : Never +Revision : 1 +Sku : Standard +Tag : {} +Type : Microsoft.ContainerInstance/containerGroupProfiles +Volume : +``` + +The command gets the specified container group profile. + +### Example 4: Get a specific revision of a container group profile in a resource group +```powershell +Get-AzContainerInstanceContainerGroupProfile -Name test-cgp -ResourceGroupName test-rg -RevisionNumber 1 | Format-List +``` + +```output +ConfidentialComputeProperty : {} +ConfidentialComputePropertyCcePolicy : +Container : {test-container} +Diagnostic : {} +DiagnosticLogAnalytic : {} +EncryptionProperty : {} +EncryptionPropertyIdentity : +EncryptionPropertyKeyName : +EncryptionPropertyKeyVersion : +EncryptionPropertyVaultBaseUrl : +Extension : +IPAddress : { + "type": "Public" + } +IPAddressAutoGeneratedDomainNameLabelScope : +IPAddressDnsNameLabel : +IPAddressFqdn : +IPAddressIP : +IPAddressPort : +IPAddressType : Public +Id : /subscriptions/00000000-0000-0000-0000-000000000000 + 0/resourceGroups/test-rg/providers/Microsoft.Contai + nerInstance/containerGroupProfiles/test-cgp1 +ImageRegistryCredentials : +InitContainer : {} +Location : eastus +LogAnalyticLogType : +LogAnalyticMetadata : { + } +LogAnalyticWorkspaceId : +LogAnalyticWorkspaceKey : +LogAnalyticWorkspaceResourceId : +Name : test-cgp +NetworkProfileId : +OSType : Linux +ResourceGroupName : test-rg +RestartPolicy : Never +Revision : 1 +Sku : Standard +Tag : {} +Type : Microsoft.ContainerInstance/containerGroupProfiles +Volume : +``` + +The command gets the first revision of the container group profile `test-cgp` in the resource group `test-rg`. + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity +Parameter Sets: GetViaIdentity1, GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the container group profile. + +```yaml +Type: System.String +Parameter Sets: Get1, Get +Aliases: ContainerGroupProfileName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Get1, Get, List1 +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RevisionNumber +The revision number of the container group profile. + +```yaml +Type: System.String +Parameter Sets: Get1 +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String[] +Parameter Sets: List, Get1, Get, List1 +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile + +## NOTES + +## RELATED LINKS diff --git a/src/ContainerInstance/ContainerInstance/help/Get-AzContainerInstanceContainerGroupProfileRevision.md b/src/ContainerInstance/ContainerInstance/help/Get-AzContainerInstanceContainerGroupProfileRevision.md new file mode 100644 index 000000000000..d2c115150da1 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance/help/Get-AzContainerInstanceContainerGroupProfileRevision.md @@ -0,0 +1,133 @@ +--- +external help file: Az.ContainerInstance-help.xml +Module Name: Az.ContainerInstance +online version: https://learn.microsoft.com/powershell/module/az.containerinstance/get-azcontainerinstancecontainergroupprofilerevision +schema: 2.0.0 +--- + +# Get-AzContainerInstanceContainerGroupProfileRevision + +## SYNOPSIS +Get a list of all the revisions of the specified container group profile in the given subscription and resource group. +This operation returns properties of each revision of the specified container group profile including containers, image registry credentials, restart policy, IP address type, OS type volumes, revision number, etc. + +## SYNTAX + +``` +Get-AzContainerInstanceContainerGroupProfileRevision -ContainerGroupProfileName + -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] + [-ProgressAction ] [] +``` + +## DESCRIPTION +Get a list of all the revisions of the specified container group profile in the given subscription and resource group. +This operation returns properties of each revision of the specified container group profile including containers, image registry credentials, restart policy, IP address type, OS type volumes, revision number, etc. + +## EXAMPLES + +### Example 1: List all revisions of a container group profile present in a resource group in the current subscription +```powershell +Get-AzContainerInstanceContainerGroupProfileRevision -ContainerGroupProfileName test-cgp -ResourceGroupName test-rg +``` + +```output +Location Name Zone ResourceGroupName Revision +-------- ---- ---- ----------------- -------- +eastus test-cgp test-rg 1 +eastus test-cgp test-rg 2 +``` + +This command gets all revisions of `test-cgp` container group profile present in `test-rg` in the current subscription. + +## PARAMETERS + +### -ContainerGroupProfileName +The name of the container group profile. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile + +## NOTES + +## RELATED LINKS diff --git a/src/ContainerInstance/ContainerInstance/help/Get-AzContainerInstanceLog.md b/src/ContainerInstance/ContainerInstance/help/Get-AzContainerInstanceLog.md index 23f3b0cf0f7a..8b4f35bc8e4c 100644 --- a/src/ContainerInstance/ContainerInstance/help/Get-AzContainerInstanceLog.md +++ b/src/ContainerInstance/ContainerInstance/help/Get-AzContainerInstanceLog.md @@ -15,7 +15,7 @@ Get the logs for a specified container instance in a specified resource group an ``` Get-AzContainerInstanceLog -ContainerGroupName -ContainerName -ResourceGroupName [-SubscriptionId ] [-Tail ] [-Timestamp] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -102,8 +102,24 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. +The name is case insensitive. ```yaml Type: System.String @@ -118,8 +134,8 @@ Accept wildcard characters: False ``` ### -SubscriptionId -Subscription credentials which uniquely identify Microsoft Azure subscription. -The subscription ID forms part of the URI for every service call. +The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String[] diff --git a/src/ContainerInstance/ContainerInstance/help/Get-AzContainerInstanceUsage.md b/src/ContainerInstance/ContainerInstance/help/Get-AzContainerInstanceUsage.md index 9256a29679a7..d14189b4d826 100644 --- a/src/ContainerInstance/ContainerInstance/help/Get-AzContainerInstanceUsage.md +++ b/src/ContainerInstance/ContainerInstance/help/Get-AzContainerInstanceUsage.md @@ -14,7 +14,7 @@ Get the usage for a subscription ``` Get-AzContainerInstanceUsage -Location [-SubscriptionId ] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -60,7 +60,7 @@ Accept wildcard characters: False ``` ### -Location -The identifier for the physical azure location. +The name of the Azure region. ```yaml Type: System.String @@ -74,9 +74,24 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SubscriptionId -Subscription credentials which uniquely identify Microsoft Azure subscription. -The subscription ID forms part of the URI for every service call. +The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String[] @@ -97,7 +112,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IUsage +### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsage ## NOTES diff --git a/src/ContainerInstance/ContainerInstance/help/Invoke-AzContainerInstanceCommand.md b/src/ContainerInstance/ContainerInstance/help/Invoke-AzContainerInstanceCommand.md index 351b03b9daaf..b1c23d0cdf20 100644 --- a/src/ContainerInstance/ContainerInstance/help/Invoke-AzContainerInstanceCommand.md +++ b/src/ContainerInstance/ContainerInstance/help/Invoke-AzContainerInstanceCommand.md @@ -15,7 +15,7 @@ Executes a command for a specific container instance in a specified resource gro ``` Invoke-AzContainerInstanceCommand -ContainerGroupName -ContainerName -ResourceGroupName [-SubscriptionId ] -Command [-TerminalSizeCol ] - [-TerminalSizeRow ] [-DefaultProfile ] [-PassThru] + [-TerminalSizeRow ] [-DefaultProfile ] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -113,6 +113,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. diff --git a/src/ContainerInstance/ContainerInstance/help/New-AzContainerGroup.md b/src/ContainerInstance/ContainerInstance/help/New-AzContainerGroup.md index 45697a52451b..a1f2f8fabbcf 100644 --- a/src/ContainerInstance/ContainerInstance/help/New-AzContainerGroup.md +++ b/src/ContainerInstance/ContainerInstance/help/New-AzContainerGroup.md @@ -13,20 +13,21 @@ Create or update container groups with specified configurations. ## SYNTAX ``` -New-AzContainerGroup -Name -ResourceGroupName [-SubscriptionId ] - -Container -Location [-OSType ] - [-DnsConfigNameServer ] [-DnsConfigOption ] [-DnsConfigSearchDomain ] - [-EncryptionPropertyKeyName ] [-EncryptionPropertyKeyVersion ] - [-EncryptionPropertyVaultBaseUrl ] [-IPAddressDnsNameLabel ] [-IPAddressIP ] - [-IPAddressPort ] [-IPAddressType ] - [-IdentityType ] [-IdentityUserAssignedIdentity ] - [-ImageRegistryCredential ] [-InitContainer ] - [-LogAnalyticLogType ] [-LogAnalyticMetadata ] - [-LogAnalyticWorkspaceId ] [-LogAnalyticWorkspaceKey ] +New-AzContainerGroup -Name -ResourceGroupName [-SubscriptionId ] -Location + [-Container ] [-OSType ] [-ContainerGroupProfileId ] + [-ContainerGroupProfileRevision ] [-DnsConfigNameServer ] [-DnsConfigOption ] + [-DnsConfigSearchDomain ] [-EncryptionPropertyKeyName ] + [-EncryptionPropertyKeyVersion ] [-EncryptionPropertyVaultBaseUrl ] + [-IPAddressDnsNameLabel ] [-IPAddressIP ] [-IPAddressPort ] + [-IPAddressType ] [-IdentityType ] + [-IdentityUserAssignedIdentity ] [-ImageRegistryCredential ] + [-InitContainer ] [-LogAnalyticLogType ] + [-LogAnalyticMetadata ] [-LogAnalyticWorkspaceId ] [-LogAnalyticWorkspaceKey ] [-LogAnalyticWorkspaceResourceId ] [-RestartPolicy ] - [-Sku ] [-SubnetId ] [-Tag ] [-Volume ] - [-Zone ] [-Priority ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-Sku ] [-StandbyPoolProfileFailContainerGroupCreateOnReuseFailure] + [-StandbyPoolProfileId ] [-SubnetId ] [-Tag ] + [-Volume ] [-Zone ] [-Priority ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -166,11 +167,41 @@ The containers within the container group. To construct, see NOTES section for CONTAINER properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainer[] +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainer[] Parameter Sets: (All) Aliases: -Required: True +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ContainerGroupProfileId +The container group profile reference id.This will be an ARM resource id in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}'. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ContainerGroupProfileRevision +The container group profile reference revision. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False Position: Named Default value: None Accept pipeline input: False @@ -320,7 +351,7 @@ The image registry credentials by which the container group is created from. To construct, see NOTES section for IMAGEREGISTRYCREDENTIAL properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IImageRegistryCredential[] +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredential[] Parameter Sets: (All) Aliases: @@ -336,7 +367,7 @@ The init containers for a container group. To construct, see NOTES section for INITCONTAINER properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IInitContainerDefinition[] +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinition[] Parameter Sets: (All) Aliases: @@ -382,7 +413,7 @@ The list of ports exposed on the container group. To construct, see NOTES section for IPADDRESSPORT properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IPort[] +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPort[] Parameter Sets: (All) Aliases: @@ -538,7 +569,7 @@ Aliases: Required: False Position: Named -Default value: "Linux" +Default value: None Accept pipeline input: False Accept wildcard characters: False ``` @@ -558,6 +589,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. @@ -604,12 +650,42 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -StandbyPoolProfileFailContainerGroupCreateOnReuseFailure +The flag to determine whether ACI should fail the create request if the container group can not be obtained from standby pool. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -StandbyPoolProfileId +The standby pool profile reference id.This will be an ARM resource id in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyContainerGroupPools/{standbyPoolName}'. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SubnetId The subnet resource IDs for a container group. To construct, see NOTES section for SUBNETID properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroupSubnetId[] +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupSubnetId[] Parameter Sets: (All) Aliases: @@ -656,7 +732,7 @@ The list of volumes that can be mounted by containers in this container group. To construct, see NOTES section for VOLUME properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolume[] +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolume[] Parameter Sets: (All) Aliases: @@ -720,7 +796,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup +### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup ## NOTES diff --git a/src/ContainerInstance/ContainerInstance/help/New-AzContainerGroupImageRegistryCredentialObject.md b/src/ContainerInstance/ContainerInstance/help/New-AzContainerGroupImageRegistryCredentialObject.md index c289c0044c33..c4fdc9a16f26 100644 --- a/src/ContainerInstance/ContainerInstance/help/New-AzContainerGroupImageRegistryCredentialObject.md +++ b/src/ContainerInstance/ContainerInstance/help/New-AzContainerGroupImageRegistryCredentialObject.md @@ -14,7 +14,7 @@ Create a in-memory object for ImageRegistryCredential ``` New-AzContainerGroupImageRegistryCredentialObject -Server [-Password ] - [-Username ] [-AcrIdentity ] [] + [-Username ] [-AcrIdentity ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -68,6 +68,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Server The Docker image registry server without a protocol such as "http" and "https". @@ -105,7 +120,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ImageRegistryCredential +### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ImageRegistryCredential ## NOTES diff --git a/src/ContainerInstance/ContainerInstance/help/New-AzContainerGroupPortObject.md b/src/ContainerInstance/ContainerInstance/help/New-AzContainerGroupPortObject.md index 723b2d52c722..6ca66e0b6df2 100644 --- a/src/ContainerInstance/ContainerInstance/help/New-AzContainerGroupPortObject.md +++ b/src/ContainerInstance/ContainerInstance/help/New-AzContainerGroupPortObject.md @@ -13,7 +13,7 @@ Create a in-memory object for Port ## SYNTAX ``` -New-AzContainerGroupPortObject -Port [-Protocol ] +New-AzContainerGroupPortObject -Port [-Protocol ] [-ProgressAction ] [] ``` @@ -52,6 +52,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Protocol The protocol associated with the port. @@ -74,7 +89,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.Port +### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Port ## NOTES diff --git a/src/ContainerInstance/ContainerInstance/help/New-AzContainerGroupVolumeObject.md b/src/ContainerInstance/ContainerInstance/help/New-AzContainerGroupVolumeObject.md index ee6c0713076a..87c760866c38 100644 --- a/src/ContainerInstance/ContainerInstance/help/New-AzContainerGroupVolumeObject.md +++ b/src/ContainerInstance/ContainerInstance/help/New-AzContainerGroupVolumeObject.md @@ -16,7 +16,7 @@ Create an in-memory object for Volume. New-AzContainerGroupVolumeObject -Name [-AzureFileReadOnly] [-AzureFileShareName ] [-AzureFileStorageAccountKey ] [-AzureFileStorageAccountName ] [-EmptyDir ] [-GitRepoDirectoryName ] [-GitRepoRepositoryUrl ] - [-GitRepoRevision ] [-Secret ] + [-GitRepoRevision ] [-Secret ] [-ProgressAction ] [] ``` @@ -128,7 +128,7 @@ The empty directory volume. To construct, see NOTES section for EMPTYDIR properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeEmptyDir +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeEmptyDir Parameter Sets: (All) Aliases: @@ -202,12 +202,27 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Secret The secret volume. To construct, see NOTES section for SECRET properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ISecretVolume +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecretVolume Parameter Sets: (All) Aliases: @@ -225,7 +240,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.Volume +### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Volume ## NOTES diff --git a/src/ContainerInstance/ContainerInstance/help/New-AzContainerInstanceContainerGroupProfile.md b/src/ContainerInstance/ContainerInstance/help/New-AzContainerInstanceContainerGroupProfile.md new file mode 100644 index 000000000000..4602a3d507ff --- /dev/null +++ b/src/ContainerInstance/ContainerInstance/help/New-AzContainerInstanceContainerGroupProfile.md @@ -0,0 +1,639 @@ +--- +external help file: Az.ContainerInstance-help.xml +Module Name: Az.ContainerInstance +online version: https://learn.microsoft.com/powershell/module/az.containerinstance/new-azcontainerinstancecontainergroupprofile +schema: 2.0.0 +--- + +# New-AzContainerInstanceContainerGroupProfile + +## SYNOPSIS +Create or update container group profiles with specified configurations. + +## SYNTAX + +``` +New-AzContainerInstanceContainerGroupProfile -Name -ResourceGroupName + [-SubscriptionId ] -Container -OSType + [-ConfidentialComputePropertyCcePolicy ] [-EncryptionPropertyIdentity ] + [-EncryptionPropertyKeyName ] [-EncryptionPropertyKeyVersion ] + [-EncryptionPropertyVaultBaseUrl ] [-Extension ] + [-IPAddressAutoGeneratedDomainNameLabelScope ] [-IPAddressDnsNameLabel ] + [-IPAddressIP ] [-IPAddressPort ] [-IPAddressType ] + [-ImageRegistryCredential ] [-InitContainer ] + [-Location ] [-LogAnalyticLogType ] [-LogAnalyticMetadata ] + [-LogAnalyticWorkspaceId ] [-LogAnalyticWorkspaceKey ] + [-LogAnalyticWorkspaceResourceId ] [-Priority ] + [-RestartPolicy ] [-Sku ] [-Tag ] + [-Volume ] [-Zone ] [-DefaultProfile ] [-ProgressAction ] + [-WhatIf] [-Confirm] [] +``` + +## DESCRIPTION +Create or update container group profiles with specified configurations. + +## EXAMPLES + +### Example 1: Create a container group profile with a container instance and request a public IP address with opening ports +```powershell +$port1 = New-AzContainerInstancePortObject -Port 8000 -Protocol TCP +$port2 = New-AzContainerInstancePortObject -Port 8001 -Protocol TCP +$container = New-AzContainerInstanceObject -Name test-container -Image nginx -RequestCpu 1 -RequestMemoryInGb 1.5 -Port @($port1, $port2) +$containerGroupProfile = New-AzContainerInstanceContainerGroupProfile -ResourceGroupName test-rg -Name test-cgp -Location eastus -Container $container -OsType Linux -RestartPolicy "Never" -IpAddressType Public +``` + +```output +Location Name Zone ResourceGroupName +-------- ---- ---- ----------------- +eastus test-cgp test-rg +``` + +This commands creates a container group profile with a container instance, whose image is latest nginx, and requests a public IP address with opening port 8000 and 8001. + +### Example 2: Create container group profile and runs a custom script inside the container. +```powershell +$pwd = ConvertTo-SecureString -String "****" -AsPlainText -Force +$env1 = New-AzContainerInstanceEnvironmentVariableObject -Name "env1" -Value "value1" +$env2 = New-AzContainerInstanceEnvironmentVariableObject -Name "env2" -SecureValue $pwd +$container = New-AzContainerInstanceObject -Name test-container -Image alpine -Command "/bin/sh -c myscript.sh" -EnvironmentVariable @($env1, $env2) -RequestCpu 1 -RequestMemoryInGb 1.5 +$containerGroupProfile = New-AzContainerInstanceContainerGroupProfile -ResourceGroupName test-rg -Name test-cgp -Location eastus -Container $container -OsType Linux +``` + +```output +Location Name Zone ResourceGroupName +-------- ---- ---- ----------------- +eastus test-cgp test-rg +``` + +This commands creates a container group profile and runs a custom script inside the container. + +### Example 3: Create a container group profile with a container instance using image nginx in Azure Container Registry +```powershell +$pwd = ConvertTo-SecureString -String "****" -AsPlainText -Force +$container = New-AzContainerInstanceObject -Name test-container -Image myacr.azurecr.io/nginx:latest -RequestCpu 1 -RequestMemoryInGb 1.5 +$imageRegistryCredential = New-AzContainerGroupImageRegistryCredentialObject -Server "myacr.azurecr.io" -Username "username" -Password $pwd +$containerGroupProfile = New-AzContainerInstanceContainerGroupProfile -ResourceGroupName test-rg -Name test-cgp -Location eastus -Container $container -ImageRegistryCredential $imageRegistryCredential -OsType Linux +``` + +```output +Location Name Zone ResourceGroupName +-------- ---- ---- ----------------- +eastus test-cgp test-rg +``` + +This commands creates a container group profile with a container instance, whose image is nginx in Azure Container Registry. + +### Example 4: Create a container group profile with Spot priority and a container instance using nginx image +```powershell +$container = New-AzContainerInstanceObject -Name test-container -Image nginx -RequestCpu 1 -RequestMemoryInGb 1.5 +$containerGroupProfile = New-AzContainerInstanceContainerGroupProfile -ResourceGroupName test-rg -Name test-cgp -Location eastus -Container $container -OsType Linux -RestartPolicy Never -Priority Spot +``` + +```output +Location Name Zone ResourceGroupName +-------- ---- ---- ----------------- +eastus test-cgp test-rg +``` + +This commands creates a container group profile with spot priority and a container instance, whose image is nginx. + +## PARAMETERS + +### -ConfidentialComputePropertyCcePolicy +The base64 encoded confidential compute enforcement policy + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Container +The containers within the container group. +To construct, see NOTES section for CONTAINER properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainer[] +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EncryptionPropertyIdentity +The keyvault managed identity. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EncryptionPropertyKeyName +The encryption key name. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EncryptionPropertyKeyVersion +The encryption key version. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EncryptionPropertyVaultBaseUrl +The keyvault base url. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Extension +extensions used by virtual kubelet +To construct, see NOTES section for EXTENSION properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpec[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ImageRegistryCredential +The image registry credentials by which the container group is created from. +To construct, see NOTES section for IMAGEREGISTRYCREDENTIAL properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredential[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InitContainer +The init containers for a container group. +To construct, see NOTES section for INITCONTAINER properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinition[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IPAddressAutoGeneratedDomainNameLabelScope +The value representing the security enum. +The 'Unsecure' value is the default value if not selected and means the object's domain name label is not secured against subdomain takeover. +The 'TenantReuse' value is the default value if selected and means the object's domain name label can be reused within the same tenant. +The 'SubscriptionReuse' value means the object's domain name label can be reused within the same subscription. +The 'ResourceGroupReuse' value means the object's domain name label can be reused within the same resource group. +The 'NoReuse' value means the object's domain name label cannot be reused within the same resource group, subscription, or tenant. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IPAddressDnsNameLabel +The Dns name label for the IP. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IPAddressIP +The IP exposed to the public internet. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IPAddressPort +The list of ports exposed on the container group. +To construct, see NOTES section for IPADDRESSPORT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPort[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IPAddressType +Specifies if the IP is exposed to the public internet or private VNET. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Location +The resource location. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -LogAnalyticLogType +The log type to be used. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -LogAnalyticMetadata +Metadata for log analytics. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -LogAnalyticWorkspaceId +The workspace id for log analytics + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -LogAnalyticWorkspaceKey +The workspace key for log analytics + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -LogAnalyticWorkspaceResourceId +The workspace resource id for log analytics + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the container group profile. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: ContainerGroupProfileName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -OSType +The operating system type required by the containers in the container group. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Priority +The priority of the container group. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RestartPolicy +Restart policy for all containers within the container group. +- `Always` Always restart- `OnFailure` Restart on failure- `Never` Never restart + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Sku +The SKU for a container group. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +The resource tags. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Volume +The list of volumes that can be mounted by containers in this container group. +To construct, see NOTES section for VOLUME properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolume[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Zone +The zones for the container group. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile + +## NOTES + +## RELATED LINKS diff --git a/src/ContainerInstance/ContainerInstance/help/New-AzContainerInstanceEnvironmentVariableObject.md b/src/ContainerInstance/ContainerInstance/help/New-AzContainerInstanceEnvironmentVariableObject.md index 5396b5a13d83..6fa3c11f473b 100644 --- a/src/ContainerInstance/ContainerInstance/help/New-AzContainerInstanceEnvironmentVariableObject.md +++ b/src/ContainerInstance/ContainerInstance/help/New-AzContainerInstanceEnvironmentVariableObject.md @@ -14,7 +14,7 @@ Create a in-memory object for EnvironmentVariable ``` New-AzContainerInstanceEnvironmentVariableObject -Name [-SecureValue ] [-Value ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -66,6 +66,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SecureValue The value of the secure environment variable. @@ -103,7 +118,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.EnvironmentVariable +### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.EnvironmentVariable ## NOTES diff --git a/src/ContainerInstance/ContainerInstance/help/New-AzContainerInstanceHttpHeaderObject.md b/src/ContainerInstance/ContainerInstance/help/New-AzContainerInstanceHttpHeaderObject.md index a1c01849379f..f7240b3e8136 100644 --- a/src/ContainerInstance/ContainerInstance/help/New-AzContainerInstanceHttpHeaderObject.md +++ b/src/ContainerInstance/ContainerInstance/help/New-AzContainerInstanceHttpHeaderObject.md @@ -13,7 +13,7 @@ Create a in-memory object for HttpHeader ## SYNTAX ``` -New-AzContainerInstanceHttpHeaderObject -Name [-Value ] +New-AzContainerInstanceHttpHeaderObject -Name [-Value ] [-ProgressAction ] [] ``` @@ -52,6 +52,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Value The header value.. @@ -74,7 +89,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.HttpHeader +### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.HttpHeader ## NOTES diff --git a/src/ContainerInstance/ContainerInstance/help/New-AzContainerInstanceInitDefinitionObject.md b/src/ContainerInstance/ContainerInstance/help/New-AzContainerInstanceInitDefinitionObject.md index b98bbd328027..f41f7824c454 100644 --- a/src/ContainerInstance/ContainerInstance/help/New-AzContainerInstanceInitDefinitionObject.md +++ b/src/ContainerInstance/ContainerInstance/help/New-AzContainerInstanceInitDefinitionObject.md @@ -15,7 +15,7 @@ Create a in-memory object for InitContainerDefinition ``` New-AzContainerInstanceInitDefinitionObject -Name [-Command ] [-EnvironmentVariable ] [-Image ] [-VolumeMount ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -58,7 +58,7 @@ The environment variables to set in the init container. To construct, see NOTES section for ENVIRONMENTVARIABLE properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEnvironmentVariable[] +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariable[] Parameter Sets: (All) Aliases: @@ -99,12 +99,27 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -VolumeMount The volume mounts available to the init container. To construct, see NOTES section for VOLUMEMOUNT properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeMount[] +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMount[] Parameter Sets: (All) Aliases: @@ -122,7 +137,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.InitContainerDefinition +### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.InitContainerDefinition ## NOTES diff --git a/src/ContainerInstance/ContainerInstance/help/New-AzContainerInstanceNoDefaultObject.md b/src/ContainerInstance/ContainerInstance/help/New-AzContainerInstanceNoDefaultObject.md new file mode 100644 index 000000000000..8e67b0a6fa19 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance/help/New-AzContainerInstanceNoDefaultObject.md @@ -0,0 +1,637 @@ +--- +external help file: Az.ContainerInstance-help.xml +Module Name: Az.ContainerInstance +online version: https://learn.microsoft.com/powershell/module/az.ContainerInstance/New-AzContainerInstanceNoDefaultObject +schema: 2.0.0 +--- + +# New-AzContainerInstanceNoDefaultObject + +## SYNOPSIS +Create a in-memory object for Container with no default values + +## SYNTAX + +``` +New-AzContainerInstanceNoDefaultObject -Name [-Command ] + [-ConfigMapKeyValuePair ] [-EnvironmentVariable ] + [-Image ] [-LimitCpu ] [-LimitMemoryInGb ] [-LimitsGpuCount ] + [-LimitsGpuSku ] [-LivenessProbeExecCommand ] [-LivenessProbeFailureThreshold ] + [-LivenessProbeHttpGetHttpHeader ] [-LivenessProbeHttpGetPath ] + [-LivenessProbeHttpGetPort ] [-LivenessProbeHttpGetScheme ] + [-LivenessProbeInitialDelaySecond ] [-LivenessProbePeriodSecond ] + [-LivenessProbeSuccessThreshold ] [-LivenessProbeTimeoutSecond ] [-Port ] + [-ReadinessProbeExecCommand ] [-ReadinessProbeFailureThreshold ] + [-ReadinessProbeHttpGetHttpHeader ] [-ReadinessProbeHttpGetPath ] + [-ReadinessProbeHttpGetPort ] [-ReadinessProbeHttpGetScheme ] + [-ReadinessProbeInitialDelaySecond ] [-ReadinessProbePeriodSecond ] + [-ReadinessProbeSuccessThreshold ] [-ReadinessProbeTimeoutSecond ] [-RequestCpu ] + [-RequestMemoryInGb ] [-RequestsGpuCount ] [-RequestsGpuSku ] + [-VolumeMount ] [-ProgressAction ] [] +``` + +## DESCRIPTION +Create a in-memory object for Container with no default values + +## EXAMPLES + +### Example 1: Create a container instance using image alphine with request cpu 1.0 and request memory 1.5Gb +```powershell +New-AzContainerInstanceNoDefaultObject -Name "test-container" -Image alpine -RequestCpu 1 -RequestMemoryInGb 1.5 +``` + +```output +Name +---- +test-container +``` + +Create a container instance using image alphine with request cpu 1.0 and request memory 1.5Gb + +### Example 2: Create a container instance using image alphine with limit cpu 2.0 and limit memory 2.5Gb +```powershell +New-AzContainerInstanceNoDefaultObject -Image alpine -Name "test-container" -LimitCpu 2 -LimitMemoryInGb 2.5 +``` + +```output +Name +---- +test-container +``` + +Create a container instance using image alphine with limit cpu 2.0 and limit memory 2.5Gb + +### Example 3: Create a container group with a container instance +```powershell +$container = New-AzContainerInstanceNoDefaultObject -Name test-container -Image alpine +New-AzContainerGroup -ResourceGroupName testrg-rg -Name test-cg -Location eastus -Container $container +``` + +```output +Location Name Zone ResourceGroupName +-------- ---- ---- ----------------- +eastus test-cg test-rg +``` + +Create a container group with a container instance + +## PARAMETERS + +### -Command +The commands to execute within the container instance in exec form. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ConfigMapKeyValuePair +The key value pairs dictionary in the config map to set in the container instance. +To construct, see NOTES section for CONFIGMAPKEYVALUEPAIR properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfigMapKeyValuePairs +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EnvironmentVariable +The environment variables to set in the container instance. +To construct, see NOTES section for ENVIRONMENTVARIABLE properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariable[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Image +The name of the image used to create the container instance. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -LimitCpu +The CPU limit of this container instance. + +```yaml +Type: System.Double +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -LimitMemoryInGb +The memory limit in GB of this container instance. + +```yaml +Type: System.Double +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -LimitsGpuCount +The count of the GPU resource. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -LimitsGpuSku +The SKU of the GPU resource. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -LivenessProbeExecCommand +The commands to execute within the container. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -LivenessProbeFailureThreshold +The failure threshold. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -LivenessProbeHttpGetHttpHeader +The HTTP headers for liveness probe. +To construct, see NOTES section for LIVENESSPROBEHTTPGETHTTPHEADER properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -LivenessProbeHttpGetPath +The path to probe. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -LivenessProbeHttpGetPort +The port number to probe. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -LivenessProbeHttpGetScheme +The scheme. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -LivenessProbeInitialDelaySecond +The initial delay seconds. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -LivenessProbePeriodSecond +The period seconds. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -LivenessProbeSuccessThreshold +The success threshold. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -LivenessProbeTimeoutSecond +The timeout seconds. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The user-provided name of the container instance. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Port +The exposed ports on the container instance. +To construct, see NOTES section for PORT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPort[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ReadinessProbeExecCommand +The commands to execute within the container. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ReadinessProbeFailureThreshold +The failure threshold. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ReadinessProbeHttpGetHttpHeader +The HTTP headers for readiness probe. +To construct, see NOTES section for READINESSPROBEHTTPGETHTTPHEADER properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ReadinessProbeHttpGetPath +The path to probe. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ReadinessProbeHttpGetPort +The port number to probe. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ReadinessProbeHttpGetScheme +The scheme. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ReadinessProbeInitialDelaySecond +The initial delay seconds. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ReadinessProbePeriodSecond +The period seconds. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ReadinessProbeSuccessThreshold +The success threshold. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ReadinessProbeTimeoutSecond +The timeout seconds. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RequestCpu +The CPU request of this container instance. + +```yaml +Type: System.Double +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RequestMemoryInGb +The memory request in GB of this container instance. + +```yaml +Type: System.Double +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RequestsGpuCount +The count of the GPU resource. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RequestsGpuSku +The SKU of the GPU resource. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -VolumeMount +The volume mounts available to the container instance. +To construct, see NOTES section for VOLUMEMOUNT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMount[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Container + +## NOTES + +## RELATED LINKS diff --git a/src/ContainerInstance/ContainerInstance/help/New-AzContainerInstanceObject.md b/src/ContainerInstance/ContainerInstance/help/New-AzContainerInstanceObject.md index 61a5d2191be4..3ad93b96242f 100644 --- a/src/ContainerInstance/ContainerInstance/help/New-AzContainerInstanceObject.md +++ b/src/ContainerInstance/ContainerInstance/help/New-AzContainerInstanceObject.md @@ -14,20 +14,20 @@ Create a in-memory object for Container ``` New-AzContainerInstanceObject -Image -Name [-Command ] - [-EnvironmentVariable ] [-LimitCpu ] [-LimitMemoryInGb ] - [-LimitsGpuCount ] [-LimitsGpuSku ] [-LivenessProbeExecCommand ] - [-LivenessProbeFailureThreshold ] [-LivenessProbeHttpGetHttpHeader ] - [-LivenessProbeHttpGetPath ] [-LivenessProbeHttpGetPort ] - [-LivenessProbeHttpGetScheme ] [-LivenessProbeInitialDelaySecond ] - [-LivenessProbePeriodSecond ] [-LivenessProbeSuccessThreshold ] - [-LivenessProbeTimeoutSecond ] [-Port ] [-ReadinessProbeExecCommand ] - [-ReadinessProbeFailureThreshold ] [-ReadinessProbeHttpGetHttpHeader ] - [-ReadinessProbeHttpGetPath ] [-ReadinessProbeHttpGetPort ] - [-ReadinessProbeHttpGetScheme ] [-ReadinessProbeInitialDelaySecond ] - [-ReadinessProbePeriodSecond ] [-ReadinessProbeSuccessThreshold ] - [-ReadinessProbeTimeoutSecond ] [-RequestCpu ] [-RequestMemoryInGb ] - [-RequestsGpuCount ] [-RequestsGpuSku ] [-VolumeMount ] - [] + [-ConfigMapKeyValuePair ] [-EnvironmentVariable ] + [-LimitCpu ] [-LimitMemoryInGb ] [-LimitsGpuCount ] [-LimitsGpuSku ] + [-LivenessProbeExecCommand ] [-LivenessProbeFailureThreshold ] + [-LivenessProbeHttpGetHttpHeader ] [-LivenessProbeHttpGetPath ] + [-LivenessProbeHttpGetPort ] [-LivenessProbeHttpGetScheme ] + [-LivenessProbeInitialDelaySecond ] [-LivenessProbePeriodSecond ] + [-LivenessProbeSuccessThreshold ] [-LivenessProbeTimeoutSecond ] [-Port ] + [-ReadinessProbeExecCommand ] [-ReadinessProbeFailureThreshold ] + [-ReadinessProbeHttpGetHttpHeader ] [-ReadinessProbeHttpGetPath ] + [-ReadinessProbeHttpGetPort ] [-ReadinessProbeHttpGetScheme ] + [-ReadinessProbeInitialDelaySecond ] [-ReadinessProbePeriodSecond ] + [-ReadinessProbeSuccessThreshold ] [-ReadinessProbeTimeoutSecond ] [-RequestCpu ] + [-RequestMemoryInGb ] [-RequestsGpuCount ] [-RequestsGpuSku ] + [-VolumeMount ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -92,12 +92,28 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ConfigMapKeyValuePair +The key value pairs dictionary in the config map to set in the container instance. +To construct, see NOTES section for CONFIGMAPKEYVALUEPAIR properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfigMapKeyValuePairs +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -EnvironmentVariable The environment variables to set in the container instance. To construct, see NOTES section for ENVIRONMENTVARIABLE properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IEnvironmentVariable[] +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariable[] Parameter Sets: (All) Aliases: @@ -218,7 +234,7 @@ The HTTP headers for liveness probe. To construct, see NOTES section for LIVENESSPROBEHTTPGETHTTPHEADER properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IHttpHeader[] +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader[] Parameter Sets: (All) Aliases: @@ -354,7 +370,7 @@ The exposed ports on the container instance. To construct, see NOTES section for PORT properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPort[] +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPort[] Parameter Sets: (All) Aliases: @@ -365,6 +381,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ReadinessProbeExecCommand The commands to execute within the container. @@ -400,7 +431,7 @@ The HTTP headers for readiness probe. To construct, see NOTES section for READINESSPROBEHTTPGETHTTPHEADER properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IHttpHeader[] +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader[] Parameter Sets: (All) Aliases: @@ -581,7 +612,7 @@ The volume mounts available to the container instance. To construct, see NOTES section for VOLUMEMOUNT properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IVolumeMount[] +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMount[] Parameter Sets: (All) Aliases: @@ -599,7 +630,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.Container +### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Container ## NOTES diff --git a/src/ContainerInstance/ContainerInstance/help/New-AzContainerInstancePortObject.md b/src/ContainerInstance/ContainerInstance/help/New-AzContainerInstancePortObject.md index fca3e83ff7c6..6dfc0e24ad4e 100644 --- a/src/ContainerInstance/ContainerInstance/help/New-AzContainerInstancePortObject.md +++ b/src/ContainerInstance/ContainerInstance/help/New-AzContainerInstancePortObject.md @@ -13,7 +13,7 @@ Create a in-memory object for ContainerPort ## SYNTAX ``` -New-AzContainerInstancePortObject -Port [-Protocol ] +New-AzContainerInstancePortObject -Port [-Protocol ] [-ProgressAction ] [] ``` @@ -52,6 +52,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Protocol The protocol associated with the port. @@ -74,7 +89,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerPort +### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerPort ## NOTES diff --git a/src/ContainerInstance/ContainerInstance/help/New-AzContainerInstanceVolumeMountObject.md b/src/ContainerInstance/ContainerInstance/help/New-AzContainerInstanceVolumeMountObject.md index ae8c92066904..58181770c8b9 100644 --- a/src/ContainerInstance/ContainerInstance/help/New-AzContainerInstanceVolumeMountObject.md +++ b/src/ContainerInstance/ContainerInstance/help/New-AzContainerInstanceVolumeMountObject.md @@ -14,7 +14,7 @@ Create a in-memory object for VolumeMount ``` New-AzContainerInstanceVolumeMountObject -MountPath -Name [-ReadOnly ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -68,6 +68,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ReadOnly The flag indicating whether the volume mount is read-only. @@ -90,7 +105,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.VolumeMount +### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.VolumeMount ## NOTES diff --git a/src/ContainerInstance/ContainerInstance/help/Remove-AzContainerGroup.md b/src/ContainerInstance/ContainerInstance/help/Remove-AzContainerGroup.md index ab842642a5e4..0eb798438824 100644 --- a/src/ContainerInstance/ContainerInstance/help/Remove-AzContainerGroup.md +++ b/src/ContainerInstance/ContainerInstance/help/Remove-AzContainerGroup.md @@ -16,14 +16,14 @@ The operation does not delete other resources provided by the user, such as volu ### Delete (Default) ``` Remove-AzContainerGroup -Name -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentity ``` Remove-AzContainerGroup -InputObject [-DefaultProfile ] [-AsJob] - [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] + [-NoWait] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -152,8 +152,24 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. +The name is case insensitive. ```yaml Type: System.String @@ -168,8 +184,8 @@ Accept wildcard characters: False ``` ### -SubscriptionId -Subscription credentials which uniquely identify Microsoft Azure subscription. -The subscription ID forms part of the URI for every service call. +The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String @@ -223,7 +239,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup +### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup ## NOTES diff --git a/src/ContainerInstance/ContainerInstance/help/Remove-AzContainerInstanceContainerGroupProfile.md b/src/ContainerInstance/ContainerInstance/help/Remove-AzContainerInstanceContainerGroupProfile.md new file mode 100644 index 000000000000..8ba6a3df8179 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance/help/Remove-AzContainerInstanceContainerGroupProfile.md @@ -0,0 +1,205 @@ +--- +external help file: Az.ContainerInstance-help.xml +Module Name: Az.ContainerInstance +online version: https://learn.microsoft.com/powershell/module/az.containerinstance/remove-azcontainerinstancecontainergroupprofile +schema: 2.0.0 +--- + +# Remove-AzContainerInstanceContainerGroupProfile + +## SYNOPSIS +Delete the specified container group profile in the specified subscription and resource group. +The operation does not delete other resources provided by the user, such as volumes. + +## SYNTAX + +### Delete (Default) +``` +Remove-AzContainerInstanceContainerGroupProfile -Name -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [-PassThru] [-ProgressAction ] + [-WhatIf] [-Confirm] [] +``` + +### DeleteViaIdentity +``` +Remove-AzContainerInstanceContainerGroupProfile -InputObject + [-DefaultProfile ] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] + [] +``` + +## DESCRIPTION +Delete the specified container group profile in the specified subscription and resource group. +The operation does not delete other resources provided by the user, such as volumes. + +## EXAMPLES + +### Example 1: Remove a container group profile +```powershell +Remove-AzContainerInstanceContainerGroupProfile -Name test-cgp -ResourceGroupName test-rg +``` + +This command removes the specified container group profile. + +### Example 2: Removes a container group profile by piping +```powershell +Get-AzContainerInstanceContainerGroupProfile -Name test-cgp -ResourceGroupName test-rg | Remove-AzContainerInstanceContainerGroupProfile +``` + +This command removes a container group profile by piping. + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the container group profile. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: ContainerGroupProfileName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS diff --git a/src/ContainerInstance/ContainerInstance/help/Remove-AzContainerInstanceSubnetServiceAssociationLink.md b/src/ContainerInstance/ContainerInstance/help/Remove-AzContainerInstanceSubnetServiceAssociationLink.md index d10d4d168e4c..d0f9bf906ffb 100644 --- a/src/ContainerInstance/ContainerInstance/help/Remove-AzContainerInstanceSubnetServiceAssociationLink.md +++ b/src/ContainerInstance/ContainerInstance/help/Remove-AzContainerInstanceSubnetServiceAssociationLink.md @@ -17,13 +17,13 @@ The operation does not delete other resources provided by the user. ``` Remove-AzContainerInstanceSubnetServiceAssociationLink -ResourceGroupName -SubnetName [-SubscriptionId ] -VirtualNetworkName [-DefaultProfile ] [-AsJob] [-NoWait] - [-PassThru] [-WhatIf] [-Confirm] [] + [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentity ``` Remove-AzContainerInstanceSubnetServiceAssociationLink -InputObject - [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -119,8 +119,24 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. +The name is case insensitive. ```yaml Type: System.String @@ -150,8 +166,8 @@ Accept wildcard characters: False ``` ### -SubscriptionId -Subscription credentials which uniquely identify Microsoft Azure subscription. -The subscription ID forms part of the URI for every service call. +The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String diff --git a/src/ContainerInstance/ContainerInstance/help/Restart-AzContainerGroup.md b/src/ContainerInstance/ContainerInstance/help/Restart-AzContainerGroup.md index a96deaba64ae..77c0555e1c52 100644 --- a/src/ContainerInstance/ContainerInstance/help/Restart-AzContainerGroup.md +++ b/src/ContainerInstance/ContainerInstance/help/Restart-AzContainerGroup.md @@ -16,14 +16,14 @@ If container image has updates, new image will be downloaded. ### Restart (Default) ``` Restart-AzContainerGroup -Name -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### RestartViaIdentity ``` Restart-AzContainerGroup -InputObject [-DefaultProfile ] [-AsJob] - [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] + [-NoWait] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -140,8 +140,24 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. +The name is case insensitive. ```yaml Type: System.String @@ -156,8 +172,8 @@ Accept wildcard characters: False ``` ### -SubscriptionId -Subscription credentials which uniquely identify Microsoft Azure subscription. -The subscription ID forms part of the URI for every service call. +The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String diff --git a/src/ContainerInstance/ContainerInstance/help/Start-AzContainerGroup.md b/src/ContainerInstance/ContainerInstance/help/Start-AzContainerGroup.md index 66be3e09b230..9930d59e5faa 100644 --- a/src/ContainerInstance/ContainerInstance/help/Start-AzContainerGroup.md +++ b/src/ContainerInstance/ContainerInstance/help/Start-AzContainerGroup.md @@ -16,14 +16,14 @@ Compute resources will be allocated and billing will start. ### Start (Default) ``` Start-AzContainerGroup -Name -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### StartViaIdentity ``` Start-AzContainerGroup -InputObject [-DefaultProfile ] [-AsJob] - [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] + [-NoWait] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -140,8 +140,24 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. +The name is case insensitive. ```yaml Type: System.String @@ -156,8 +172,8 @@ Accept wildcard characters: False ``` ### -SubscriptionId -Subscription credentials which uniquely identify Microsoft Azure subscription. -The subscription ID forms part of the URI for every service call. +The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String diff --git a/src/ContainerInstance/ContainerInstance/help/Stop-AzContainerGroup.md b/src/ContainerInstance/ContainerInstance/help/Stop-AzContainerGroup.md index 136a3ac149b9..33aacb5ac525 100644 --- a/src/ContainerInstance/ContainerInstance/help/Stop-AzContainerGroup.md +++ b/src/ContainerInstance/ContainerInstance/help/Stop-AzContainerGroup.md @@ -16,14 +16,14 @@ Compute resources will be deallocated and billing will stop. ### Stop (Default) ``` Stop-AzContainerGroup -Name -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [-PassThru] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### StopViaIdentity ``` Stop-AzContainerGroup -InputObject [-DefaultProfile ] [-PassThru] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -111,8 +111,24 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. +The name is case insensitive. ```yaml Type: System.String @@ -127,8 +143,8 @@ Accept wildcard characters: False ``` ### -SubscriptionId -Subscription credentials which uniquely identify Microsoft Azure subscription. -The subscription ID forms part of the URI for every service call. +The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String diff --git a/src/ContainerInstance/ContainerInstance/help/Update-AzContainerGroup.md b/src/ContainerInstance/ContainerInstance/help/Update-AzContainerGroup.md index 6a18365747e1..abfd972234a5 100644 --- a/src/ContainerInstance/ContainerInstance/help/Update-AzContainerGroup.md +++ b/src/ContainerInstance/ContainerInstance/help/Update-AzContainerGroup.md @@ -16,13 +16,13 @@ Updates container group tags with specified values. ``` Update-AzContainerGroup -Name -ResourceGroupName [-SubscriptionId ] [-Location ] [-Tag ] [-Zone ] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityExpanded ``` Update-AzContainerGroup -InputObject [-Location ] [-Tag ] - [-Zone ] [-DefaultProfile ] [-WhatIf] [-Confirm] + [-Zone ] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -125,8 +125,24 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. +The name is case insensitive. ```yaml Type: System.String @@ -141,8 +157,8 @@ Accept wildcard characters: False ``` ### -SubscriptionId -Subscription credentials which uniquely identify Microsoft Azure subscription. -The subscription ID forms part of the URI for every service call. +The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String @@ -226,7 +242,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerGroup +### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup ## NOTES diff --git a/src/ContainerInstance/ContainerInstance/help/Update-AzContainerInstanceContainerGroupProfile.md b/src/ContainerInstance/ContainerInstance/help/Update-AzContainerInstanceContainerGroupProfile.md new file mode 100644 index 000000000000..84f5a29577eb --- /dev/null +++ b/src/ContainerInstance/ContainerInstance/help/Update-AzContainerInstanceContainerGroupProfile.md @@ -0,0 +1,250 @@ +--- +external help file: Az.ContainerInstance-help.xml +Module Name: Az.ContainerInstance +online version: https://learn.microsoft.com/powershell/module/az.containerinstance/update-azcontainerinstancecontainergroupprofile +schema: 2.0.0 +--- + +# Update-AzContainerInstanceContainerGroupProfile + +## SYNOPSIS +Patches container group profile with specified properties. + +## SYNTAX + +### PatchExpanded (Default) +``` +Update-AzContainerInstanceContainerGroupProfile -Name -ResourceGroupName + [-SubscriptionId ] [-Tag ] [-DefaultProfile ] + [-ProgressAction ] [-WhatIf] [-Confirm] [] +``` + +### Patch +``` +Update-AzContainerInstanceContainerGroupProfile -Name -ResourceGroupName + [-SubscriptionId ] -Property [-DefaultProfile ] + [-ProgressAction ] [-WhatIf] [-Confirm] [] +``` + +### PatchViaIdentityExpanded +``` +Update-AzContainerInstanceContainerGroupProfile -InputObject [-Tag ] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] +``` + +### PatchViaIdentity +``` +Update-AzContainerInstanceContainerGroupProfile -InputObject + -Property [-DefaultProfile ] [-ProgressAction ] + [-WhatIf] [-Confirm] [] +``` + +## DESCRIPTION +Patches container group profile with specified properties. + +## EXAMPLES + +### Example 1: Update a container group profile +```powershell +$container = Update-AzContainerInstanceContainerGroupProfile -Name test-cgp -ResourceGroupName test-rg -Tag @{"k"="v"} +$container.Tag | Format-List +``` + +```output +Keys : {k} +Values : {v} +AdditionalProperties : {[k, v]} +Count : 1 +``` + +This command updates a container group profile. + +### Example 2: Update a container group profile using piping +```powershell +$container = Get-AzContainerInstanceContainerGroupProfile -Name test-cgp -ResourceGroupName test-rg | Update-AzContainerInstanceContainerGroupProfile -Tag @{"k"="v"} +$container.Tag | Format-List +``` + +```output +Keys : {k} +Values : {v} +AdditionalProperties : {[k, v]} +Count : 1 +``` + +This command updates a container group profile using pipeing. + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity +Parameter Sets: PatchViaIdentityExpanded, PatchViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the container group profile. + +```yaml +Type: System.String +Parameter Sets: PatchExpanded, Patch +Aliases: ContainerGroupProfileName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Property +Properties of container group profile that need to be patched +To construct, see NOTES section for PROPERTY properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePatch +Parameter Sets: Patch, PatchViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: PatchExpanded, Patch +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: PatchExpanded, Patch +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +Resource tags. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: PatchExpanded, PatchViaIdentityExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePatch + +### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile + +## NOTES + +## RELATED LINKS diff --git a/tools/StaticAnalysis/Exceptions/Az.ContainerInstance/BreakingChangeIssues.csv b/tools/StaticAnalysis/Exceptions/Az.ContainerInstance/BreakingChangeIssues.csv new file mode 100644 index 000000000000..679baec70a6b --- /dev/null +++ b/tools/StaticAnalysis/Exceptions/Az.ContainerInstance/BreakingChangeIssues.csv @@ -0,0 +1,5 @@ +"Module","ClassName","Target","Severity","ProblemId","Description","Remediation" +"Az.ContainerInstance","New-AzContainerGroup","New-AzContainerGroup","0","3000","The type of property 'RequestCpu' of type 'Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainer' has changed from 'System.Double' to 'System.Nullable`1[System.Double]'.","Change the type of property 'RequestCpu' back to 'System.Double'." +"Az.ContainerInstance","New-AzContainerGroup","New-AzContainerGroup","0","3000","The type of property 'RequestMemoryInGb' of type 'Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainer' has changed from 'System.Double' to 'System.Nullable`1[System.Double]'.","Change the type of property 'RequestMemoryInGb' back to 'System.Double'." +"Az.ContainerInstance","New-AzContainerInstanceObject","New-AzContainerInstanceObject","0","3000","The type of property 'RequestCpu' of type 'Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.Container' has changed from 'System.Double' to 'System.Nullable`1[System.Double]'.","Change the type of property 'RequestCpu' back to 'System.Double'." +"Az.ContainerInstance","New-AzContainerInstanceObject","New-AzContainerInstanceObject","0","3000","The type of property 'RequestMemoryInGb' of type 'Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.Container' has changed from 'System.Double' to 'System.Nullable`1[System.Double]'.","Change the type of property 'RequestMemoryInGb' back to 'System.Double'."